function Valide()
{
  if(document.login.username.value=="")
	 {
		  alert("Please enter username");
		  return false;
         
	  }
	  if(document.login.password.value=="")
	 {
		  alert("Please enter password");
		  return false;
         
	  }
}
function valid_admin()
{

if(document.edi.org.value=="")
	 {
		  alert("Please Enter Name Of Organization.");
		  return false;
         
	  }
	  if(document.edi.cont_no.value=="")
	 {
		  alert("Please Enter Contact No.");
		  return false;
         
	  }
	   else if(document.edi.cont_no.value.match(/^[a-zA-Z]+$/g ))
	{
		  
		  alert("Contact No.should be in digits only");
		  return false;
	}
	   if(document.edi.Cont_Per.value=="")
	 {
		  alert("Please Enter Person's Name whom you want to contact");
		  return false;
         
	  }
	 

if(document.edi.cntry.value=="")
	 {
		  alert("Please enter name of country");
		  return false;
         
	  }
	   
	  if(document.edi.cont_no.value=="")
	 {
		  alert("Please enter Contact Number");
		  return false;
         
	  }
	  else if(document.edi.cont_no.value.match(/^[a-zA-Z]+$/g ))
	{
		  
		  alert("Contact Number should be in digits only");
		  return false;
	}
if(document.edi.email.value=="")
	 {
        alert("Please enter your Email");
        return false;

   }
   else if (!document.edi.email.value.match(/^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/g ))
	   { 
	  alert("Incorrect Email Id.");
		    return false;
	  }
	 

}
function check()
{
if(document.agentform.org.value=="")
	 {
		  alert("Please Enter Name Of Organization.");
		  return false;
         
	  }
	  if(document.agentform.cont_no.value=="")
	 {
		  alert("Please Enter Contact No.");
		  return false;
         
	  }
	   else if(document.agentform.cont_no.value.match(/^[a-zA-Z]+$/g ))
	{
		  
		  alert("Contact No.should be in digits only");
		  return false;
	}
	if(document.agentform.Cont_Per.value=="")
	 {
		  alert("Please Enter Person's Name whom you want to contact");
		  return false;
         
	  }
	 

if(document.agentform.cntry.value=="")
	 {
		  alert("Please enter name of country");
		  return false;
         
	  }
	   
	  if(document.agentform.cont_no.value=="")
	 {
		  alert("Please enter Contact Number");
		  return false;
         
	  }
	  else if(document.agentform.cont_no.value.match(/^[a-zA-Z]+$/g ))
	{
		  
		  alert("Contact Number should be in digits only");
		  return false;
	}
if(document.agentform.email.value=="")
	 {
        alert("Please enter your Email");
        return false;

   }
   else if (!document.agentform.email.value.match(/^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/g ))
	   { 
	  alert("Incorrect Email Id.");
		    return false;
	  }
}
