// scripting for Greenacres Riding Centre

// preload images

function preloadImages()
{
	img1 = new Image
	img1.src = "images/address.gif"
	img1.src = "images/banner.jpg"
	img1.src = "images/break.jpg"
	img1.src = "images/newdawn_003300_76x50.jpg"
}

function hideAllLayers()
{
}

/* 
This generic test function is for general use with your own regular expressions and variables or forms.
Three arguments are expected:
1) regular expression object of pattern/flags,
2) the title of the format or pattern to be matched,
3) variable or value of text form element.
The function displays a warning incorporating the title if no match is found and returns a boolean value.
*/ 

function genericTest(anyRE,title,stringToTest) {
        if(anyRE.test(stringToTest)) {
                return true;
        } else {
                window.alert("The " + title +" format of:\n" + stringToTest + "\nwas not recognised.");
                return false;
        }
}

/* 
this e-mail address RE is COMPUTER friendly because it rejects all spaces
*/
eMailRE = /^[\w\-\.]+@([a-z0-9]+\.){1,3}[a-z]{2,6}$/i;

