// JavaScript Document

function downloadpdf()
{

		if(document.Form.email.value=="")		
		{
			alert("Email is Required!");
			document.Form.email.focus();
			return false;
		}
		
		
		if(document.Form.email.value!="" && !checkMail(document.Form.email.value))
		{
			alert("Email must contain an email address.\n");		
			document.Form.email.focus();		
			return false;
		}
		
		function checkMail(email)
		{
		var x = email;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) 		
		{
		return true;
		}
		else 
		{
		return false;
		}
		}
		
		if(document.Form.fullname.value=="")
		{
			alert("Full Name is Required!");
			document.Form.fullname.focus();
			return false;
		}
		
		else
		{
			var t = document.Form.action = "mail.php";
			document.From.submit();
			document.Form.email.value="";
			document.Form.fullname.value="";
			
			
		}
		
	
}

function downloadpdf1()
{

		if(document.Form.email.value=="")		
		{
			alert("Email is Required!");
			document.Form.email.focus();
			return false;
		}
		
		
		if(document.Form.email.value!="" && !checkMail(document.Form.email.value))
		{
			alert("Email must contain an email address.\n");		
			document.Form.email.focus();		
			return false;
		}
		
		function checkMail(email)
		{
		var x = email;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) 		
		{
		return true;
		}
		else 
		{
		return false;
		}
		}
		
		if(document.Form.fullname.value=="")
		{
			alert("Full Name is Required!");
			document.Form.fullname.focus();
			return false;
		}
		
		else
		{
			var t = document.Form.action = "../mail.php";
			document.From.submit();
			document.Form.email.value="";
			document.Form.fullname.value="";
			
			
		}
		
	
}


function downloadpdf2()
{

		if(document.Form.email.value=="")		
		{
			alert("Email is Required!");
			document.Form.email.focus();
			return false;
		}
		
		
		if(document.Form.email.value!="" && !checkMail(document.Form.email.value))
		{
			alert("Email must contain an email address.\n");		
			document.Form.email.focus();		
			return false;
		}
		
		function checkMail(email)
		{
		var x = email;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) 		
		{
		return true;
		}
		else 
		{
		return false;
		}
		}
		
		if(document.Form.fullname.value=="")
		{
			alert("Full Name is Required!");
			document.Form.fullname.focus();
			return false;
		}
		
		else
		{
			var t = document.Form.action = "../mail2.php";
			document.From.submit();
			document.Form.email.value="";
			document.Form.fullname.value="";
			
			
		}
		
	
}


function downloadpdf3()
{

		if(document.Form.email.value=="")		
		{
			alert("Email is Required!");
			document.Form.email.focus();
			return false;
		}
		
		
		if(document.Form.email.value!="" && !checkMail(document.Form.email.value))
		{
			alert("Email must contain an email address.\n");		
			document.Form.email.focus();		
			return false;
		}
		
		function checkMail(email)
		{
		var x = email;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) 		
		{
		return true;
		}
		else 
		{
		return false;
		}
		}
		
		if(document.Form.fullname.value=="")
		{
			alert("Full Name is Required!");
			document.Form.fullname.focus();
			return false;
		}
		
		else
		{
			var t = document.Form.action = "../../mail.php";
			document.From.submit();
			document.Form.email.value="";
			document.Form.fullname.value="";
			
			
		}
		
	
}

function downloadpdf4()
{

		if(document.Form.email.value=="")		
		{
			alert("Email is Required!");
			document.Form.email.focus();
			return false;
		}
		
		
		if(document.Form.email.value!="" && !checkMail(document.Form.email.value))
		{
			alert("Email must contain an email address.\n");		
			document.Form.email.focus();		
			return false;
		}
		
		function checkMail(email)
		{
		var x = email;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) 		
		{
		return true;
		}
		else 
		{
		return false;
		}
		}
		
		if(document.Form.fullname.value=="")
		{
			alert("Full Name is Required!");
			document.Form.fullname.focus();
			return false;
		}
		
		else
		{
			var t = document.Form.action = "../../../mail.php";
			document.From.submit();
			document.Form.email.value="";
			document.Form.fullname.value="";
			
			
		}
		
	
}
