

<!--  
var  flag=false;  
var  w_num=97,h_num=111;

function  DrawImage(ImgD,ww,hh){  
var  image=new  Image();  
image.src=ImgD.src;  

if(image.width>0  &&  image.height>0)
{ 
  if (image.width>ww && image.height<=hh){
     ImgD.width=ww; 	 	 
    }
  if (image.height>hh && image.width<=ww){
     ImgD.height=hh;
    }
  if (image.height>hh && image.width>ww){
     num=ww/image.width;
	
	 height_num=image.height*num;
	 
	 if (height_num>hh){
	     num=hh/image.height;
		 ImgD.width=image.width*num;
		 ImgD.height=hh;
		 
		 w_num=image.width*num;
		 h_num=hh;
	 }
	 else{
	     ImgD.width=ww;
		 ImgD.height=image.height*num;
		 
		 w_num=ww;
		 h_num=image.height*num;
	 }
	 
    }	
	//ImgD.alt=image.width+"×"+image.height;
	}
}
//--> 



 function reg(e)
 {
   if (e.user_name.value.length==0){
		            alert("用户名必须填写！");
					e.user_name.focus()
					return false;
		   }
		   if (e.user_password.value.length==0){
		            alert("密码必须填写！");
					e.user_password.focus()
					return false;
		   }
 }
 
function cleck(){
  if(document.keyword.keywords.value=="")
  {  alert("keyword！");
	document.keyword.keywords.focus();
	return false;
  }
  return true;
}
