// * scripts.js **29/06/2007**V07/1** 
// * general JavaScript stuff

// * FORM FUNCTIONS * //

// clears default form values
// call function as follows
// onfocus="clearField(this,this.value)"
function clearField (theField, theValue) {
// store the initial field value in a variable for use later
theDefault = theValue;
// compare the field's current value with its initial value
if (theField.value == theDefault) {
// if they matech, clear the fields
	theField.value = "";
	}
}

// reinstates default form values
// call function as follows
// onblur="resetField(this)"
function resetField (theField) {
// is the field's current value null (ie user has entered nothing)
if (theField.value == "") {
// reset the field to its initial value
	theField.value = theDefault;
	}
}
