
function changeImg(obj)
{
	
	obj.src='/imageauth.rob?rd='+Math.random()*10000;
	
}
function Imgchange(mid)
{
	
	if(mid=="img1"){
	
		document.getElementById("img1").style.backgroundImage='url(/img/wzzLogin_over.gif)';
		document.getElementById("wzz").style.color='#FF7600';
		document.getElementById("img2").style.backgroundImage='url(/img/dlsLogin.gif)';
		document.getElementById("dls").style.color='#666666';
		document.getElementById("img3").style.backgroundImage='url(/img/ggzLogin.gif)';
		document.getElementById("ggz").style.color='#666666';
		document.getElementById("t").value="500102";
		document.getElementById("LoginBean:regist").style.display="block";
		document.getElementById("refresh").style.display="none";
	}
	if(mid=="img2"){
		document.getElementById("img1").style.backgroundImage='url(/img/wzzLogin.gif)';
		document.getElementById("wzz").style.color='#666666';
		document.getElementById("img2").style.backgroundImage='url(/img/dlsLogin_over.gif)';
		document.getElementById("dls").style.color='#FF7600';
		document.getElementById("img3").style.backgroundImage='url(/img/ggzLogin.gif)';
		document.getElementById("ggz").style.color='#666666';
		document.getElementById("t").value="500104";
		document.getElementById("LoginBean:regist").style.display="none";
		document.getElementById("refresh").style.display="block";
	}
	if(mid=="img3"){
		document.getElementById("img1").style.backgroundImage='url(/img/wzzLogin.gif)';
		document.getElementById("wzz").style.color='#666666';
		document.getElementById("img2").style.backgroundImage='url(/img/dlsLogin.gif)';
		document.getElementById("dls").style.color='#666666';
		document.getElementById("img3").style.backgroundImage='url(/img/ggzLogin_over.gif)';
		document.getElementById("ggz").style.color='#FF7600';
		document.getElementById("t").value="500101";
		document.getElementById("LoginBean:regist").style.display="none";
		document.getElementById("refresh").style.display="block";
	}
	if(mid=="img4"){
		document.getElementById("img4").style.backgroundImage='url(/img/wzzLogin_over.gif)';
		document.getElementById("dls").style.color='#FF7600';
		document.getElementById("img5").style.backgroundImage='url(/img/dlsLogin.gif)';
		document.getElementById("ggz").style.color='#666666';
		document.getElementById("t").value="500104";
	}
	if(mid=="img5"){
		document.getElementById("img4").style.backgroundImage='url(/img/wzzLogin.gif)';
		document.getElementById("dls").style.color='#666666';
		document.getElementById("img5").style.backgroundImage='url(/img/dlsLogin_over.gif)';
		document.getElementById("ggz").style.color='#FF7600';
		document.getElementById("t").value="500105";
	}
}
function istype(){
	var type = document.getElementById("LoginBean:t2").value;
	if(type=="500104")
		Imgchange("img2");
	if(type=="500101")
		Imgchange("img3");
}
function GetElementLeft(e){
    l=e.offsetLeft;   while(e=e.offsetParent)   l+=e.offsetLeft;   return   l;
}
function GetElementTop(e){
    var t=e.offsetTop; while(e=e.offsetParent)   t+=e.offsetTop;     return   t;
}
function PopDiv(value,obj){
	var div=document.getElementById("smsdiv");
	div.style.display="block";
	div.innerHTML=value;
	var x=(GetElementLeft(obj)+30)+"px";
	var y=(GetElementTop(obj)+10)+"px";
	div.style.left=x;
	div.style.top=y;
	
}

function HideDiv(){
	document.getElementById("smsdiv").style.display="none";
}
