function equalheight()
{	// will ensure page columns end up equal heights - hard to do without css hacks
	// if javascript not enabled, all that happens is that columns end up unequal - not a disaster!
	// Code assumes #menupanel will usually be shortest and resizes it but will resize #main if req.
	var d=document;
	var mp=d.getElementById("SIDE_PANEL");
	var sh=d.getElementById("MAIN_PANEL");
//	var ph=d.getElementById("pagehead");
//	var ht=ph.offsetHeight+sh.offsetHeight;
	var ht=sh.offsetHeight;
	if (mp.offsetHeight<ht) mp.style.height=ht+'px';
	else
	{	//ht=mp.offsetHeight-ph.offsetHeight;
		var ht=mp.offsetHeight;
		sh.style.height=ht+'px';
	}
}

function showmailer(ref,name,price)
{	// Displays a form to email a query about a product
	var emb=document.getElementById('emailblock');
	emb.src='emailer.php?ref='+ref+'&name='+name+'&price='+price;
	emb.style.display='block';		// Was hidden before
}

function hideIframe()
{	emb=document.getElementById('emailblock');
	emb.style.display='none';
}
