function popup(name,width,height) 
	{
		var topPos = (screen.height-height)/2
		var leftPos = (screen.width-width)/2
		var popup = window.open("","Images","width=" + width + ",height=" + height + ",top=" + topPos + ",left=" + leftPos + ",toolbar=0, status=0, menubar=0, resizable=0, scrollbars=no, directories=0, dependent=yes");
		popup.document.open();
		popup.document.write("<html><head><meta http-equiv='imagetoolbar' content='no'><title>image popup</title></head><body bgcolor='<? echo $borderCol; ?>' bottommargin='0' rightmargin='0' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align='center' valign='middle'><a href='javascript:self.close();'><img src='" + name + " 'border='0' alt='click to close.'></a></td></tr></table></body></html>");
		popup.document.close();
		popup.focus();
	}
function switchImg()
	{
		document.images[1].src = document.images[0].src
	}
