function init()
{
	document.logon.username.focus();
}
var alertinput = "ÇëÊäÈë:\n\n";	
function login() {
	var mesg = "";
	if(document.logon.username.value == "") mesg += "ÓÃ»§\n";
	if(document.logon.password.value == "") mesg += "ÃÜÂë\n";
	if(mesg != ""){
		mesg = alertinput + mesg;
		alert(mesg);
		return false;
	}
	document.logon.username.value += "@hzyllh.com";
	return true;
}
function getpass()
{
	document.rpass.username.value = document.login.user.value;
	document.rpass.domain.value = document.login.domain.value;
	document.rpass.submit();
}

//
function Initialize()
{
	document.getElementById("img1").src="/pics/gh.gif";	
	document.getElementById("img2").src="/pics/gh2.gif";
	document.getElementById("img3").src="/pics/gh3.gif";
	document.getElementById("img4").src="/pics/gh4.gif";
	document.getElementById("content-div-1").style.display="none";
	document.getElementById("content-div-2").style.display="none";
	document.getElementById("content-div-3").style.display="none";
	document.getElementById("content-div-4").style.display="none";
}

function setDisSynthesizeNews(imgId,iPic,contentDivID)
{
	Initialize();
	if(imgId==null || document.getElementById(contentDivID)==null) return;	
	imgId.src="/pics/ghh" + iPic + ".gif";
	document.getElementById(contentDivID).style.display="block";
}
