//Check the enquiry form is filled in correctly
     function CheckForm () {

	//Initialise variables
	var errorMsg = "";

	//Check for a last name
	if (document.forms[0].OldLogin.value == ""){
		errorMsg += "\n\tLogin Name \t- Enter your Login";
	}

		//Check for a password
	if (document.forms[0].Password.value == ""){
		errorMsg += "\n\tPassword  \t- Enter your Password ";
	}


		//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "Your request has not been sent 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\n");
		return false;
	}

	return true;
}
