function showEnlarged(prefix, picUrl) 
{
	window.open(prefix+"display-popup.php?"+picUrl, "poppis", "resizable=1,HEIGHT=300,WIDTH=300,Left=20%,Top=20%");
}

function openTerms() 
{
	window.open("terms.php", "pops", "scrollbars=1,resizable=1,HEIGHT=500,WIDTH=680,Left=20%,Top=20%");
}

//Add to Favourites
function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "");
	}

function validateContact()
{
	fv = new formValidator();
	
	if (fv.isEmpty("your_name"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("your_company"))
		fv.raiseError("Please specify your company name.");
		
	if (fv.isEmpty("your_number"))
		fv.raiseError("Please specify your phone number.");
	
	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("comments"))
		fv.raiseError("Please specify a your comments / requirement.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}