function ReferenceWindow( refUrl )
	  {
		var refWindow = window.open( refUrl, "","scrollbars=yes,height=600,width=589,left=10,top=10" );
		}
		function ShowImage( imgSrc, imgWidth, imgHeight, imgCaption )
	{
	var winWidth  = 0;
	var winHeight = 0;
	
	//winWidth  = imgWidth  + 30;
	winWidth  = 364  + 30;
	winHeight = imgHeight + 100;
	
	popWindow = window.open("","popWindow","width="+winWidth+",height="+winHeight+",left="+ 100 +",top="+ 10 );
	popWindow.document.open();
	popWindow.document.write( '<html><head><title>click on image to close</title><head>' ); 
	popWindow.document.write( '<body bgcolor="#CCCCCC"  leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">' ); 
	popWindow.document.write( '<table border="0" cellspacing="0" cellpadding="2" align="center" width="'+imgWidth+'">' ); 
	popWindow.document.write( '<tr><td height="7"   width="'+imgWidth+'">&nbsp;</td><tr>' ); 
	popWindow.document.write( '<tr bgcolor="#000000" align="center"><td width="'+imgWidth+'">' ); 
	popWindow.document.write( '<a href="#" onclick="window.close();">' );
	popWindow.document.write( '<img src="../../nwd/js/'+imgSrc+'" width="'+imgWidth+'" height="'+imgHeight+'" alt="'+imgCaption+'" border="0"></a>' ); 
	popWindow.document.write( '</td></tr></table>' );

	popWindow.document.write( '<table border="0" cellspacing="0" cellpadding="2" align="center" width="364">' ); 
	popWindow.document.write( '<tr><td  width="364">&nbsp;</td></tr>' );
	popWindow.document.write( '<tr><td  width="364" align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">'+imgCaption+'</font></p></td></tr></table>' );

	popWindow.document.write( '</body></html>' );
	popWindow.document.close();
	popWindow.focus();
	}


function ShowImageW( imgSrc, imgWidth, imgHeight, imgCaption )
	{
	var winWidth  = 0;
	var winHeight = 0;
	
	winWidth  = imgWidth  + 30;
	winHeight = imgHeight + 100;
	
	popWindow = window.open("","popWindow","width="+winWidth+",height="+winHeight+",left="+ 100 +",top="+ 10 );
	popWindow.document.open();
	popWindow.document.write( '<html><head><title>click on image to close</title><head>' ); 
	popWindow.document.write( '<body bgcolor="#CCCCCC"  leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">' ); 
	popWindow.document.write( '<table border="0" cellspacing="0" cellpadding="2" align="center" width="'+imgWidth+'">' ); 
	popWindow.document.write( '<tr><td height="7"   width="'+imgWidth+'">&nbsp;</td><tr>' ); 
	popWindow.document.write( '<tr bgcolor="#000000" align="center"><td width="'+imgWidth+'">' ); 
	popWindow.document.write( '<a href="#" onclick="window.close();">' );
	popWindow.document.write( '<img src="../../nwd/js/'+imgSrc+'" width="'+imgWidth+'" height="'+imgHeight+'" alt="'+imgCaption+'" border="0"></a>' ); 
	popWindow.document.write( '</td></tr></table>' );

	popWindow.document.write( '<table border="0" cellspacing="0" cellpadding="2" align="center" width="364">' ); 
	popWindow.document.write( '<tr><td  width="364">&nbsp;</td></tr>' );
	popWindow.document.write( '<tr><td  width="364" align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">'+imgCaption+'</font></p></td></tr></table>' );

	popWindow.document.write( '</body></html>' );
	popWindow.document.close();
	popWindow.focus();
	}
