function checkContactform(){
var root=document.contactForm;
	
	var name=root.name;
	var company=root.company;
	var street=root.street;
	var city=root.city;
	var state=root.state;
	var country=root.country;
	var phone=root.phone;
	var mobile=root.mobile;
	var email=root.email;
	var subject=root.subject;
	var message=root.message;
	
	
	if(name.value==""){
		alert('Please enter your full name.');
		name.focus();
		return false;
	}
	if(country.value==""){
		alert('Please select a country from the list.');
		country.focus();
		return false;
	}
	if(phone.value==""){
		alert('Please enter your phone number.');
		phone.focus();
		return false;
	}
	if(isNaN(phone.value)){
		alert('The phone number should only contain digits.');
		phone.select();
		return false;
	}
	if(isNaN(mobile.value) && mobile.value!=""){
		alert('The mobile phone number should only contain digits');
		mobile.select();
		return false;
	}
	if(email.value==""){
		alert('Please enter an email address.');
		email.focus();
		return false;
	}
	if(subject.value==""){
		alert('Please enter the subject.');
		subject.focus();
		return false;
	}
	if(message.value==""){
		alert('Please enter your message.');
		message.focus();
		return false;
	}
}

function ClearForm(){
	var root=document.contactForm;
	
	var name=root.name;
	var company=root.company;
	var street=root.street;
	var city=root.city;
	var state=root.state;
	var country=root.country;
	var phone=root.phone;
	var mobile=root.mobile;
	var email=root.email;
	var subject=root.subject;
	var message=root.message;
	
	if(confirm('Are you sure you want to clear this form?')){
		name.value="";
		company.value="";
		street.value="";
		city.value="";
		state.value="";
		country.value="";
		phone.value="";
		mobile.value="";
		email.value="";
		subject.value="";
		message.value="";
		
		return false;
	}
	
	return false;
}