<!--
<!--

function openScript(openScript)
{
var desktop=window.open(openScript,"_blank","toolbar=no,location=no,status=yes,top=5,left=5,menubar=no,scrollbars=no,width=500,height=480");
}
//-->

<!--
<!--

function openMAPScript(openMAPScript)
{
var desktop=window.open(openMAPScript,"_blank","toolbar=no,location=no,status=yes,top=5,left=5,menubar=no,scrollbars=yes,width=515,height=480");
}
//-->


<!--
<!--

function openPOPScript(openPOPScript)
{
var desktop=window.open(openPOPScript,"_blank","toolbar=no,location=no,status=yes,top=5,left=5,menubar=no,scrollbars=no,width=340,height=240");
}
//-->


<!-- Begin

if (parent.frames.length > 0) {
    parent.location.href = self.document.location
}

//  End -->

function validateEnquiries()
{
	fv = new formValidator();
	
	if (fv.isEmpty("realname"))
		fv.raiseError("Please specify a your name.");
	
	if (fv.isEmpty("Email"))
		fv.raiseError("Please specify an email address.");
	else
	{
		if (!fv.isEmailAddress("Email"))
			fv.raiseError("Please specify a valid email address.");
	}
	
	if (fv.isEmpty("RepeatEmail"))
	{
		fv.raiseError("Please specify a verify your email address.");
	}
	else
	{
		if (fv.findObj("RepeatEmail").value != fv.findObj("Email").value)
			fv.raiseError("The email address and verified email address do not match. Please re-enter.");
	}
	
	if (fv.isEmpty("pax"))
		fv.raiseError("Please enter the number of guests.");
	
	if (fv.findObj("arrivalday").value == "Not Specified" ||
		fv.findObj("arrivalmonth").value == "Not Specified" ||
		fv.findObj("arrivalyear").value == "Not Specified" ||
		fv.findObj("departday").value == "Not Specified" ||
		fv.findObj("departmonth").value == "Not Specified" ||
		fv.findObj("departyear").value == "Not Specified")
		fv.raiseError("Please specify the dates you wish to arrive and depart.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}