function popwin(url)
 {
  var newswin=window.open(url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=777,height=420,left=0,top=0");
  newswin.focus();
  
}

function click() 
{
if (event.button==2 ||event.button==3 )
   alert('中纺网络会员可下载或打印，欢迎加入');
}

function keyclick()
{   

if (event.keyCode==67 || event.keyCode==17 || event.keyCode==13 || event.keyCode==65 || event.keyCode==68)
   alert('中纺网络会员可下载或打印，\n\n欢迎加入');
}   
function win1(url)
 {
  var newswin1=window.open(url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=30,left=0,top=0");
  
}
function win2(url)
 {
  var newswin2=window.open(url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=175,left=170,top=195");
  
}

function win3(url)
 {
  var newswin2=window.open(url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=550,height=475,left=170,top=100");
  
}
<!-- Static Logo Head Begin --> 

var brOK=false; 
var mie=false; 
var aver=parseInt(navigator.appVersion.substring(0,1)); 
var aname=navigator.appName; 
 
function checkbrOK() 
{if(aname.indexOf("Internet Explorer")!=-1) 
 {if(aver>=4) brOK=navigator.javaEnabled(); 
mie=true; 
 } 
 if(aname.indexOf("Netscape")!=-1) 
 {if(aver>=4) brOK=navigator.javaEnabled();} 
} 
 
var vmin=2; 
var vmax=5; 
var vr=2; 
var timer1; 
 
function Chip(chipname,width,height) 
{this.named=chipname; 
 this.vx=vmin+vmax*Math.random(); 
 this.vy=vmin+vmax*Math.random(); 
 this.w=width; 
 this.h=height; 
 this.xx=0; 
 this.yy=0; 
 this.timer1=null; 
} 
 
function movechip(chipname) 
{ 
 if(brOK) 
{eval("chip="+chipname); 
 if(!mie) 
{pageX=window.pageXOffset; 
 pageW=window.innerWidth; 
 pageY=window.pageYOffset; 
 pageH=window.innerHeight; 
} 
 else 
{pageX=window.document.body.scrollLeft; 
 pageW=window.document.body.offsetWidth-8; 
 pageY=window.document.body.scrollTop; 
 pageH=window.document.body.offsetHeight; 
}
 
 chip.xx=chip.xx+chip.vx; 
 chip.yy=chip.yy+chip.vy; 

 chip.vx+=vr*(Math.random()-0.5); 
 chip.vy+=vr*(Math.random()-0.5); 
 if(chip.vx>(vmax+vmin))chip.vx=(vmax+vmin)*2-chip.vx; 
 if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx; 
 if(chip.vy>(vmax+vmin))chip.vy=(vmax+vmin)*2-chip.vy; 
 if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy; 
 
 
 if(chip.xx<=pageX) 
 {chip.xx=pageX; 
chip.vx=vmin+vmax*Math.random(); 
 } 
 if(chip.xx>=pageX+pageW-chip.w) 
 {chip.xx=pageX+pageW-chip.w; 
chip.vx=-vmin-vmax*Math.random(); 
 } 
 if(chip.yy<=pageY) 
 {chip.yy=pageY; 
chip.vy=vmin+vmax*Math.random(); 
 } 
 if(chip.yy>=pageY+pageH-chip.h) 
 {chip.yy=pageY+pageH-chip.h; 
chip.vy=-vmin-vmax*Math.random(); 
 } 
 
 if(!mie) 
{eval('document.'+chip.named+'.top ='+chip.yy); 
 eval('document.'+chip.named+'.left='+chip.xx); 
}
 else 
{eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx); 
 eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
} 
 chip.timer1=setTimeout("movechip('"+chip.named+"')",300); 
} 
} 
 
 
function stopme(chipname) 
{if(brOK) 
{//alert(chipname) 
 eval("chip="+chipname); 
 if(chip.timer1!=null) 
{clearTimeout(chip.timer1)} 
} 
} 
 


var chip1; 
//add or delete more variables, depending on how many images you're using 
 
function start() 
{checkbrOK();
 chip1=new Chip("chip1",60,80); 
 //add or delete more of the above, depending on how many images you're using 
 if(brOK)
 { movechip("chip1"); 
 //add or delete more of the above, depending on how many images you're using 
 } 
} 
//


 function mymove()
 {
  var m_fix=document.body.clientHeight
  var top_fix=135
  //var left_fix=document.body.clientWidth*0.83
  var left_fix=document.body.clientWidth*0.84
 star.style.top=document.body.scrollTop+m_fix-200
 star.style.left=left_fix
 setTimeout("mymove();",1)
 }

function mymove2()
 {
  var m_fix=document.body.clientHeight
  var top_fix=0
  var left_fix=document.body.clientWidth*0.88
 star1.style.top=document.body.scrollTop+m_fix-310
 star1.style.left=left_fix
 setTimeout("mymove2();",1)
 }
function mymove1()
 {
  var m_fix=document.body.clientHeight
  var top_fix=100
  var left_fix=document.body.clientWidth*0.03
 star1.style.top=document.body.scrollTop+m_fix-110
 star1.style.left=left_fix
 setTimeout("mymove1();",1)
 }


function rege(theForm)
{
  if (theForm.frdm.value == "")
  {
    alert("请输入用户名!");
    theForm.frdm.focus();
    return (false);
  }


  if (!checktext(theForm.frdm.value)){
    alert("用户名中不能含有空格或无效字符!");
    theForm.frdm.select();
    theForm.frdm.focus();
    return (false);
  }

	var checkOKpass = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
	var checkStrpass = theForm.frdm.value;
	var allValidpass = true;
	for (i = 0;  i < checkStrpass.length;  i++)
	{
		ch = checkStrpass.charAt(i);
		for (j = 0;  j < checkOKpass.length;  j++)
		if (ch == checkOKpass.charAt(j))
			break;
		if (j == checkOKpass.length)
		{
			allValidpass = false;
			break;
		}
	}

	if (!allValidpass)
	{
	alert("用户名有效值为数字或字母");
	theForm.frdm.select();
	theForm.frdm.focus();
		return (false);
	}
	
  if (theForm.pwd.value == "")
  {
    alert("请输入密码!");
    theForm.pwd.focus();
    return (false);
  }


  if (!checktext(theForm.pwd.value)){
    alert("密码中不能含有空格或无效字符!");
    theForm.pwd.select();
    theForm.pwd.focus();
    return (false);
  }

	var checkOKpass = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
	var checkStrpass = theForm.pwd.value;
	var allValidpass = true;
	for (i = 0;  i < checkStrpass.length;  i++)
	{
		ch = checkStrpass.charAt(i);
		for (j = 0;  j < checkOKpass.length;  j++)
		if (ch == checkOKpass.charAt(j))
			break;
		if (j == checkOKpass.length)
		{
			allValidpass = false;
			break;
		}
	}

	if (!allValidpass)
	{
	alert("密码有效值为数字或字母");
	theForm.pwd.select();
	theForm.pwd.focus();
		return (false);
	}
}
	
function checktext(text)
{
  allValid = true;
  for (i = 0;  i < text.length;  i++)
	{
	if (text.charAt(i) == " " || text.charAt(i) == "'")
		{
		allValid = false;
		break;
		}
	}
return allValid;
}

function oCPFLonchange()                                                                                      {
  document.all.oCPBM.options.length = 1;                                                                     
  str = new String(document.all.oCPFL.value); 
  s_len = str.length;                                                                       
  l = arr_cpbm.length;                                                                       
  for (i = 0; i <= l-1; i++)                                                                        
  {                                                                       
    bm_str = new String(arr_cpbm[i]);                                                                       
    bm5str = bm_str.substr(0,1);                                          
    if ( str == bm5str  || str==" " )                                                                       
    {                                                                       
      var oOption = document.createElement("OPTION");
      oOption.text = arr_cpmc[i];
      oOption.value = arr_cpbm[i].substr(1,arr_cpbm[i].length-1);
      document.all.oCPBM.add(oOption);                                                                            }                                                                               
  }                                                                       
}                                                                                                        

function oHYFLonchange()                                                                                      {
  document.all.HYFL.options.length = 1;                                                                     
    str = new String(document.all.cGJBM.value); 
  if ( str == "" )
  {
    str=new String("China")
  }
  s_len = str.length;                                                                       
  l = arr_hymc.length;                                                                       
  for (i = 0; i <= l-1; i++)                                                                        
  {                                                                       
    bm_str = new String(arr_gjbm[i]);    
    bm5str = bm_str.substr(0,s_len);                                          
//alert(str+","+arr_hybm[i]+","+arr_hymc[i]+","+bm5str);
    if ( str == bm5str )                                                                       
    {
      var oOption = document.createElement("OPTION"); 
      oOption.text = arr_hymc[i];
      oOption.value = arr_hybm[i];
      document.all.HYFL.add(oOption);                                                                            }                                                                               
  }                                                                       
}

