﻿
function checkform () {


if (document.ReplyForm.logisticsupdate.checked||document.ReplyForm.emaillogistics.checked) {
}



else{
alert("please select one or both of the subscription options")
return false}





        if (document.ReplyForm.emaillogistics.checked){

        if(document.ReplyForm.title.selectedIndex ==0)
        {alert("please select Title")
         return false};
         
        if (document.ReplyForm.name.value.length <= 2)
        {alert ("Please enter Your Name") 
         return false};

        if (document.ReplyForm.job.value.length <= 2)
        {alert ("Please enter Your Job Title") 
         return false};

        if (document.ReplyForm.company.value.length <= 2)
        {alert ("Please enter a Company Name") 
         return false};
                  
        if (document.ReplyForm.email.value.indexOf('@') == -1 )
        {alert ("Please enter a valid Email address") 
         return false} ;
       } 



        if (document.ReplyForm.logisticsupdate.checked){

        if(document.ReplyForm.title.selectedIndex ==0)
        {alert("please select Title")
         return false};
         
        if (document.ReplyForm.name.value.length <= 2)
        {alert ("Please enter Your Name") 
         return false};

        if (document.ReplyForm.job.value.length <= 2)
        {alert ("Please enter Your Job Title") 
         return false};

        if (document.ReplyForm.company.value.length <= 2)
        {alert ("Please enter a Company Name") 
         return false};
         
        if (document.ReplyForm.address.value.length <= 2)
        {alert ("Please enter Your Address") 
         return false};         
         
        if (document.ReplyForm.town.value.length <= 2)
        {alert ("Please enter a Town/City") 
         return false};         

        if (document.ReplyForm.county.value.length <= 2)
        {alert ("Please enter a County") 
         return false};
         
                 if (document.ReplyForm.postcode.value.length <= 2)
        {alert ("Please enter a Postcode") 
         return false};
                  
        if (document.ReplyForm.email.value.indexOf('@') == -1 )
        {alert ("Please enter a valid Email address") 
         return false} ;
         
        if (document.ReplyForm.telephone.value.length <= 2)
        {alert ("Please enter Your Telephone Number") 
         return false};
       }


 

 

     










document.ReplyForm.submit()




return true








}