document.getElementById("bt1").innerHTML="<input src=loginbut.gif type=image name=submit value=Login title='Enter your voice User ID or full Email ID and password to log in'>";
function DoLogin(){
var dname = document.domain;
if (document.pf.l.value.length==0 || document.pf.l.value=="uid or email id"){ alert('Please fill in the username'); document.pf.l.focus(); document.pf.l.select(); return false; }
if (document.pf.p.value.length==0 ){ alert('Please fill in the password'); document.pf.p.focus(); document.pf.p.select(); return false; }
var pos=document.pf.l.value.indexOf('@');
if (pos != -1){ var newl=document.pf.l.value.split("@"); document.pf.l.value=newl[0]; document.pf.action="http://mail." + newl[1] + "/dli.e"; }
else{ if (isNaN(document.pf.l.value)){ alert('Please enter your full email address including domain name'); document.pf.l.focus(); document.pf.l.select(); return false; } 
if (document.pf.l.value.length==9) 
{
document.pf.action="http://mail.sim.trikon.in/dli.e"; 

}
else if((document.pf.l.value.length>4 && document.pf.l.value.length <=10) || (document.pf.l.value.length>11)) 
{ 
document.pf.action="http://mail.voip.ownmail.com/dli.e"; 
} 
else if(document.pf.l.value.length==11){ var pp=dname.search("trikon.in"); 
if (pp != -1) document.pf.action="http://mail.voip.ownmail.com/dli.e"; 
else document.pf.action="http://mail.linq.in/dli.e"; } 
else{ document.pf.action="http://mail.voice.ownmail.com/dli.e"; } }
document.pf.method="post"; document.pf.submit(); return true; }
