function validateContact(){
	root = document.contact;
	if(root.name.value == ''){
		alert("Please insert your name.");
		root.name.focus();
		return false;
	}
	if(root.email.value == ''){
		alert("Please insert your E-mail.");
		root.email.focus();
		return false;
	}
	
	var pattern = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
		flag = root.email.value.match(pattern);
		if(!flag){
			alert("Please insert A valid email Address.");
			root.email.focus();
			return false;
			
		}
	var phone = root.phone.value;
	if(phone == ''){
		alert("Please insert your Telephone Number");
		root.phone.focus();
		return false;
	}
	var fax = root.fax.value;
	if(fax == ''){
		alert("Please insert your Fax Number");
		root.fax.focus();
		return false;
	}
	var countries = root.countries[root.countries.selectedIndex].value;
	if(countries == ''){
		alert("Please choose your country");
		root.countries.focus();
		return false;
	}
	var purpose = root.purpose.value;
	if(purpose == ''){
		alert("Please insert the purpose of your contact.");
		root.purpose.focus();
		return false;
	}
	var comments = root.comments.value;
	if(comments == ''){
		alert("Please fill in the 'How can we help ?' field");
		root.comments.focus();
		return false;
	}
}

function redirect(){
	root = document.red;
	var id = root.services[root.services.selectedIndex].value;
	location.href='/services/index.php?id='+id;
	
}

function get_www_location()
{
	document.get_location.submit();
}