document.write('<div id="divshowssl" style="border-color:#000000;;border-style:solid;border-width: 1px;PADDING-TOP: 3px;position:absolute;z-index:10;background-color:#ffffca;width:300px;height:20;TEXT-ALIGN: center;display:none;">SSL是Secure Socket Layer的缩写，中文名为安全套接层协议层。使用该协议后，您提交的所有数据会首先加密后，再提交到关系网，从而可以有效防止黑客盗取您的账户、密码和通讯内容，保证了您个人信息安全。</div>');
function showCorpLogon(){
	usertype.style.display = "";
	corptype.style.display = "";
	img1.style.display = "none";
	img2.style.display = "";
	//document.UserLogonForm.changetype[0].checked=true;
}

function showOnleCorpLogon(){
	factoryid.style.display = "";
	img1.style.display = "none";
	img2.style.display = "";
	//document.UserLogonForm.changetype[1].checked=true;
}



function dispayDIV(){
	usertype.style.display = "none";
	corptype.style.display = "none";
	factoryid.style.display = "none";
}

function showWhySSL(type){
	showSSL(type);
}

function showSSL(type){
	var top1 = 430;
	var left1 = 480;
	if(type==0){
		top1 = 280;
		left1 = 820;
	}
	document.getElementById("divshowssl").style.display="";
    document.getElementById("divshowssl").style.top=document.body.clientTop+top1+"px";
    document.getElementById("divshowssl").style.left=document.body.clientLeft+left1+"px";
}

function hiddens(){
	hiddSSL();
}

function hiddSSL(){
	document.getElementById("divshowssl").style.display="none";
}

//验证登录
function checkUserCaflag(){
	var loginid = document.UserLogonForm.idcard.value; 
	if(loginid==""||loginid=="登录名/邮箱"){
		alert("用户名不能为空！");
		document.UserLogonForm.idcard.focus(); 
		return;
	}

	var password = document.UserLogonForm.password.value; 	
	if(password=="")
	{
		alert("登录密码不能为空！");
		document.UserLogonForm.password.focus(); 
		return;
	}

	if(document.UserLogonForm.clientCheckCode.value=="")
	{
		alert("验证码不能为空！");
		document.UserLogonForm.clientCheckCode.focus(); 
		return;
	}
	var flag = document.UserLogonForm.flag.value; 	

	if (document.UserLogonForm.checkselect.checked){
        document.UserLogonForm.attributes["action"].value=httpsUrl;
	}else{
	   	document.UserLogonForm.attributes["action"].value=httpUrl;
	}
	
	return doSubmit();
}

//验证登录
function checkUser(){
	var loginid = document.UserLogonForm.idcard.value; 
	if(loginid==""){
		alert("用户名不能为空！");
		document.UserLogonForm.idcard.focus(); 
		return;
	}

	var password = document.UserLogonForm.password.value; 	
	if(password=="")
	{
		alert("登录密码不能为空！");
		document.UserLogonForm.password.focus(); 
		return;
	}

	if(document.UserLogonForm.clientCheckCode.value=="")
	{
		alert("验证码不能为空！");
		document.UserLogonForm.clientCheckCode.focus(); 
		return;
	}

	return doSubmit();

}

function doSubmit(){
	document.UserLogonForm.action.value=action;
	document.UserLogonForm.submit();
}

function caLogon(loginid){
	showCAselect(loginid);
}

function showCAselect(loginid){
		var shoutable="<div  id='catable' style='Z-INDEX: 200;LEFT: 0px;top:0px;POSITION: absolute;class:CContent;'>";
		shoutable = shoutable+"<DIV style='Z-INDEX: 200;  POSITION: absolute;padding-top:150px;left:expression((body.clientWidth-50)/2-200);' class='bb'>";
		shoutable = shoutable+"<table width='380' height='315'  border='0'  cellpadding='0' cellspacing='1' class='CContent' style='background-color: #5F8FB0'>";
		shoutable = shoutable+"<tr><td>";
		shoutable = shoutable+"<iframe name='logontable' marginwidth=0 marginheight=0 width='380px' height='314px' scrolling='no' src='../../../../UserLogon.do?action=Slectca&loginid="+loginid+"' frameborder=0></iframe>";
		shoutable = shoutable+"<td></tr></table></div><div id='overlay' style='position: absolute;z-index: 100;top: 0px;left: 0px;background-color: #fff;filter: alpha(opacity = 0);'></div></div>";	
		document.getElementById("txtlabel").innerHTML=shoutable;
	    document.getElementById("overlay").style.height = document.body.scrollHeight;
		document.getElementById("overlay").style.width = document.body.scrollWidth-1;
}
function dispCAselect(){
	document.getElementById("catable").style.display="none";
}


