function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
    var img = new Image;
    img.src = imageName;
    if (imageWidth == 0) imageWidth = img.width;
    if (imageHeight == 0) imageHeight = img.height;
    newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
    newWindow.document.open();
    newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
    newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>');
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
		return newWindow;
}

function openWindow(url,name,width,height) {
	newWindow = window.open(url,name,"width="+width+",height="+height+",scrollbars=yes,resizable=yes,location=yes");
	newWindow.focus();
	return newWindow;
}

// Function to open new browser window
function openWin(url){
	openWinSz(url, 400, 300);
}

function openWinSz(URL, width, height){
  aWindow = window.open(URL,'thewindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=' + width + ',height=' + height + ',left=0,top=0');
	if(window.focus)
	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
		 setTimeout('aWindow.focus();',250);
	}
}

