function popup(url,nme,hgt,wgt)
		{
		var params='toolbar=no,height='+hgt+',width='+wgt+',location=no,scrollbars=yes,status=no,menubar=no,resizable=no';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-wgt)/2);
			params+=",top="+((self.screen.height-hgt)/2);
			}
		window.open(url,nme,params);
		}

function OpenCloseLayer(id) {
	imgId = "img" + id;
	if (document.getElementById) {
		if (document.getElementById(id).style.display == "block") {
			//hide it
			document.getElementById(id).style.display = "none";
			document.getElementById(imgId).src = "images/plus.gif";
		} else {
			//show it
			document.getElementById(id).style.display = "block";
			document.getElementById(imgId).src = "images/minus.gif";
		}
	}
}

function bigimage(nme)
		{
		var params='toolbar=no,height=500,width=650,location=no,scrollbars=auto,status=no,menubar=no,resizable=no';
		var gallery = '<html>';
		gallery+='<body bgcolor="#FFFFFF">';
		gallery+='<center><table cellspacing="10" cellpadding="0" border="0" width="650">';
		gallery+='<tr><td align="center" valign="middle"><img src="images/b';
		gallery+=nme+'.jpg" border="1" style="border-color:#BFA960;"><br><br><a href="javascript:self.close();"><img src="images/close.gif" width="110" height="16" border="0" alt="click to close window"></a></td></tr>';
		gallery+='</table></center>';
		gallery+='</body>';
		gallery+='</html>';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-450)/2);
			params+=",top="+((self.screen.height-550)/2);
			}
		imagewindow=window.open("","",params);
		imagewindow.document.write(gallery)
		imagewindow.document.close()

		}
		
	function PreventSubmit() {
			if (event.keyCode == 13) {
				return false;
			}
		}