function clearBox(box)
{
	if(box.value==box.defaultValue)
	{
 		box.value = "";
	}
}

function bt_tj(form)
{
  form.submit();
}
 
function ImgView(obj)
{
  auto = false;
  $( "#imgbox" ).fadeOut( "fast" );
  $( "#imgbox" ).attr( "src", obj.childNodes[0].src );
  $( "#imgbox" ).fadeIn( "normal" );
}

function imgshow(Img,w,h){  
   var flag=false;  
   var i = 0;
   var images = new Array();   
   var image=new Image();  
   image.src=Img.src;  
   width=w; 
   height=h; 
   if(image.width>width||image.height>height){
   w=image.width/width; 
   h=image.height/height; 
   if(w>h){
      Img.width=width; 
      Img.height=image.height/w; 
   }else{
   Img.height=height; 
   Img.width=image.width/h; 
    } 
   } 
} 

function JumpPage(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function chkEmailInput(form)
 {
	if (form.email.value=='')
	{
		alert("请输入您的邮件")
		document.form.email.focus();
		return false;
 	}
	var re = new RegExp("^([A-Za-z0-9_|-]+[.]*[A-Za-z0-9_|-]+)+@[A-Za-z0-9|-]+([.][A-Za-z0-9|-]+)*[.][A-Za-z0-9]+$","ig");
	if (!re.test(form.email.value))
	{	
		alert("E-MAIL格式不正确！");
		form.email.focus();
		return false;
	}

}