
//Set browser
/* needs bug checking, not in use
var browser=''
if (browser =='')
	browser = (document.layers)? 'ns4' : ''; 							// MS 4
if (browser =='')
	browser = (document.getElementById && !document.all)? 'ns' : '';	// NS 5 en NS 6 en Mozilla
if (browser =='') 
	browser = (document.all && !document.getElementById)? 'ie4' : '';	// IE 4
if (browser =='') 
	browser = (document.all && document.getElementById)? 'ie' : '';		// IE 5 en IE 5.5 IE 6
*/

function printPage(openUrl){
	window.open(openUrl,"Print Page","height=400,width=640,status=no");
}


function doStyle(ref,act)
{
  if (document.all) { // IE
    if(act=='s') eval("document.all."+ref+".style.visibility='visible';");
    if(act=='h') eval("document.all."+ref+".style.visibility='hidden';");
  } 
  else { // NS
    if(act=='s') document.getElementById(ref).style.setProperty('visibility','visible','important');
    if(act=='h') document.getElementById(ref).style.setProperty('visibility','hidden','important');

  }


  
  return ;
}


function changeStyle(ref,act) // ref refers to target, act should be 's' for show and 'h' for hide ;-)
{
	doStyle(ref,act);
	doStyle("a"+ref,act);
	return ;
}

function doNothing(){
alert('euh');
return ;
}

// id of div and text to write to div.
/*
function writeDiv(id, text) {

	switch(browser) {
	case 'ns4'	:	var lyr = document.layers[id].document;
					lyr.open();
					lyr.write(text);
					lyr.close();
					break;
	case 'ns'	:	document.getElementById(id).innerHTML = text;
					break;
	case 'ie4'	:	document.all[id].innerHTML = text; 
					break;
	case 'ie'	:	document.all[id].innerHTML = text;
					break;				
	default 	:	;				
	}
}
*/
