function Validate(theForm) {
	if (theForm['dynaProperty(firstname)'].value == "")
	{
		alert("Please enter your First Name.");
		theForm['dynaProperty(firstname)'].focus()
		return false;
	}

	if (theForm['dynaProperty(surname)'].value == "")
	{
		alert("Please enter your Last Name.");
		theForm['dynaProperty(surname)'].focus()
		return false;
	}

	if (theForm['dynaProperty(company)'].value == "")
	{
	   	alert("Please enter your Company Name.");
		theForm['dynaProperty(company)'].focus()
		return false;
	}

	if (theForm['dynaProperty(country)'].selectedIndex == 0)
	{
	   	alert("Please select your Country.");
		theForm['dynaProperty(country)'].focus()
		return false;
	}
	
	
	
	if (theForm['dynaProperty(email)'].value != "")
	{
		if(emailCheck(theForm['dynaProperty(email)'].value) == false)
		{
			alert("Please enter a valid Email Address.");
			theForm['dynaProperty(email)'].focus()
			return false;
		}
	}
	else
	{
		alert("Please enter your Email Address.");
		theForm['dynaProperty(email)'].focus()
		return false;
	}
	
    if (theForm['dynaProperty(telephone)'].value != "")
	{
		var ret =  checkPhoneNumber(theForm['dynaProperty(telephone)'].value,'Please enter a valid Telephone')
		if(ret == false){
		    theForm['dynaProperty(telephone)'].focus()
		    return false;
		}
	}
	else
	{
		alert("Please enter your Telephone.");
		theForm['dynaProperty(telephone)'].focus()
		return false;
	}
	
	if (theForm['dynaProperty(hear)'].selectedIndex == 0)
	{
	 	alert("Please select How You Heard About Us.");
		theForm['dynaProperty(hear)'].focus()
		return false;
	}
	
	if (theForm['dynaProperty(questionrelatesto)'].selectedIndex == 0)
	{
	 	alert("Please select the category to which the question relates.");
		theForm['dynaProperty(questionrelatesto)'].focus()
		return false;
	}  
	
	theForm['dynaProperty(receiverEmail)'].value = theForm['dynaProperty(questionrelatesto)'].value      
    theForm.userName.value = theForm['dynaProperty(firstname)'].value + " " + theForm['dynaProperty(surname)'].value    
    return true;
}