// JavaScript Document
var numb;

function init()
{
	document.form1.txt1.focus()
}

function validate()
{		  
	if (document.form1.txt1.value==0)
		{
			alert("Please Enter Your User ID.")
			document.form1.txt1.focus();
			return false;
		}
	
	if (document.form1.txt2.value==0)
		{
			alert("Please Enter Your Password.")
			document.form1.txt2.focus();
			return false;
		}
		
	//var numb=document.form1.txt1.value;	
	//	if (numb!="")
	//	{
	//		//var numb;
	//		var flag;
	//		var i;
	//  
	//		numb= document.form1.txt1.value;
	//		if (numb!="")
	//		{	
	//			  flag = 0;
	//			  for(i=0;i<=(numb.length-1);i++)
	//			  {
	//				if (numb.charAt(i)!=" ")
	//				  {
	//					  if (numb.charAt(i)<"0" || numb.charAt(i)>"9")
	//					  {
	//						flag=1;
	//						break;
	//					  }
	//					  else if ((numb.length)>5 || (numb.length)<5 )
	//					  {
	//						flag=2;
	//						break;
	//					  }
	//				      else
	//				      {
//   //           alert("the no is correct")
	//				      }
	//				  }
	//			  }
	//			
	//			  if (flag==1)
	//			  {
	//				   alert("Roll No can contain digits only.")
	//				   document.form1.txt1.focus();
	//				   return false;
	//			  }
	//			  if (flag==2)
	//			  {
	//				   alert("Roll No must contain Five digits.")
	//				   document.form1.txt1.focus();
	//				   return false;
	//			  }
	//			 
	//		 }
	//	}	
	//	

	}

