
/*==============【注册表单】==================*/

//高亮、取消高亮表单项目
function lightItem(id){
	getId(id).style.background="#ECF6FF";
}
function cancelLight(id){
	getId(id).style.background=""
}
function ipton(iptid){
	getId(iptid).className="ipt_txt_reg_over";
}
//得到有id指定对象的值的长度
function getValueLength(id){
	var lengthStr=getId(id).value.length;
	return lengthStr;
}

//长度的验证（不为空）
function checkLenght(lengthInt,iptid,noteid,erroStr) //最小长度，输入框id，提示区id，错误提示信息
{
	if(getValueLength(iptid)<lengthInt){
		getId(noteid).className="listnote_erro";
		getId(iptid).className="ipt_txt_reg";
		setMsg(noteid,erroStr);
	}else{
		getId(noteid).className="listnote";
		setMsg(noteid,'<img src="/skin/zlzx/images/icon/passed_g16.jpg" />&nbsp;&nbsp;');
		getId(iptid).className="ipt_txt_reg";
	}
}

//表单foucs事件检测
function IptFoucs(a,b,c,d){
	lightItem(a);
	getId(b).className="ipt_txt_reg_over";
	getId(c).className="listnote_nor";
	setMsg(c,d);
	
}
//检测文本框默认提示
function checktip(iptId,str){
	var ipt=getId(iptId);
	var iptValue=ipt.value;
	ipt.onblur=function(){		
		
	}
	/*if(iptValue==""){
		getId(iptId).value=str;
	}else if(iptValue==str){
		getId(iptId).value="";
	}*/
}
/*weiwei*/
/*验证通过*/
function checkPass(iptid,noteid,erroStr){
	getId(noteid).className="listnote";
	getId(iptid).className="ipt_txt_reg";
	setMsg(noteid,'<img src="/skin/zlzx/images/icon/passed_g16.jpg" />&nbsp;&nbsp;');
}
/*验证失败*/
function checkError(iptid,noteid,erroStr){
	getId(noteid).className="listnote_erro";
	getId(iptid).className="ipt_txt_reg";
	setMsg(noteid,erroStr);
}
