function val_contact_form() {
	valid = true;
	var name = document.contact.name.value;
	var jobtitle = document.contact.jobtitle.value;
	var organisation = document.contact.organisation.value;
	var emailaddress = document.contact.email_address.value;
	var querytext = document.contact.querytext.value;
	thisalert = 'Please enter information into or amend the following fields before clicking Send: \n\n';

	if (!name) {   
		valid = false;
		thisalert += ('Name\n');
		document.contact.name.focus();
	}
	
	if (emailaddress.indexOf('@') <= -1 || !emailaddress) {   
		valid = false;
		thisalert += ('No valid email address entered\n');
		document.contact.email_address.focus();
	}
	
	if (!querytext || querytext == document.contact.querytext.defaultValue) {   
		valid = false;
		thisalert += ('Please enter your query\n');
		document.contact.querytext.focus();
	}
	
	if (valid == false) {
		alert(thisalert);
	}
	
	return valid;
}

function openEGuide(url,width,height) {
	var day = new Date();
	var id = day.getTime();
	var lf = (screen.width - width)/2;
	var tf = (screen.height - height)/2;

	var newWin = eval("window.open('"+url+"','eguide','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,resizable=yes,directories=no,width="+width+",height="+height+",top="+tf+",left="+lf+"')");
	newWin.focus();
}