function userload(id,webname)
{
	location.href="http://"+webname+"/";
}


function openwin(url)
{
  top.window.open(url,"","top=100,left=100,height=460,width=780,toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,status=0");
  return false;
}


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);

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 lmxx(id)
{
	window.open("lmxx.asp?id="+id)
}

function bzj(id,mc)
{
	window.open("bzjtf.asp?xmdm="+id)
}
function bzj2(id,iszb)
{
	window.open("bzjtf.asp?iszb="+iszb+"&xmdm="+id)
}


function cjjl(id)
{
	window.open("cjjl3.asp?id="+id)
}



function lm(id)
{
	
		window.location.href="http://www.wzzbtb.com/lm.asp?lmid="+id
}

function lm(id)
{
	
		window.location.href="http://www.wzzbtb.com/lm.asp?lmid="+id
}

function lm22(id)
{
	
		window.location.href="lm2.asp?lmid="+id
}

function lm2(id,id2)
{	
		window.location.href="lm.asp?lmid="+id+"&zlm="+id2	
}

function xm(xmdm,wind){
	wind=Math.floor(Math.random()*999); 
	window.open("xm.asp?temprad="+wind+"&xmdm="+xmdm,wind);
}

function jsxmxz(xmdm){
	window.open("jsxmxz2.asp?ggid="+xmdm)
}





function xm2(href,wind){
	window.open(href,wind)
}

function xm3(href,wind){
	window.open(href,wind,"width=770,height=524,scrollbars=yes,resizable=yes")
}


function search()
{
if(searchform.searchkey.value.length==0)
{
alert("请输入检索关键字!");
searchform.searchkey.focus();
return;
}
if(searchform.searchkey.value.length>40)
{
searchform.searchkey.focus();
alert("您输入的关键字长度不能大于40个字符!");
return;
}
searchform.submit();
}



function search23()
{
	
	
if(searchformtop.ctype.value=="")
{
alert("请选择检索内容类型!");
searchformtop.ctype.focus();
return;
}


if(searchformtop.searchkey.value.length==0)
{
alert("请输入检索关键字!");
searchformtop.searchkey.focus();
return;
}



if(searchformtop.searchkey.value.length>40)
{
searchformtop.searchkey.focus();
alert("您输入的关键字长度不能大于40个字符!");
return;
}
searchformtop.submit();
}


function showtyp2(id,id2) {
id.style.display='';
id2.style.display='none';
}
function showtyp3(id,id2,id3) {
id.style.display='';
id2.style.display='none';
id3.style.display='none';
}
function showtyp4(id,id2,id3,id4) {
id.style.display='';
id2.style.display='none';
id3.style.display='none';
id4.style.display='none';
}


function submit_email() {
 email=document.form1.email.value;
	if (email==""){
		alert("请填写邮件地址！");
		document.form1.email.focus();
		return false;
	}
	else{
		var m;
		m=email.indexOf("@",1);
		if (m==-1){
			alert("邮件地址不正确！");
			document.form1.email.focus();
		return false;
		} 
	}


}

