var xx = null;

function OpenWindowImageHTML(myImage){
	var Neubild = new Image();
	Neubild.src = myImage;
	var mywidth = Neubild.width;
	var myheight = Neubild.height;
	try{
	    xx.close();
	}
	catch(e){
	}
	xx = window.open("","Image","width=" + mywidth + ", height=" + myheight + ", scrollbars=0, resizable=0,location=no");
	xx.document.write("<html><head><title>Image</title></head><body bgcolor=#FFFFFF  topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><IMG onclick='window.close();' src='" + myImage + "' vspace=0 hspace=0 border='0' ></body></html>");
	xx.moveTo(100,100);
	xx.focus();
}
function OpenWindow( srcimage, srcwidth, srcheight){
	try{
	    xx.close();
	}
	catch(e){
	}
	xx = window.open(srcimage,"Image","width=" + srcwidth + ",height=" + srcheight + ",left=0,top=0");
	xx.moveTo(100,100);
	xx.focus();
}

function OpenWindowImageHTML2(myImage, srcwidth, srcheight){
	var mywidth = srcwidth;
	var myheight = srcheight;
	try{
	    xx.close();
	}
	catch(e){
	}
	xx = window.open("","Image","width=" + mywidth + ", height=" + myheight + ", scrollbars=0, resizable=0,location=no");
	xx.document.write("<html><head><title>Image</title></head><body bgcolor=#FFFFFF  topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><IMG onclick='window.close();' src='" + myImage + "' vspace=0 hspace=0 border='0' ></body></html>");
	xx.moveTo(100,100);
	xx.focus();
}
