// JavaScript Document<script type="text/javascript">

function hidepass(){
   document.FrmData.ptext.style.display='none'; 
   document.FrmData.pass.style.display='';
   document.FrmData.pass.focus();
 }

function showpass(){
   document.FrmData.pass.style.display='none'; 
   document.FrmData.ptext.style.display='';
   document.FrmData.ptext.focus();
}

function setEnd (el) {
 if (el.createTextRange) {
   var FieldRange = el.createTextRange();
   FieldRange.moveStart('character', el.value.length);
   FieldRange.collapse();
   FieldRange.select();
 }
}

function div_signup_show()
{
document.getElementById("div_signupnew2").style.visibility="hidden";
document.getElementById("div_signup").style.visibility="visible";
}

function div_signup_hide()
{
document.getElementById("div_signup").style.visibility="hidden";
}

/*function ValidateLogin()
{



var loginEmail=document.getElementById("txtUserName").value;
var loginPwd=document.getElementById("txtPassword").value;

var ErrorPrint="";

       

        if (loginEmail == "")
		{
		    ErrorPrint+="-Username \\ E-mail ID missing\n";
			document.getElementById("txtUserName").focus;
		}
		else
		{
		    if((loginEmail.indexOf('@')>0)== false)
		    {
		        ErrorPrint+="-Username \\ E-mail ID is not valid\n";
			    document.getElementById("txtUserName").focus;
		    }
		    else if((loginEmail.indexOf('.')>0)== false)
		    {
		        ErrorPrint+="-Username \\ E-mail ID is not valid\n";
			    document.getElementById("txtUserName").focus;
		    }
        }
        
		if (loginPwd == "")
		{
			ErrorPrint+="-Password is missing\n";
			document.getElementById("txtPassword").focus;
		}
		
		if (ErrorPrint=='')
		{
		return true;
		}
		else
		{
		alert (ErrorPrint);
		return false;
		}
}

function ValidatefgtPwd()
{
//var loginExec=document.getElementById("RDBExecutiveLogin").checked;
//var loginCorp=document.getElementById("RDBCorporateLogin").checked;
//var ErrorPrint="";

//        if (loginExec == false && loginCorp==false)
//		{
//			ErrorPrint="-Select either Employee Health Benefits or Health Check-ups \n";
//		}
//		if (ErrorPrint=='')
//		{
		return true;
//		}
//		else
//		{
//		alert (ErrorPrint);
//		return false;
//		}

}
*/
