var preloadimages=new Array("buttons/home.gif","buttons/home_mouseover.gif","buttons/home_mouseclick.gif");
var images=new Array();
for (p=0;p<preloadimages.length;p++)
{
	images[p] = new Image();
	images[p].src = preloadimages[p];
}
function roll(img_name, img_src)
{
	document.getElementById(img_name).src = img_src;
}

function ValidateFields(Form,Name,Email,Email2) 
{ 
if( Validate() ) 
{ 
// validation passed, allow post 
document.frmInfo.submit(); 
} // validation failed, disallow post return false; 
} 


function Validate() 
{ 
//--- Make sure the Name was entered 
if(document.frmInfo.txtName.value.length == 0){ 
document.frmInfo.txtName.focus(); 
document.frmInfo.txtName.select(); 
alert("You must enter your name to continue."); 
return false; 
} 
//--- Make sure the EMail Address was entered 
if(document.frmInfo.txtEMail.value.length == 0){ 
document.frmInfo.txtEMail.focus(); 
document.frmInfo.txtEMail.select(); 
alert("You must enter an EMail address to continue."); 
return false; 
} 
//--- Make sure the Comments are entered 
if(document.frmInfo.txtComments.value.length == 0){ 
document.frmInfo.txtComments.focus(); 
document.frmInfo.txtComments.select(); 
alert("You must re-enter your Email addressto continue."); 
return false; 
} 
return true; 
} 

