// Browser check
var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var N6 = (document.getElementById && !document.all) ? true : false;

// Function for open a picture in a new window.
function openPictureWindow( imageName, imageWidth, imageHeight, alt) {  
	newWindow = window.open("","newWindow", "height="+imageHeight+", width="+imageWidth+", scrollbars=0, toolbar=0, menubar=0, toolbar=0, resizable=0");
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><meta http-equiv="Content-Type" content="text/html;\
charset=iso-8859-1"></head><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+'\" onclick="self.close()" \>'); 	
	newWindow.document.write('</body></html>'); 
	newWindow.document.close();
	newWindow.focus();
}

// Function for open the admin- window.
function openAdminWindow() {
	newWindow = window.open("","newWindow", "height=348, width=492, scrollbars=0, toolbar=0, menubar=0, toolbar=0, resizable=0");
	newWindow.document.open();
	newWindow.document.location.href="admin/admin.php";
	newWindow.document.close();
	newWindow.focus();
}