function showImage(imgUrl, windowTitle, height, width)
{
//    var imageOptions = "location=0,status=0,scrollbars=0,toolbar=0,menubar=0,directories=0,resizable=0,width="+ width +",height="+ height;
    var imageOptions = "toolbar=no,width="+ width +",height="+ height;
	mywindow = window.open (imgUrl, windowTitle, imageOptions);
	mywindow.document.write('<html><head><title>'+windowTitle+'<\/title><\/head><body style="cursor: pointer;" background="'+imgUrl+'" onclick="javascript:window.close();"><\/body><\/html>');
	mywindow.resizeBy(width-mywindow.document.body.clientWidth, height-mywindow.document.body.clientHeight);
    mywindow.focus()
}

function openPopup( strURL, intWidth, intHeight, blnNewWindow ) { //zubin
	var intScreenHeight = 0;
	
	
	// resize because of scrollbar
	intWidth = intWidth + 16;
	
	//	get screen height
	if( parseInt( navigator.appVersion ) > 3 ) {
		intScreenHeight = screen.availHeight;
		if( !intScreenHeight ) {
			intScreenHeight = screen.height;
		}
	} else if(
		navigator.appName == "Netscape" && 
		parseInt( navigator.appVersion ) == 3 && 
		navigator.javaEnabled()
	) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit();
		var jScreenSize = jToolkit.getScreenSize();
		intScreenHeight = jScreenSize.height;
	} else {
		alert( 'Can\'t detect screen resolution' );
		return;
	}
	//	adjust dimensions if necessary
	if( intHeight > intScreenHeight ) {
		intHeight = intScreenHeight - 10;
	}
	
	if( blnNewWindow ) {
		//	new window
		var openPopup = window.open( strURL,'','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + intWidth + ',height=' + intHeight );
		openPopup.focus();
	} else {
		//	same window
		window.resizeTo( intWidth, intHeight );
	}
	return;
}
//<a href="javascript:visForside('http://img.ekstrabladet.dk/softproof/dda/forside080513_500.jpg');" title="Forstør billede"><img name="eavisgrafik" src="http://img.ekstrabladet.dk/softproof/dda/forside080513_140.jpg" width="140" height="190" BORDER="2" style="border:2px solid #44AE2F;"></a>


//<a href="javascript:void(0);" onClick="javascript:openPopup('default.asp?popup=7',930,950,1);"><img class="border" src="http://images.wickedweasel.com/skins/white/models/jarna/thumbs/7.jpg" width=95 height=134 alt="" border=0></a>
