this.showimage = function(img) 
{
	//img.style.width="auto";
	var win = window.open('','','menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=yes');
	win.document.open();
	win.document.write("<html><body><img onclick='return false;' src='"+img.src+"' oncontext='return false;'/></body></html>");
	win.document.close();
}
this.openserie = function(serieid)
{
	if (this.openserie.previous) this.openserie.previous.style.display = "none";
	this.openserie.previous = document.getElementById(serieid);
	this.openserie.previous.style.display = "block";
}

/*
bufferDepth		Sets or retrieves the number of bits per pixel used for colors in the off-screen bitmap buffer.  
colorDepth		Retrieves the number of bits per pixel used for colors on the destination device or buffer.  
fontSmoothingEnabled	Retrieves whether the user has enabled font smoothing in the Display control panel. 
updateInterval	Sets or retrieves the update interval for the screen.  

height			Retrieves the vertical resolution of the screen. 
width			Retrieves the horizontal resolution of the screen. 

deviceXDPI		Retrieves the actual number of horizontal dots per inch (DPI) of the system's screen. 
deviceYDPI		Retrieves the actual number of vertical dots per inch (DPI) of the system's screen. 
logicalXDPI		Retrieves the normal number of horizontal dots per inch (DPI) of the system's screen. 
logicalYDPI		Retrieves the normal number of vertical dots per inch (DPI) of the system's screen. 
*/
this.openFull = function(url,close) 
{
	var win = window.open(url,"_blank","channelmode=yes,fullscreen=yes,scrollbars=no",true);
	win.document.window = win;
	if (close) win.document.onclick = function(e) { this.window.close(); }
	return win;
}
this.setAlternateRowClass = function(table, colcount, className)
{
	if(table==null)
		return;
	table.className = "efutable";
	var trs = table.rows;
	for (var i=0, iEnd=trs.length; i<iEnd; ++i) 
		if (trs[i].cells.length==colcount) 
			for (var rEnd=i+trs[i].cells[0].rowSpan; i<rEnd && i<iEnd; ++i)
				trs[i].className=className;
}
this.openpage = function(e) {
	if ((26<e.y && e.y<91) && (40<e.x && e.x<121)) document.location.href='http://www.grafiskbar.dk';
	else document.location.href='default.asp';
}
