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){ 

var winl = (screen.width-w)/2-5;
var wint = (screen.height-h)/2-5;

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, top=' + wint + ',left=' + winl + ',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 MM_openBrWindow(theURL,winName,features) {
		myWindow = window.open(theURL,winName,features);
		myWindow.focus();
	}

	function goto_url(url1) {
	  var winname='WIN_';
	  var iW=window.screen.availWidth-10;
	  var iH=window.screen.availHeight;
	  var features='scrollbars=auto,resizable=yes,left=0,top=0,width='+ iW +',height='+ iH;
	  //var features='scrollbars=no,resizable=yes';
	  MM_openBrWindow(url1,winname,features);
	  //window.botm.location=url1;
	  window.status='';
	}


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()
}