
function tabsOn(el) {
	$(el).style.backgroundImage="url(./images/tab-on.gif)";
}
function tabsOff(el) {
	$(el).style.backgroundImage="url(./images/tab-off.gif)";
}
function tabsOnHot(el) {
	$(el).style.backgroundImage="url(./images/tab-on-hot.gif)";
}
function tabsOffHot(el) {
	$(el).style.backgroundImage="url(./images/tab-off-hot.gif)";
}

function openWin(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function openNewsWin(el) {
	var url = 'index.php?PA=news_view&news_id=' + el;
	window.open(url,'WanJuanNews','status=no,scrollbars=yes,resizable=yes,width=600,height=400');
}

function checkLogin(el){
with(el){
	if (sr_account.value==''){
		alert('請輸入帳號');
		sr_account.focus();
	}
	else if (sr_password.value==''){
		alert('請輸入密碼');
		sr_password.focus();
	}
	else{
		return true;
	}
	return false;
} // end with
} // end function checkLogin


function GoTo(el){
	location.href=el;
}
