//
// New Window for pics
//
var DisplayWindow = null
function openImg(URLName,Height,Width)
   {
    var param='';
    var fullHeight = Height+40;

    if (self.DisplayWindow == null)
	param = param + 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
	param = param + ',height=' + fullHeight;
	param = param + ',width=' + Width;
	DisplayWindow=window.open("", "", param);

    ndoc = DisplayWindow.document
    ndoc.close()
    ndoc.open("text/html");
    ndoc.writeln("<HTML><HEAD><TITLE>Click on image to close</TITLE>");
    ndoc.writeln("<LINK REL='stylesheet' HREF='../scripts/link.css'>");
    ndoc.writeln("</HEAD>");
    ndoc.writeln("<BODY BGCOLOR='#000000'>");
    ndoc.writeln("<CENTER><A HREF='javascript:self.close()'>");
    ndoc.writeln("<IMG BORDER=OFF SRC=", URLName);
    ndoc.writeln(">");
    ndoc.writeln("</A></CENTER>");
    ndoc.writeln("</BODY>");
    ndoc.writeln("</HTML>");
    ndoc.writeln("<p align='center'><font face='Verdana' size='1' color='#FFFFFF'>© Copyright &nbsp;<a href='mailto:webmaster@wazel.org'>Jens Wazel</a></font></p>");
    ndoc.close();
}

function openImgVer(theURL) 
{window.open(theURL, '_blank', 'scrollbars=no, toolbar=no, location=no, menubar=no, height=600, width=460');}

function openImgHor(theURL) 
{window.open(theURL, '_blank', 'scrollbars=no, toolbar=no, location=no, menubar=no, height=460, width=600');}


function closeWindow(){
	if (self.DisplayWindow != null)
    	self.DisplayWindow.close()
	DisplayWindow = null}

//
// Change an image on the fly
//
function changeImage(anImage, newSource) 
     {document.images[anImage].src = newSource;}
	

