<!--
var win=null;

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function tmt_showhideAll(c){
	var v = (document.layers) ? ".visibility" : ".style.visibility";
	var arr = (document.layers) ? document.layers : (document.all) ? document.all.tags("DIV") : document.getElementsByTagName("DIV");
	for(var i=0;i<arr.length;i++){eval("arr["+i+"]"+v+"='"+c+"'");}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openBrWindow(theURL,winName,features) 
{
  window.open(theURL,winName,features);
  window.focus;    
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function inspect(elm){	
  currentobject = document.getElementById(elm);  	
  var str = "";
  for (var i in currentobject){
    str += i + ": " + currentobject.getAttribute(i) + "\n";
  }
  document.getElementById('TEMPTEMP').innerText = str;
  alert(str);
}

function printArticle() 
{ 
  if (window.print) 
  {
    window.print();   
    window.close();
  }
  else if (agt.indexOf("mac") != -1) 
  {
    alert("Press 'Cmd+p' on your keyboard to print article.");
  }
  else 
  {
    alert("Press 'Ctrl+p' on your keyboard to print article.")
  }  
}

function Confirmdelete(link) {
  if (confirm('Record verwijderen ?')) 
  { 
    document.location = (link);
    document.location = (link);
  } 
  else 
  {}
}

function confirmDelete(link) {
  if (confirm('Record verwijderen ?')) 
  { 
    document.location = (link);
    document.location = (link);
  } 
  else 
  {}
}

function centerwindow(mypage,myname,w,h)
{ 
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;
      
  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; 
  win=window.open(mypage,myname,settings);  
} 

function centerwindow2(mypage,myname,w,h)
{ 
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;
      
  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; 
  win=window.open(mypage,myname,settings);  
} 

function BW_centerLayers() { //v4.1.1
	if (document.layers || document.all || document.getElementById){
		var winWidth, winHeight, i, horz, vert, width, height, offsetX, offsetY, negX, negY, group, x, y, args;
		args = BW_centerLayers.arguments;
		
		onresize = BW_reload;

				
		winWidth = (document.all)?document.body.clientWidth:window.innerWidth;
		winHeight = (document.all)?document.body.clientHeight:window.innerHeight;
				
		for (i=0; i<(args.length-9); i+=10) {
			horz    = args[i+1];
			vert    = args[i+2];
			width   = parseInt(args[i+3]);
			height  = parseInt(args[i+4]);
			offsetX = parseInt(args[i+5]);
			offsetY = parseInt(args[i+6]);
			negX    = args[i+7];
			negY    = args[i+8];
		
			x = ((winWidth - width)/2) + offsetX;
			y = ((winHeight - height)/2) + offsetY;
						
			x = (negX=='false' && (x < 0))?0:x;
			y = (negY=='false' && (y < 0))?0:y;
				
			layerObj = (document.getElementById)?document.getElementById(args[i]):MM_findObj(args[i]);
			
			if (layerObj!=null) {
				layerObj = (layerObj.style)?layerObj.style:layerObj;
				layerObj.left = (horz=="true")?x:layerObj.left;
				layerObj.top = (vert=="true")?y:layerObj.top;
			}
		}
	}
}

function selecteerAlleProgrammas()
{
  if (confirm('Weet u zeker dat u alle sessies wilt selecteren?')) 
  { 
    for (var i=1;i<500;i++)
    {
      checkfield = "geselecteerdprogramma["+i+"]";    
      if (document.forms['surfprogramma'].elements[checkfield]) document.forms['surfprogramma'].elements[checkfield].checked = true;
    }
  } 
  else 
  {}	
}

function deselecteerAlleProgrammas()
{
  if (confirm('Weet u zeker dat u al uw selecties ongedaan wilt maken?')) 
  { 	
    for (var i=1;i<500;i++)
    {
      checkfield = "geselecteerdprogramma["+i+"]";    
      if (document.forms['surfprogramma'].elements[checkfield]) document.forms['surfprogramma'].elements[checkfield].checked = false;       
    }
  }
  else 
  {}  
}

function multiDimensionalArray(iRows,iCols)
{
  var i;
  var j;
  var a = new Array(iRows);
  for (i=0; i < iRows; i++)
  {
      a[i] = new Array(iCols);
      for (j=0; j < iCols; j++)
      {
          a[i][j] = "";
      }
  }
  return(a);
}

function checkConditional(imgID) 
{
	var imgObj = document.getElementById(imgID);

	if (imgID == 'summaryarrow1')	var oTrg = document.getElementById('StatsSummaryDIV');
	if (imgID == 'summaryarrow2')	var oTrg = document.getElementById('StatsDaysOfMonthDIV');	
	if (imgID == 'summaryarrow3')	var oTrg = document.getElementById('StatsPageHitsDIV');		
	if (imgID == 'summaryarrow4')	var oTrg = document.getElementById('StatsYearHistoryDIV');
	if (imgID == 'summaryarrow5')	var oTrg = document.getElementById('StatsTotalUniqueVisitorsDIV');
	if (imgID == 'summaryarrow6')	var oTrg = document.getElementById('StatsTopBrowsersDIV');
	if (imgID == 'summaryarrow7')	var oTrg = document.getElementById('StatsTotalReferersDIV');	
	if (imgID == 'summaryarrow8')	var oTrg = document.getElementById('StatsAllHitsDIV');
	if (imgID == 'summaryarrow9')	var oTrg = document.getElementById('StatsSearchQueriesDIV');

  if (imgID == 'summaryarrow1') setHiddenValue('summaryactive1');
  if (imgID == 'summaryarrow2') setHiddenValue('summaryactive2');
  if (imgID == 'summaryarrow3') setHiddenValue('summaryactive3');
  if (imgID == 'summaryarrow4') setHiddenValue('summaryactive4');
  if (imgID == 'summaryarrow5') setHiddenValue('summaryactive5');
  if (imgID == 'summaryarrow6') setHiddenValue('summaryactive6');
  if (imgID == 'summaryarrow7') setHiddenValue('summaryactive7');
  if (imgID == 'summaryarrow8') setHiddenValue('summaryactive8');
  if (imgID == 'summaryarrow8') setHiddenValue('summaryactive9');

	if (imgObj.src == 'http://owd2005.surf.demo/images/layout/white_arrow_up.gif')
	{
		imgObj.src = '/images/layout/white_arrow_down.gif';
		oTrg.style.display = 'block';
	}
	else
	{
		imgObj.src = '/images/layout/white_arrow_up.gif';
		oTrg.style.display = 'none';
	}
}

function setHiddenValue(field)
{
	if (document.getElementById(field).value == 'none') 
	  document.getElementById(field).value = 'block';
  else 
  	document.getElementById(field).value = 'none';
}

function centerwindow5(mypage,myname,w,h)
{
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;

  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  win=window.open(mypage,myname,settings);
}
//-->
