function openWindow(title){window.open('third.asp?title=' + title,'','toolbar=no,scrollbars=yes,resizable=no,left=80,top=50,width=640,height=480');}

function closeWindow(){window.close();}


function oWindow(theURL,w,h,f){ 
if(f==1) window.open(theURL,'','toolbar=no,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h );
if(f==2) window.open(theURL,'','toolbar=no,scrollbars=yes,resizable=no, width=' + w + ',height=' + h );
if(f==3) window.open(theURL,'','toolbar=no,scrollbars=no, resizable=yes,width=' + w + ',height=' + h );
if(f==4) window.open(theURL,'','toolbar=no,scrollbars=no, resizable=no, width=' + w + ',height=' + h );
if(f==6) window.open(theURL,'','toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h );
if(f==5) window.open(theURL,'','menubar=yes,location=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h );
}


function ow(theURL) { window.open(theURL,'news','toolbar=no,scrollbars=yes,resizable=yes,width=380,height=220');}

function pop(theURL,wd,w,h) { window.open(theURL,wd,'toolbar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);}

function pp(theURL,wd,t,l,w,h) { window.open(theURL,wd,'toolbar=no,scrollbars=no,resizable=no,top=' + t + ', left=' + l + ',width=' + w + ',height=' + h);}

function searchzj(){

 if (zjsearch.keywords.value==""){
 alert("请输入准考证号!");
 zjsearch.keywords.focus();
 return false;
 }
 var s=zjsearch.keywords.value.indexOf("'");
 if(s!=-1){
 alert("准考证号中有非法字符");
 zjsearch.keywords.focus();
 return false;
 }
 var j=zjsearch.keywords.value.indexOf("=");
 if(j!=-1){
  alert("准考证号中有非法字符");
 zjsearch.keywords.focus();
 return false;
 }
 document.zjsearch.submit()
}