function popup(page,vWidth,vHeight,scroll) {
siteWindow = window.open(page,'siteWin','width='+vWidth+',height='+vHeight+',scrollbars='+scroll+',top=0,left=0,status=no,toolbar=no,resizable=no,location=no,menubar=no')
siteWindow.focus()
}

function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(imgWidth<=100)imgWidth=100
	if(imgHeight<=100)imgHeight=100
	winHeight=imgHeight+20;
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<style type=\"text/css\">body{overflow:hidden}</style>")
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+36)\n");
	w.document.write( "	else if(NN6) self.resizeTo(document.images[0].width+7,document.images[0].height+36)\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'>" );
	w.document.write( "<a href='#' onClick='javascript:self.close();'><img src='"+imgName+"' border=0 alt='"+imgCaption+"' title='"+imgCaption+"'></a>" );
	w.document.write( "</body></html>" );
	w.document.close();
}