function isSelect() {
	
	var validate = document.getElementById('validate');

	if(document.getElementById("fname").value == "") {
		alert("The First Name field can not be blank. Please fill in the field.");
		document.getElementById("fname").focus();
		return false;
	}
	if(document.getElementById("lname").value == "") {
		alert("The Last Name field can not be blank. Please fill in the field.");
		document.getElementById("lname").focus();
		return false;
	}
	
	if(document.getElementById("email").value == "") {
		alert("The Email field can not be blank. Please fill in the field.");
		document.getElementById("email").focus();
		return false;
	}
	if(document.getElementById("phone").value == "") {
		alert("The Phone field can not be blank. Please fill in the field.");
		document.getElementById("phone").focus();
		return false;
	}
	if(document.getElementById("body").value == "") {
		alert("The Enquiry field can not be blank. Please fill in the field.");
		document.getElementById("body").focus();
		return false;
	}
	
	if(document.getElementById("body").value.length > 200){
		alert("The Enquiry field are not more than 200 characters.");
		document.getElementById("body").focus();
		return false;
	}
	
	if(validate.value == ""){
		alert("You must supply an  validate code!");
		validate.focus();
		return false;
	}
	/*-=================================================================================================-*/
	//真实姓名
	/*if(RNstate == -1){
		alert("真实姓名不能含有空格");
		return false;
	}
	if(RNstate == -2){
		alert("真实姓名最多8个字符");
		return false;
	}
	//身份证
	if(ICstate == -1){
		alert("对不起，请确信您输入的为合法身份证号码！");
		return false;
	}*/
	//邮箱
	if(EMstate == -1){
		alert("Error Email!");
		document.getElementById("email").focus();
		return false;
	}
	
		//验证码
	if(VALstate == -1){
		alert("Error validate code!");
		document.getElementById("validate").focus();
		return false;
	}

/*-=================================================================================================-*/
	
}

//验证真实姓名
var RNstate = 1;
function regexrealName(realName) {
	 if(realName == ""){
		return false;
	 }
	var len = realName.length;
	var regex = /\s/;
	if(regex.test(realName)) {

		return RNstate = -1;
	}
	if(len > 8) {
		return RNstate = -2;
	}
	return RNstate = 1;	
}
//验证身份证号码
var ICstate = 1;
function regexIDCard(IDCard) {
	 if(IDCard == ""){
		return ICstate = 1;
	 }
	var len = IDCard.length;
	if(len==15) {
		return ICstate = 1;
	}
	if(len==18) {
		return ICstate = 1;
	}		
	return ICstate = -1;	
}
//验证邮箱
var EMstate = 1;
function regexEmail(Email) {
	 if(Email == ""){
		return false;
	 }
	var regex = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/;
	if(!regex.test(Email)) {
		return EMstate = -1;
	}
	return EMstate = 1;	
}




function ishidden(value, name) {
	if(value == "no"){
		document.getElementById(name).style.display = "block";
	}else{
		c = setTimeout(sele9(name), 50);
	}
}

function sele9(name){
	document.getElementById(name).style.display = "none";
}
function func_1(){
	clearTimeout(c);
}


//  chatdiv Live Support
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
//-->
