function zoom() {
	imgURL = document.getElementById('original').value;
	browser = getBrowser();
	if(browser == "ie5" || browser == "ie6") {
		win = open(imgURL, "ImgWin", "width=500,height=500,resizable=yes");
	}
	else {

	cont = document.getElementById('imgzoom');
	if( window.innerHeight )
		h = window.innerHeight;
	else
		h = document.body.offsetHeight;
	
	cont.innerHTML = "<table id=imgTbl border=0 height="+h+" width=100%><tr><td align=center><a href=\"javascript:document.getElementById('imgzoom').style.display='none';void(0);\" title=\"Click to close\"><img src=\""+imgURL+"\" border=\"0\" id=\"orgsrc\" alt=\"Click to close\"><br>Close</a></td></tr></table>";

	// Fix height for dark background
	if( window.innerHeight && window.scrollMaxY ) // Firefox 
	{
		pageWidth = "100%"; //window.innerWidth + window.scrollMaxX;
		pageHeight = window.innerHeight + window.scrollMaxY;
	}
	else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac
	{
		pageWidth = document.body.scrollWidth;
		pageHeight = document.body.scrollHeight;
	}
	else // works in Explorer 6 Strict, Mozilla (not FF) and Safari
	{
		pageWidth = document.body.offsetWidth + document.body.offsetLeft;
		pageHeight = document.body.offsetHeight + document.body.offsetTop;
	}

	cont.style.height = pageHeight;
	cont.style.width = pageWidth;
	// Visar bild-container
	cont.style.display = "block";
	}
}

function getBrowser() {
	if(navigator.userAgent.toLowerCase().indexOf("msie 5") > 0)
		return "ie5";
	else if(navigator.userAgent.toLowerCase().indexOf("msie 6") > 0)
		return "ie6";
	else if(navigator.userAgent.toLowerCase().indexOf("msie 7") > 0)
		return "ie7";
	else if(navigator.userAgent.toLowerCase().indexOf("firefox/2") > 0)
		return "ff2";
	else
		return "";
}