<!--
function CheckForm () {

	//Intialise variables
	var errorMsg = "";
	var errorMsgLong = "";

	//Check for a first name
	if (document.frmcontactus.txtfirstname.value == ""){
		errorMsg += "\n\tFirst Name \t- Enter your First Name";
	}
	
	//Check for a last name
	if (document.frmcontactus.txtlastname.value == "" ){
		errorMsg += "\n\tLast Name \t- Enter your Last Name";
	}

	if (document.frmcontactus.txtphone.value == "" ){
		errorMsg += "\n\tPhone \t\t- Enter your Phone number";
	}

	if (document.frmcontactus.txtcountry.value == "" ){
		errorMsg += "\n\tCountry \t\t- Enter your Country";
	}

	if (document.frmcontactus.txtemail.value.length >=0 && (document.frmcontactus.txtemail.value.indexOf("@",0) == -1||document.frmcontactus.txtemail.value.indexOf(".",0) == -1)) { 
		errorMsg +="\n\tE-mail \t\t- Enter your valid e-mail address";
	}

	//If there is aproblem with the form then display an error
	if ((errorMsg != "") || (errorMsgLong != "")){
		msg = "___________________________________________________________________\n\n";
		msg += "Your Question(s) has/ve not been added because there are problem(s) with the form.\n";
		msg += "Please correct the problem(s) and re-submit the form.\n";
		msg += "___________________________________________________________________\n\n";
		msg += "The following field(s) need to be corrected: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n" + errorMsgLong);
		return false;
	}
	
	return true;
}

-->
