﻿// JScript File

function setFocusToField()
	{
	    var theform;    
	
        if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
	        theform = document.forms["aspnetForm"];
        else
	        theform = document.aspnetForm;

	}
    
	function validate()
	{
        var theform;
		var postback = true;
				
		if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
			theform = document.forms["aspnetForm"];
		else
			theform = document.aspnetForm;		
		
		if (DivEmptyFieldValidation(theform.ctl00$ContentPlaceHolder1$txtLogIn,'Please Enter User-Id','ctl00_ContentPlaceHolder1_error_div')==false)
		{
			theform.ctl00$ContentPlaceHolder1$txtLogIn.focus();
			postback = false; 
			return false;
		}
		
		if (DivEmptyFieldValidation(theform.ctl00$ContentPlaceHolder1$txtPassword,'Please Enter Password','ctl00_ContentPlaceHolder1_error_div')==false)
		{
			theform.ctl00$ContentPlaceHolder1$txtPassword.focus();
			postback = false; 
			return false;
		}
    }