function chkvalidation() {

// *********  USER ID  Check *********

if (document.frmLogin.txtUserId.value=="" )
  	{
  	alert ("Must Enter User ID ");
  	document.frmLogin.txtUserId.focus(); 
  	return;
	}

// *********  PASSWORD Check *********

if (document.frmLogin.txtPassword.value=="" )
  	{
  	alert ("Must Enter Password ");
  	document.frmLogin.txtPassword.focus(); 
  	return;
	}

document.frmLogin.submit();
}


// ***********************************************



function check1() {

// ******* get email value from form ********


var mEmail=document.forma.txtEmail.value;


// ********  Name Check ********

  if (document.forma.txtName.value=="" )
  {
  alert ("Enter Your Name");
  document.forma.txtName.focus(); 
  return;
  }
  
  
  // ********  UserID Check ********

  if (document.forma.txtUserId.value=="" )
  {
  alert ("Enter User ID");
  document.forma.txtUserId.focus(); 
  return;
  }
  
   // ********  Password Check ********

  if (document.forma.txtPassword.value=="" )
  {
  alert ("Enter Password");
  document.forma.txtPassword.focus(); 
  return;
  }


// ********  Email Check *********

  if(mEmail.length==0){
		alert("Email must be entered");
		document.forma.txtEmail.focus();
		return;
	}	 
	else {
		var a=mEmail.indexOf("@",0)
		if(a<0) {
			alert("Invalid Email Address");
			document.forma.txtEmail.focus();
			return;
				}
		 }
	
// *********  Message Check *********


  if (document.forma.txtGroup.value=="" )
  {
  alert ("Enter Your Group");
  document.forma.txtGroup.focus(); 
  return;
  }
 else
  {
   document.forma.submit();
   }


}

//  **********  Agreement Values Check  ****************


function checkform() {

if (document.agreement.S_Name.value=="") {
alert ("Must Enter Your Name ");
document.agreement.S_Name.focus();  
return;
}

if (document.agreement.S_Position.value=="") {
alert ("Must Enter Your Designation ");
document.agreement.S_Position.focus();
return;   
}
document.agreement.submit();
}

// ********  Agreement End  ********************************