function isdate(sc,iw,ih,mg,wd,hg,sb,fs,bg,tl,nr,ms,cs,cb){
	pw=(wd!=0)?wd:(iw+mg*2);ph=(hg!=0)?hg:(ih+mg*2);psw=parseInt(screen.width/2-pw/2);
	psh=parseInt(screen.height/2-ph/2);
	if (fs) {pw=screen.width;ph=screen.height;psh=0;psw=0;mg=0}
	look="width="+pw+",height="+ph+",screenX="+psw+",screenY="+psh+",left="+psw+",top="+psh
	if (sb==1) look+=",scrollbars=yes"
	pStr="<ht"+""+"ml><he"+""+"ad><ti"+""+"tle>"+unescape(tl)+"</ti"+""+"tle><META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></he"+""+"ad><st"+""+"yle type=\"text/css\"> <!-- BODY {  margin : "+mg+"px; } --> </style><bo"+""+"dy bgcolor="+bg+"  marginwidth=\"0\" marginheight=\"0\""
	if (cs!=0) pStr+="onLoad=\"setTimeout('window.close()',"+cs+")\" "
	if (cb!=0) pStr+="onBlur=\"window.close()\""
	pStr+=">"
	if (nr!=0) pStr+="<scr"+""+"ipt>\n  var msg=\""+ms+"\";\nfunction disableIE() {if (document.all) {alert(msg);return false;}} \nfunction disableNS(e){ if (document.layers||(document.getElementById&&!document.all)) {  if (e.which==2||e.which==3) {alert(msg);return false;} }} if (document.layers) {  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;} else {  document.onmouseup=disableNS;document.oncontextmenu=disableIE;}\n document.oncontextmenu=new Function('alert(unescape(msg));return false')\n</sc"+""+"ript>"
	if (fs)
	pStr+="<table border=\"0\" width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td ><div align=\"center\"><"+""+"a hr"+""+"ef='javasc"+""+"ript:self.close();'><img src='"+sc+"' border=0 alt=\"Click Image to Close\"></"+""+"a></div></td></tr><tr><td><div align=\"center\">\Click Image to Close\</div></td></tr></table></bo"+""+"dy></ht"+""+"ml>"
	else
	pStr+="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td ><"+""+"a hr"+""+"ef='javasc"+""+"ript:self.close();'><img src='"+sc+"' border=0 alt=\"Click Image to Close\"></"+""+"a></td></tr></table></bo"+""+"dy></ht"+""+"ml>"
	popwin=window.open('','',look);
	popwin.document.open();
	popwin.document.write(pStr);
	popwin.document.close();
}
