// JavaScript Document

 function ValidForm(){//opening braces
	 if(document.myform.user.value.length<1)
	 {// first condition
		 alert("Please Type Your Email Address \n Example: yourname@yzcorppk.com");
		  document.myform.user.focus();
		return false;
	 }
		   if(document.myform.pass.value.length<1)
		  {//second conditon
			  alert("Password Missing! Please Provide");
			  document.myform.pass.focus();
			    return false;
			  
			  }
	 
	 return true;
	 }//closing braces

  function ValidateAdminForm(){//opening braces
	 if(document.imp_login.imapuser.value.length<1)
	 {// first condition
		 alert("Login Name Missing! Please Provide");
		  document.imp_login.imapuser.focus();
		return false;
	 }
		   if(document.imp_login.pass.value.length<1)
		  {//second conditon
			  alert("Password Missing! Please Provide");
			  document.imp_login.pass.focus();
			    return false;
			  
			  }
	 
	 return true;
	 }//closing braces











	  function CheckSenderForm()
	  {//opening braces
		  if(document.sender.senderName.value.length<1)
		  {//first condition
			  window.alert("Please Type Your Name");
			   document.sender.senderName.focus();
			   return false;
		  }
			 if(document.sender.senderEmail.value.length<1)
			    {
				   alert("Email Missing! Please Type Your Email");
				   document.sender.senderEmail.focus();
				   return false;
				   }
		                if(document.sender.senderMessage.value.length<10)
						 {
							 alert("Your Message is too short! Please Type more than 10 words");
							 document.sender.senderMessage.focus();
							 return false;
							 }
	    return true;
		  }
		  
