function chgbg(tr)
{
	tr.style.background = "#FFFFFF"
}

function chgback(tr)
{
	tr.style.background = "#F3F3F3"
}

function lgncheck() {
var oForm = document.forms.lgnForm
if(oForm.userName.value == ""){
	alert("请输入正确的用户名!");
	oForm.userName.focus();
	}
	else if(oForm.userName.value.indexOf("'") != -1){
		alert("用户名不正确")		
		oForm.userName.focus()
		}
		else if(oForm.psd.value == ""){
			alert("请输入正确的密码!")
			oForm.psd.focus()
		}
		else
			oForm.submit()
}

function deleteMe(ID){
	if(confirm('您却实要删除这条信息吗？')){
		var infoID = ID
		var url = '/enterprise/delete.asp?infoID=' + infoID
		window.location = url
	}
}

//open the re_pw window
function winOpen(oWin){
if(oWin == "re"){
	window.open('/enterprise/inc/re_pw.asp','','top=250, left=370, width=300,height=200,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0,location=0')
	}
	else{
		window.open('/enterprise/inc/get_pw.asp','','top=250, left=370, width=300,height=200,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0,location=0')
		}
}

//check the search
function checkSch(){
CheckOK = true;
var f = document.forms[1]
if(f.schTxt.value == "" || f.schTxt.value == "关键字"){
	CheckOK = false;
	alert("您必须输入有效的关键字。")
	f.schTxt.select();
	return CheckOK;
	}
}

//open the re_pw window
function winOpen(oWin){
if(oWin == "re"){
	window.open('/enterprise/inc/re_pw.asp','','top=250, left=370, width=300,height=200,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0,location=0')
	}
	else{
		window.open('/enterprise/inc/get_pw.asp','','top=250, left=370, width=300,height=200,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0,location=0')
		}
}
