// ActionScript Communications Document
//站内搜索
function procheck(){
	if(document.formSear.keys.value==""){
		alert("请输入关键词！");
		document.formSear.keys.focus();
		return false
	}
}
//留言F
 function Fcheck(){
   if(formF.types.value==""){
      alert("请选择留言类型！");
	  formF.types.focus();
	  return false;
	  }
   if(formF.man.value==""){
      alert("请正确填写您的姓名！");
	  formF.man.focus();
	  return false;
	  }
	if(formF.tel.value==""){
      alert("请填写您的联系电话！");
	  formF.tel.focus();
	  return false;
	  }
    if(formF.email.value==""){
      alert("请填写您的E-mail！");
	  formF.email.focus();
	  return false;
	  }
    if(emailcheck(formF.email.value)){
		alert("请输入正确的E-mail！");
		formF.email.focus();
		return false;
   }
	if(formF.content.value==""){
      alert("您的留言内容不能为容！");
	  formF.content.focus();
	  return false;
	  }
	if(formF.validatecode.value==""){
      alert("验证码不能为空！");
	  formF.validatecode.focus();
	  return false;
	  }
}

//判断Email的正确性
function   emailcheck(string){     
  var   str_len   =   string.length;   
  if   (str_len<=5){   
        return   true   
          }       
  for(i=0;i<str_len;i++){   
          if   (string.charCodeAt(i)>127){   
  return   true     
  }   
  }   
  if   (string.indexOf("@")<2){   
          return   true   
          }       
    if   (string.indexOf(".")==1){   
          return   true   
          }       
  if   (string.indexOf(":")!=-1){   
          return   true   
  }   
 }
//弹出窗口
function Win(file,w,h,r,s){
    window.open(file,'','resizable='+r+',width='+w+",height="+h+',scrollbars='+s+',left='+(screen.availWidth-w)/2+',top='+(screen.availHeight-h)/2);
}
//查看大图资料
function showMax(img){
	   win=window.open('imgsShow.asp?pic='+img,'','width=100%,height=100%');
	}
