	document.getElementById("bt1").innerHTML="<input src='http://www.ownpages.com/loginbut.gif' type=image name=submit value=Login title='Enter your User ID and password to log in'>";
        function DoLogin(){
                var dname = document.domain;
                if (document.pf.l.value.length==0 || document.pf.l.value=="User ID"){
                        alert('Please fill in the username');
                        document.pf.l.focus();
                        document.pf.l.select();
                        return false;
                }
                if (document.pf.p.value.length==0 || document.pf.p.value=="wxaopeijf"){
                        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;
				document.pf.action="http://mail.linq.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";
				if(document.pf.l.value.length==10){
                                	var pp=dname.search("linq.in");
                                	if (pp != -1)
                                	        document.pf.action="http://mail.linq.in/dli.e";
                                	else
                                       		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;
        }
