function checkform(frm)
{
	if ((frm.txtPublication.value == "") && (frm.txtPublication.value == "")) {
		alert("Fill in the name of the publication or the title of your online medium.");
		frm.txtPublication.focus();
		return false;
	}
	if (frm.txtFirstName.value == "") {
		alert("Fill in your first name.");
		frm.txtFirstName.focus();
		return false;
	}
	if (frm.txtLastName.value == "") {
		alert("Fill in your last name.");
		frm.txtLastName.focus();
		return false;
	}
	if (frm.txtJob.value == "") {
		alert("Fill in the job title/position.");
		frm.txtJob.focus();
		return false;
	}
	if (frm.txtAddress.value == "") {
		alert( "Fill in your address." );
		frm.txtAddress.focus();
		return false;
	}
	if (frm.txtPostCode.value == "") {
		alert( "Fill in your postcode." );
		frm.txtPostCode.focus();
		return false;
	}
	if (frm.txtTelephone.value == "") {
		alert( "Fill in your telephone." );
		frm.txtTelephone.focus();
		return false;
	}
	if (frm.txtFax.value == "") {
		alert( "Fill in your fax." );
		frm.txtFax.focus();
		return false;
	}
	var epattern = /^[^@]+@.*\.[a-z]{2,4}$/ig;
	var email = frm.txtEmail.value;
	if (!epattern.test(email)) {
		alert( "Fill in your correct email addres." );
		frm.txtEmail.value = '';
		frm.txtEmail.focus();
		return false;
	}
	return true;
}
