// JavaScript Document

// CheckList Page Validation Function
function validate_form_checklist()
{
	
	if(document.myemailform.Company.value == "" || document.myemailform.Company.value == " " || document.myemailform.Email.value == "" || document.myemailform.Email.value == " " || document.myemailform.Phone.value == "" || document.myemailform.Phone.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}

// Company Name Page Validation Function
function validate_form_companyname()
{
	
	if(document.mycompanyform.full_name.value == "" || document.mycompanyform.full_name.value == " " || document.mycompanyform.Email.value == "" || document.mycompanyform.Email.value == " " || document.mycompanyform.phone_number.value == "" || document.mycompanyform.phone_number.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}

// Industry Page Validation Function
function validate_form_industry()
{
	
	if(document.contactus.Company.value == "" || document.contactus.Company.value == " " || document.contactus.Email.value == "" || document.contactus.Email.value == " " || document.contactus.Phone.value == "" || document.contactus.Phone.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}

// Trade Practice Page Validation Function
function validate_form_tp()
{
	
	if(document.trade_prac.full_name.value == "" || document.trade_prac.full_name.value == " " || document.trade_prac.email.value == "" || document.trade_prac.email.value == " " || document.trade_prac.phone_number.value == "" || document.trade_prac.phone_number.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}


// Trade Practice Page Validation Function
function validate_form_unfair()
{
	
	if(document.unfair_form.Company.value == "" || document.unfair_form.Company.value == " " || document.unfair_form.Email.value == "" || document.unfair_form.Email.value == " " || document.unfair_form.Phone.value == "" || document.unfair_form.Phone.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}


// Domain Page Validation Function
function validate_form_domain()
{
	
	if(document.mydomainform.Company.value == "" || document.mydomainform.Company.value == " " || document.mydomainform.Email.value == "" || document.mydomainform.Email.value == " " || document.mydomainform.pPhone.value == "" || document.mydomainform.pPhone.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}

// Hosting Page Validation Function
function validate_form_hosting()
{
	
	if(document.myhostingform.Company.value == "" || document.myhostingform.Company.value == " " || document.myhostingform.Email.value == "" || document.myhostingform.Email.value == " " || document.myhostingform.pPhone.value == "" || document.myhostingform.pPhone.value == " " )
	{
		alert ("Please fill in the required fields!!!");		
		return(false);
	}
	else 
	{	
			return (true);
	}
	
}













//######################### Only numeric key press function
function isNumberKey(event)

{
         var charCode = (event.which) ? event.which : event.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
		 	{
		 	alert ("Please enter only NUMERIC values!!!");
            return false;
			}
			else
			{

         return true;
			}
      }


