function writeLoginPanel(aa)
{
if(!aa||!aa.domainlist||-1==aa.domainlist.indexOf("."))
{
return;
}

var bbm='if(0 == this.uin.value.length){ this.uin.focus(); return false;};if(0 == this.pwd.value.length){ this.pwd.focus(); return false;};this.submit();this.pwd.value=\'\';return false;',
bDF='<form action="https://exmail.qq.com/cgi-bin/login" target="_blank" method="post" onsubmit="'+bbm+'"><ul id="exmailbox"><input type="hidden" name="firstlogin" value="false" /><input type="hidden" name="errtemplate" value="dm_loginpage" /><input type="hidden" name="aliastype" value="other" /><input type="hidden" name="dmtype" value="bizmail" /><input type="hidden" name="p" value="" /><li><label>ÓÃ»§</label><input type="text" class="text" name="uin"  value="" />@#domainlist#<label></li><li>ÃÜÂë</label><input type="password" name="pwd" class="text" value="" /><input type="submit" class="" name=""  value="µÇÂ¼" /></li></form>';

var nD=aa.domainlist.split(";");
if(nD.length==1)
{
var atl='<span>#domain#</span><input type="hidden" name="domain" value="#domain#" />';
var gh=atl.replace(/#domain#/g,nD[0]);
}
else
{
var gh='<select name="domain">';
for(i=0;i<nD.length;i++)
{
gh+='<option value="'+nD[i]+'">'+nD[i]+'</option>';
}
gh+='</select>';
}

if(!aa.mode||aa.mode=="vertical"||aa.mode=="both")
{
document.write(bDF.replace(/#domainlist#/g,gh));
}
if(aa.mode=="horizontal"||aa.mode=="both")
{
document.write(bDK.replace(/#domainlist#/g,gh));
}
}

