function printPage()
{
	if (window.print)
  	window.print()
  else
		alert("Your browser probably does't support Javascript");
}
var windowNote;

function GetInnerSize () {
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	return [x,y];
}

function showPic(title, pic, colorBack, wid, hei, idee)
{
	/*
		var oH = hei, oW = wid;
    if( !oH || window.doneAlready ){ 
        return; 
    } //in case images are disabled
    window.doneAlready = true;     //for Safari and Opera
    var x = window; 
    x.resizeTo( oW + 200, oH + 200 );
    var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;
    if( x.innerWidth ) { 
        myW = x.innerWidth; 
        myH = x.innerHeight; 
    } else if( d && d.clientWidth ) { 
        myW = d.clientWidth; 
        myH = d.clientHeight; 
    } else if( b && b.clientWidth ) { 
        myW = b.clientWidth; 
        myH = b.clientHeight; 
    }
    if( window.opera && !document.childNodes ) { 
        myW += 16; 
    }
    x.resizeTo( oW = oW + 6 + ( ( oW + 200 ) - myW ), oH = oH + 45 + ( (oH + 200 ) - myH ) );
    var scW = screen.availWidth ? screen.availWidth : screen.width;
    var scH = screen.availHeight ? screen.availHeight : screen.height;
		if( !window.opera ) { 
		x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); 
	}
	*/
	
	
	var idee = idee|| "default";
	windowNote = window.open('','Note'+ idee,'top=5, left=5, toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=' + wid + ',height='+ hei);
	image = '<a href="javascript:window.close()"><img src="'+ pic +'" width="'+ (wid-6) +'" height="'+ (hei-50) +'" border="0" alt="X"></a>';
	text = "<html><head><META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\"><title>"+ title + "</title></head><body bgcolor=\"#" + colorBack +"\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">" + image + "</body></html>";
	windowNote.document.write(text);
	
	
	/*
	var x;
	var y;
	// make sure we have a final x/y value
	// pick one or the other windows value, not both
	if (x==undefined) x = windowNote.screenLeft || windowNote.screenX;
	if (y==undefined) y = windowNote.screenTop || windowNote.screenY;
	// for now, move the window to the top left
	// then resize to the maximum viewable dimension possible
	windowNote.moveTo(0,0);
	windowNote.resizeTo(screen.availWidth,screen.availHeight);
	// now that we have set the browser to it's biggest possible size
	// get the inner dimensions.  the offset is the difference.
	var inner = GetInnerSize();
	var ox = screen.availWidth-inner[0];
	var oy = screen.availHeight-inner[1];
	// now that we have an offset value, size the browser
	// and position it
	windowNote.resizeTo(wid+ox, hei+oy);
	windowNote.moveTo(x,y);
	*/
	
	
	windowNote.resizeTo(wid,hei);
	windowNote.focus();
	
	
	windowNote.document.close();
	return false;
}
var type = "IE";
BrowserSniffer();
function BrowserSniffer()
{
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";	//Opera
	else if (document.all) type="IE";							//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";							//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";				//Mozila e.g. Netscape 6 upwards
	else type = "IE";									//I assume it will not get here
}
function hide_div(div_name)
{
	if (type=="IE") eval("document.all."+div_name+".style.display='none'");
	if (type=="NN") eval("document."+div_name+".display='none'");
	if (type=="MO" || type=="OP") eval("document.getElementById(div_name).style.display='none'");
}
function showhide_div(div_name)
{
	if (type=="IE")
	{
		if(eval("document.all."+div_name+".style.display")!='none')
		{
			eval("document.all."+div_name+".style.display='none'");
		}
		else
		{
			eval("document.all."+div_name+".style.display='block'");
		}
	}
	if (type=="NN")
	{
		if(eval("document."+div_name+".display")!='none')
		{
			eval("document."+div_name+".display='none'");
		}
		else
		{
			eval("document."+div_name+".display='block'");
		}
	}
	if (type=="MO" || type=="OP")
	{
		if(eval("document.getElementById(div_name).style.display")!='none')
		{
			eval("document.getElementById(div_name).style.display='none'");
		}
		else
		{
			eval("document.getElementById(div_name).style.display='block'");
		}
	}
}
function submit_form()
{
	document.getElementById('vorm').submit();
}
function reset_form()
{
	document.getElementById('vorm').reset();
}
function change_picture(id)
{
	document.getElementById('mainpic').src=id;
	
}

