<!--

function openPhoto(fileName, dir, title) 
{
	theURL = "photo-display.php?nm="+fileName+"&dir="+dir+"&title="+title;
	window.open(theURL, '', 'resizable=no,scrollbars=no,width=600,height=420');
}

function openSubfolderPhoto(fileName, dir, title) 
{
	theURL = "../photo-display.php?nm="+fileName+"&dir="+dir+"&title="+title;
	window.open(theURL, '', 'resizable=no,scrollbars=no,width=600,height=420');
}

function bookmarkUs()
{
	window.external.AddFavorite('http://www.south-african-conference.com', 'South African Conference.com - Conferences in South Africa');
}

function showCurrency(){
window.open('http://www.oanda.com/convert/classic?user=mammoth','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=620,height=470,framemargin=0');
}

function openFacilities()
{
	window.open('facilities.php', 'popup', 'resizable,height=530,width=770,scrollbars');
}

function doRecommend()
{
	window.open('recommend.php', 'popup', 'resizable,height=530,width=770,scrollbars');
}

function validateRecommend()
{
	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("friend_name"))
		fv.raiseError("Please specify your friend's name.");

	if (fv.isEmpty("friend_email"))
		fv.raiseError("Please specify your friend's email address.");
	else
	{
		if (!fv.isEmailAddress("friend_email"))
			fv.raiseError("Please specify a valid email address for your friend.");
	}

	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}


-->