function check(input){   
  if(input.mailSelect.options.selectedIndex==0)
  {   
     alert("提示：请正确选择你使用的邮箱");   
     return false;
   }   
  if(input.name.value==""){   
     alert("提示：邮箱用户名必须填写！");   
     input.name.focus();   
     return false;
   }   
  if(input.password.value=="" || input.password.value.length<3){   
     alert("提示：邮箱密码必须填写完整！");   
     input.password.focus();   
     return false;
  }   

  
else
 {
//

   go();   
   return false;
  }
}

function makeURL(){   
var objForm=document.mailForm;   
var intIndex=objForm.mailSelect.options.selectedIndex;  
var varInfo=objForm.mailSelect.options[intIndex].value;  
var arrayInfo=varInfo.split(';'); 
var varPasswd=objForm.password.value;
if (intIndex==1)
{
//如是自己邮局打开下面
var strName=objForm.name.value;
//var strName=objForm.name.value+"@ljkfq.com";//自己邮局
}
else
{
var strName=objForm.name.value;
}
       
var length=arrayInfo.length,strProvider=arrayInfo[0],strIdName=arrayInfo[1],varPassName=arrayInfo[2];   
if(length==3){   
var strUrl=strProvider+'?'+strIdName+'='+strName+'&'+varPassName+'='+varPasswd;   
}
else{
if(arrayInfo[3]=='suffix') strName+='@'+arrayInfo[4]
var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varPasswd+'">';   
if(arrayInfo[3]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[4]+'" value="'+arrayInfo[5]+'">'
strUrl+='</form>';   
}
return strUrl;  
}

function go(){   
  var strLocation=makeURL();   
  if(strLocation.indexOf('<form name="tmpForm"')!=-1)
  {  
     outWin=window.open('','','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');   
     doc=outWin.document;   
     doc.open('text/html');   
     doc.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>多邮箱快速登录系统</title></head><body onload="document.tmpForm.submit()">');   
     doc.write('<p align="center" style="font-size: 14px; color: #FF0000">『<a href="http://www.dy369.com/" target="_blank"><B>技术支持：东营网站大全</B></a>』多邮箱快速登录系统......</p>'+strLocation+'</body></html>');   
     doc.close();   
  }
else 
//  window.open(strLocation,'','menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,,scrollbars=yes');   
  window.open(strLocation,'','menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,,scrollbars=yes','_top');   
}

function News_Window(theURL,winName,features) {
window.open(theURL,winName,features);
}
