// JavaScript Document

function CheckFreetrailForm(theForm){
					        if (!validRequired(theForm.fname,"First Name")){ return false; }
					        if (!validRequired(theForm.lname,"Last Name")){ return false; }
					        if (!validRequired(theForm.title,"Title",true)){ return false; }
					        if (!validEmail(theForm.email,"Email Address",true)){ return false; }
					        if (!validRequired(theForm.phone,"Telephone No",true)){ return false; }

					        if (!validRequired(theForm.company,"Comapny Name")){ return false; }
					        if (!validRequired(theForm.country,"Country",true)){ return false; }
					        if (!validRequired(theForm.address,"Address",true)){ return false; }
					        if (!validRequired(theForm.employee,"Number of Employees")){ return false; }
							
							if(!validRequired(theForm.user_code,"Security Code",true)){ return false; }
							
							if(document.mainform.check_user_code.value=="invalid")
							{
							
							alert("Invalid Security Code");
							document.mainform.user_code.focus();
							return false;
							
							}
							
							
							if(!document.mainform.agreement.checked)
							{
							
							alert("Please check the Master Subscription Agreement");
							return false;
							
							}
							
					        //if (!validRequired(theForm.checkbox,"Product Interest")){ return false; }

					        //if (!validRequired(theForm.state,"State",true)){ return false; }
					        // if (!validRequired(theForm.language,"Language Preferences",true)){ return false; }
					        // if (!validRequired(theForm.industry,"Select an Indutry Template",true)){ return false; }

					        //if (!validRequired(theForm.trial-edition,"Trial Edition",true)){ return false; }

					        if (!validAgree(theForm.agreement,"Master Subscription Agreement",true)){ return false; }
								

							  var txtEmail, ConfEmail, Result;
							  txtEmail = document.mainform.email.value;
							  ConfEmail = document.mainform.email2.value;
							  if(txtEmail != ConfEmail)
							     	{
							                alert('Your Email Do Not Match!');
							                 return false;
							        }
					}
					
	