/*	
	validateform.js
	contains all validation functions for all form fields
	date created: 16 July 2005
	author ari rizos webology www.webology.net.au
*/

/*	GLOBAL VARIABLES */
var submitform;
var errormessage;

/*	
	function validatetextfield(textfield, textfieldname)
	checks to make sure that the text field contains information
	parameters:		textfield - form field
					textfieldname - name of form field
	author ari rizos www.webology.net.au info@webology.net.au
*/

function validatetextfield(textfield, textfieldname)
{
	if(textfield.value == "" || textfield.value == "PLEASE COMPLETE"){
			textfield.value = "PLEASE COMPLETE";
			submitform = false;
			errormessage += textfieldname + " must be completed\n";
	}
}