function popup(url,w,h,fullscreen) {
	gps_popup(url,w,h,fullscreen);
}

function gps_popup(url,w,h,fullscreen) {
	if (w.match(/\%/)) {w=screen.width*(parseInt(w)/100)};
	if (h.match(/\%/)) {h=screen.height*(parseInt(h)/100)};
	if (fullscreen) {w=screen.width;height=screen.height};
	var inw=w-60;
	var frameheight=h-157;
	var infh=frameheight-20;
	var c='<table width=100%><tr height="117px"><td><img src="/media/GPSNOWdesign/GPSNOW_Logo_Large.jpg" /></td>'+
		  '<td align=right><A HREF="javascript:self.close()" STYLE="font-family:arial;font-size:14pt">Close Window to return to Shopping at GPSNOW</A>&nbsp;</td></tr></table>'+
		  '<div style="width:'+w+'px; height:'+frameheight+'px; overflow:auto"><iframe src="'+url+'" style="width:'+inw+'px; height:'+infh+'px; overflow:auto" scrolling="yes"></iframe></div>';
	var gpspopup=window.open('','gpspopup','width='+w+',height='+h+',resizable=1,scrollbars=1');
	gpspopup.document.write(c);
	gpspopup.document.close();
	gpspopup.focus();
}

function hideElement(node,tagname,id) {
  //to compensate for lack of node.getElementById, we can use
  //hideElement(document.getElementById('Accessories'),'tr','headerdiv')
  var trs=node.getElementsByTagName(tagname);
  for (t in trs) {
	if (trs[t].id==id) {trs[t].style.display="none";}
  }
}