



function background(obj){
	switch (obj.id) {
		case "nav_home":
			obj.style.backgroundPosition="0px -50px";
			break;
	}
	}

function nombak(obj){
	switch (obj.id) {
		case "nav_home":
			obj.style.backgroundPosition="0px 0px";
		break;
	}
	}









	
		stuHover = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	
		
	var getElm = document.getElementById("nav").getElementsByTagName("LI");
	var getid_Elm = document.getElementById("id_nav").getElementsByTagName("LI");
	var getlan_Elm = document.getElementById("lan_nav").getElementsByTagName("LI");
	for (var i=0; i<getElm.length; i++) {
		getElm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getElm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
	for (var i=0; i<getid_Elm.length; i++) {
		getid_Elm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getid_Elm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
	for (var i=0; i<getlan_Elm.length; i++) {
		getlan_Elm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getlan_Elm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", stuHover);




function checkform(isForm)
{
	switch (isForm.id) {
		case "online":
			if(isForm.sqje.value==0){
				alert("提示信息：请输入申请贷款金额!");
				isForm.sqje.focus();
				return false;
				}else
			if(isForm.sqqx.value==0){
				alert("提示信息：请输入申请贷款期限!");
				isForm.sqqx.focus();
				return false;
				}else
			if(isForm.sqqx.value==0){
				alert("提示信息：请输入申请贷款期限!");
				isForm.sqqx.focus();
				return false;
				}else
			if (isForm.dklb1.checked)
			{
				if(isForm.gr_xm.value==0){
				alert("提示信息：请输入您的姓名!");
				isForm.gr_xm.focus();
				return false;
				}else
				if(isForm.gr_sf.value==0){
				alert("提示信息：请输入您的省份!");
				isForm.gr_sf.focus();
				return false;
				}else
				if(isForm.gr_city.value==0){
				alert("提示信息：请输入您的市!");
				isForm.gr_city.focus();
				return false;
				}else
				if(isForm.gr_mobile.value==0){
				alert("提示信息：请输入您的移动电话!");
				isForm.gr_mobile.focus();
				return false;
				}else
				if(isForm.gr_phone.value==0){
				alert("提示信息：请输入您的固话!");
				isForm.gr_phone.focus();
				return false;
				}else
				if(isForm.gr_email.value==0){
				alert("提示信息：请输入您的邮箱!");
				isForm.gr_email.focus();
				return false;
				}
				}
			if (isForm.dklb0.checked)
			{
				if(isForm.jg_cp.value==0){
				alert("提示信息：请输入公司名称!");
				isForm.jg_cp.focus();
				return false;
				}else
				if(isForm.jg_xm.value==0){
				alert("提示信息：请输入联系人!");
				isForm.jg_xm.focus();
				return false;
				}else
				if(isForm.jg_sf.value==0){
				alert("提示信息：请输入您的省份!");
				isForm.jg_sf.focus();
				return false;
				}else
				if(isForm.jg_city.value==0){
				alert("提示信息：请输入您的市!");
				isForm.jg_city.focus();
				return false;
				}else
				if(isForm.jg_monbile.value==0){
				alert("提示信息：请输入您的移动电话!");
				isForm.jg_monbile.focus();
				return false;
				}else
				if(isForm.jg_phone.value==0){
				alert("提示信息：请输入您的固话!");
				isForm.jg_phone.focus();
				return false;
				}else
				if(isForm.jg_email.value==0){
				alert("提示信息：请输入您的邮箱!");
				isForm.jg_email.focus();
				return false;
				}
				}
			isForm.action=isForm.acadd.value
			isForm.submit();
		break;
		}
	}
	
	
	function shows(isObj){
		document.getElementById("geren").style.display="none";
		document.getElementById("jigou").style.display="none";
		document.getElementById(isObj).style.display="block";
		}
