function validate()
	{
	 
	 if(document.login.txtusername.value <= 0)	{	
		alert("Please enter your Username");
		document.login.txtusername.focus();
		return false;
	    }
/*	var emailstr = document.login.txtusername.value;
    if(document.login.txtusername.value.length >= 1)	
	{
	 var emailPat = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,3})$/;
	 var matchArray = emailstr.match(emailPat);
	 if (matchArray == null) 	
	    {
	    alert("Your email address appears incorrect.  Please try again entering it lower case and check the '@' and '.' characters.");
	    document.login.txtusername.focus();
	    return false;
	    }
	}
	*/
	 if(document.login.password.value <= 0)	{	
		alert("Please enter your Password");
		document.login.password.focus();
		return false;
	    }
	if(document.login.Nrandom.value =='')	{	
	    alert("Please Enter Security Code");
		document.login.Nrandom.focus();
	    return false;
	  }
	    if(document.login.Nrandom.value <= 0)	{	
	    alert("Please Enter Security Code");
		document.login.Nrandom.focus();
	    return false;
	  }
	  if(document.login.Nrandom.value.length < 5)	{	
	    alert("Please Enter Right Security Code");
		document.login.Nrandom.focus();
	    return false;
	  }
		return true;
	}	
