var newWind;
var lOpened=false;
function openwindow(cPicture,nWidth,nHeight,cMessage,nBorder){
		 var output;
		if (lOpened){
		   //newWind.close();
		}
		lOpened=true;
		 newWind=window.open("","winnam","height="+nHeight+",width="+nWidth+",scrollbars=no,resizable=no,top=10,left=10");
		 output="<html><body bgcolor='#FFFFFF'><center>"
 		 output+="<b><font face='arial' size='3' COLOR='#333333'>"+cMessage+"</font></b><br>"
		 if (nBorder==1) {
		 	output+="<table><tr><td>"
		 }
		 output+="<img src='"+cPicture+"'>"
		 if (nBorder==1){
		 	output+="</td></tr></table>"
		 }

		 output+="<br><br><b><a href='javascript:self.close();'><font face='verdana,arial' size='0' color='#333333'>Close this window</a></font></b>"
		 output+="</td></tr></table></center></body></html>"
		 newWind.document.write(output);
		 newWind.document.close();
		 newWind.focus();
		 
}