function validate()
{
	var valid = true;
	var alertStr = "";
		
	if(document.form1.salutation.value == "")
	{
		valid = (false);
	}
	
	if(document.form1.cperson.value == "")
	{
		valid = (false);
	}

	if(document.form1.profession.value == "")
	{
		valid = (false);
	}

	if(document.form1.company.value == "")
	{
		valid = (false);
	}

	if(document.form1.address.value == "")
	{
		valid = (false);
	}

	if(document.form1.cityState.value == "")
	{
		valid = (false);
	}
	
	if(document.form1.country.value == "")
	{
		valid = (false);
	}

	if(document.form1.tel.value == "")
	{
		valid = (false);
	}

	if(document.form1.email.value == "")
	{
		valid = (false);
	}
	if(document.form1.enquiry.value == "")
	{
		valid = (false);
	}



	if(!valid)
	{
		alert("Please make sure you have entered all the fields");
		return (false);
	}
	else
	{
		return valid;
	}
}

function emailvalidation(entered, alertbox)
{
	// E-mail Validation by Henrik Petersen / NetKontoret
	// Explained at www.echoecho.com/jsforms.htm
	// Please do not remove this line and the two lines above.
	with (entered)
	{
		apos=value.indexOf("@"); 
		dotpos=value.lastIndexOf(".");
		lastpos=value.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
		{
			if (alertbox) 
			{
				alert(alertbox);
			} 
			return false;
		}
		else 
		{
			return true;
		}
	}
} 

// If the element's string matches the regular expression it is all numbers
function isNumeric(elem, helperMsg){
	var numericExpression = /^[0-9]+$/;
	if(elem.value.match(numericExpression)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}
// If the element's string matches the regular expression it is all letters
function isAlphabet(elem, helperMsg){
	var alphaExp = /^[a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}