
function checkinfo(){
  
	if(form1.truename.value==""){
	    alert("Please enter your name!");
	    form1.truename.focus();
	    form1.truename.style.backgroundColor = "#fffff0";
	    return false;   
	}   
	if (form1.Email.value != ""){
			if (form1.Email.value.indexOf('@') == -1 || form1.Email.value.indexOf('.') == -1) {
					alert("Sorry,invaild email.");
					form1.Email.focus();
					form1.Email.style.backgroundColor = "#fffff0";
					return false;
			}
	}
	if (form1.Content.value.length < 1){
			alert('Please enter the content.');
			form1.Content.focus();
			form1.Content.style.backgroundColor = "#fffff0";
			return false;
	}
	if (form1.Content.value.length > 1000){
			alert('Please 1,000 words in length control.');
			form1.Content.focus();
			form1.Content.style.backgroundColor = "#fffff0";
			return false;
	}

}

function schform_onsubmit() {
		if (schform.keyword.value.length < 1){
				alert("Please enter the keywords.");
				schform.keyword.focus();
				schform.keyword.style.backgroundColor = "#fffff0";
				return false;
		}
		return true;
}


function IsEmail(str){
  var nLen;
  var nCnt1, nCnt2;
  nCnt1=0;
  nCnt2=0;
  nLen = str.length;
  for(var i=0; i<nLen; i++){
      if(str.charAt(i)==' '){
          return false;}
      if(str.charAt(i)=='\'' || str.charAt(i)=='\"'){
          return false;}
      if(str.charAt(i)=='<' || str.charAt(i)=='>' ){
          return false;}
      if(str.charAt(i)=='@'){
          nCnt1++;}
      if(str.charAt(i)=='.'){
          nCnt2++;}
  }
  if( nCnt1!=1 || nCnt2<1){
      return false;
  }
  else
      return true;
}


function checkjob(){

 if(document.form1.title.value=="")
   {alert("Please enter the position.");
   document.form1.title.focus();
   form1.title.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.xinjinyaoqiu.value=="")
   {alert("Please enter the salary");
   document.form1.xinjinyaoqiu.focus();
   form1.xinjinyaoqiu.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.zhenshiname.value=="")
   {alert("Please enter your real name");
   document.form1.zhenshiname.focus();
   form1.zhenshiname.style.backgroundColor = "#fffff0";
     return false;
    }

	if(document.form1.mingz.value=="")
   {alert("Please enter your nation");
   document.form1.mingz.focus();
   form1.mingz.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.marry.value=="")
   {alert("Please enter your Marital status.");
   document.form1.marry.focus();
   form1.marry.style.backgroundColor = "#fffff0";
     return false;
    }
	
	if(document.form1.hukou.value=="")
   {alert("Please enter your Accounts.");
   document.form1.hukou.focus();
   form1.hukou.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.address.value=="")
   {alert("Please enter you address.");
   document.form1.address.focus();
   form1.address.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.xueli.value=="")
   {alert("Please enter your Highest level");
   document.form1.xueli.focus();
   form1.xueli.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.biyexuexiao.value=="")
   {alert("Please enter your School graduation.");
   document.form1.biyexuexiao.focus();
   form1.biyexuexiao.style.backgroundColor = "#fffff0";
     return false;
    }
	if(document.form1.FLlevel.value=="")
   {alert("Please enter your English Level");
   document.form1.FLlevel.focus();
   form1.FLlevel.style.backgroundColor = "#fffff0";
     return false;
	 }
	 if(document.form1.computerlevel.value=="")
   {alert("Please enter your computer Level.");
   document.form1.computerlevel.focus();
   form1.computerlevel.style.backgroundColor = "#fffff0";
     return false;
	 }		 

}




function SetHomePage(obj)
{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('www.chameleon.com');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  var strUrl = selObj.options[selObj.selectedIndex].value
  window.open(strUrl,'link')
  if (restore) selObj.selectedIndex=0;
}


function winOpen(){
	window.open ('voteCheck.asp','','width=400,height=360,top=0,left=0,resizable=yes');
}

