function sendit(denglu) {
  if (denglu.userid.value=="" ) {
    alert("请您填好你的用户名！");
    denglu.userid.focus();
    return(false);
  }
  if (denglu.password.value=="" ) {
    alert("请您填好你的密码！");
    denglu.password.focus();
    return(false);
  }
  if(denglu.opt.value=="0")
  {
    alert("请选择会员类型！");
    denglu.opt.focus();
    return(false);
  }
  denglu.submit();
}



function sendtj(wstj,url)
{
   var urlstr;
   var radioValue = "";
   for(var i=0;i<wstj.length;i++)
   {
   	if(wstj[i].checked)
   	  radioValue=wstj[i].value;
   }
   urlstr=url+'?tj='+radioValue;
   window.open(urlstr,null,'toolbar=no,location=no,menubar=no,width=438,height=196,left=100,top=100');
   return true;
}

function SearchFind()
{
   var urlstr;
    var radioValue = "1";
   with (form_search)
   {
        for(var i=0;i<kind_search.length;i++)
        {
   	 if(kind_search[i].checked)
         {
   	  radioValue=kind_search[i].value;
          break;
         }
        }            
    }

   urlstr = (radioValue=="1") ? "/dw/dw_condi_txt.asp" : "/per/per_condi_txt.asp";
   window.open(urlstr,null);

   return true;
}

function QuickFind() {
        var radioValue = "0";
	with (form_search)
	{
        for(var i=0;i<kind_search.length;i++)
     {
   	 if(kind_search[i].checked)
         {
   	  radioValue=kind_search[i].value;
          break;
          }
      }
	  	if (form_search.comname.value=="")
	{
             action = (radioValue=="1") ? "/dw/dw_condition_list.asp" : "/per/per_will_list.asp";
	}
	else
	{
		 action ="http://www.scrc168.com/scrcper/qzgl/Name_Search.asp";
		}
			 
     }
        
	return true;
}
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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function PrtFile(fn) {
	window.event.returnValue =false;
	window.open("/prtfile.asp?fn="+fn,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=450");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);





