// Contact Form Validation
function validateContact()
{
	fv = new formValidator();
	
	if (fv.isEmpty("your_name"))
		fv.raiseError("Please specify your name.");
	
	if (fv.isEmpty("your_email"))
		fv.raiseError("Please specify your email.");
	else
	{
		if (!fv.isEmailAddress("your_email"))
			fv.raiseError("Please specify a your valid email address.");
	}
		
	if (fv.isEmpty("your_comments"))
		fv.raiseError("Please specify your comments / query.");

	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;	
}

function validateNewsletter()
{
	fv = new formValidator();
	
	if (fv.isEmpty("your_name"))
		fv.raiseError("Please specify your name.");
	
	if (fv.isEmpty("newsletter_email"))
		fv.raiseError("Please specify your email address.");
	else
	{
		if (!fv.isEmailAddress("newsletter_email"))
			fv.raiseError("Please specify a valid email address.");
	}

	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;	
}

function showEnlarged(prefix, picUrl) 
{
	window.open(prefix+"popup.shtml?"+picUrl, "poppis", "resizable=1,HEIGHT=400,WIDTH=480,Left=20%,Top=20%");
}

function bookmarkUs()
{
	window.external.AddFavorite('http://www.noetzee.co.za', 'Noetzie.co.za - Noetzie Conservancy, Garden Route');
}