
function goDate() 
{
  TDay  = new Array("zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"); 
  TMonth= new Array("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december");
  TDate = new Date();
  CurYear  = TDate.getYear();
  CurYear=(CurYear<2000)?1900+CurYear:CurYear;
  CurMonth = TDate.getMonth();
  CurDayOw = TDate.getDay();
  CurDay   = TDate.getDate();
  TheDate  = TDay[CurDayOw] + ' ';
  TheDate += CurDay + ' ';  
  TheDate += TMonth[CurMonth] + ' ';
  TheDate += CurYear;
  document.write (TheDate);
}

function nWin(tUrl) 
{
  cL = (screen.width)  ? (screen.width  -780)/2 : 0;
  cT = (screen.height) ? (screen.height -560)/2 : 0;
  window.open(tUrl,"naamraam","toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,left="+cL+",top="+cT+",width=780,height=540" );
}

function sWin(tUrl,cX,cY)
{
  cL = (screen.width)  ? (screen.width  -cX)/2 : 0;
  cT = (screen.height) ? (screen.height -cY -20)/2 : 0;
  window.open(tUrl,"naamraam","toolbar=no,location=no,resizable=no,status=no,scrollbars=no,menubar=no,left="+cL+",top="+cT+",width="+cX+",height="+cY);
}

function rWin(tUrl,cX,cY,rz)
{
  cL = (screen.width)  ? (screen.width  -cX)/2 : 0;
  cT = (screen.height) ? (screen.height -cY -20)/2 : 0;
  window.open(tUrl,"naamraam","toolbar=no,location=no,resizable="+rz+",status=no,scrollbars="+rz+",menubar=no,left="+cL+",top="+cT+",width="+cX+",height="+cY);
}

function fnSearch()
{
  if (document.frmSearch.q.value == "")
  {  
    alert ("Ik wil graag weten waarnaar ik moet zoeken?");
    document.frmSearch.q.focus();
    return false;
  }
  return true;

}

/* TEMP TEMP */

function clsMouseEvents()
	{
		if (!document.getElementById) return;
		
		var tdarr = document.getElementsByTagName('td');
  		for (var i = 0; i < tdarr.length; i++) 
  		{
		    if (tdarr[i].getAttribute('hcls')) 
		    {
        		tdarr[i].onmouseover = function() 
        		{
        			this.className = this.getAttribute('hcls');
        		}
        		
           		tdarr[i].onmouseup = function() 
        		{
	        		this.className = this.getAttribute('hcls');
        		}               		
       		}
       		
		    if (tdarr[i].getAttribute('ncls')) 
		    {            				
        		tdarr[i].onmouseout = function() 
        		{
        			this.className = this.getAttribute('ncls');
        		}        		
        	}
        	
		    if (tdarr[i].getAttribute('dcls')) 
		    {
        		tdarr[i].onmousedown = function() 
        		{
	        		this.className = this.getAttribute('dcls');
        		}
        	}

  		}		
		
	}

	function openURL(url, name)
	{
		if (url)
		{
			if (name)
			{
				parent.frames[name].location.href = url;
			}
			else
			{
				window.top.location.href = url;
			}
		}
	}
