<!-- // (c)1999-2003 - www.mybrain.nl - @mybrain.nl
/******************************************************
	      Show respect. Keep this copyright notice.
 ******************************************************/

d=document;
defaultStatus ="Copyright © 2000-2004 - All Rights Reserved."
favDesc = "Ik zag jou net"
favURL = "http://www.ikzagjou.net/"
d.oncontextmenu = nocontextmenu;
d.onmousedown = norightclick;
d.onmouseup = norightclick;
d.onmouseover=hidestat;
d.onmouseout=hidestat;

if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
 { d.write("<LINK REL=STYLESHEET HREF='/ikzagjounet/css_ns.css' TYPE='text/css'>"); }
else
 { d.write("<LINK REL=STYLESHEET HREF='/ikzagjounet/css_ie.css' TYPE='text/css'>"); }

var tmpWin
function PopupBox(siteURL, windowtype)
{ startDate= new Date();
//Disclaimer
  if (windowtype=='D')
  { tmpWin=window.open(siteURL,"DisclaimerWindow","toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,width=500,height=400,left="+((screen.width-500)/2)+",top="+((screen.height-400)/2)); tmpWin.focus(); }
//Login
  if (windowtype=='L')
  { tmpWin=window.open(siteURL,"PopupWindow","toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,menubar=no,width=400,height=300,left="+((screen.width-400)/2)+",top="+((screen.height-300)/2)); tmpWin.focus(); }
//Brainbox
  if (windowtype=='B')
  { tmpWin=window.open(siteURL,"BrainEditor","toolbar=no,location=no,resizable=yes,status=yes,scrollbars=yes,menubar=no,width=780,height=580,left=8,top=8"); tmpWin.focus(); }
//Content Editor
  if (windowtype=='C')
  { tmpWin=window.open(siteURL,"ContentEditor","toolbar=no,location=no,resizable=yes,status=yes,scrollbars=yes,menubar=no,width=550,height=500,left=8,top=8"); tmpWin.focus(); }
//Content Editor
  if (windowtype=='A')
  { tmpWin=window.open(siteURL,"CatalogEditor","toolbar=no,location=no,resizable=yes,status=yes,scrollbars=yes,menubar=no,width=550,height=300,left=16,top=16"); tmpWin.focus(); }
//Full Screen
  if (windowtype=='F')
  { tmpWin=window.open(siteURL,"FullScreen","toolbar=yes,location=yes,resizable=yes,status=yes,scrollbars=yes,menubar=yes,width="+(screen.width-12)+",height="+(screen.height)+",left=0,top=0"); tmpWin.focus(); }
//News
  if (windowtype=='N')
  { tmpWin=window.open(siteURL,"NewsWindow","toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,width=350,height=400,left="+((screen.width-350)/2)+",top="+((screen.height-400)/2)); tmpWin.focus(); }
}
function openAnnounce(siteURL, bre, hoo)
{ startDate= new Date();
  tmpWin = window.open(siteURL, startDate.getTime(),'toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,width='+bre+',height='+hoo);
}
function fncSubmitMyForm(pCheckName,pCheckEMail,pCheckPass)
{ var blnOkay = true;
	var strAlert = "";
	if ((pCheckName) && (document.MyForm.name.value == ""))
	{ blnOkay = false; strAlert += "- Name may not be empty.\n"; }
	if ((pCheckEMail) && (document.MyForm.email.value == ""))
	{ blnOkay = false; strAlert += "- E-mail may not be empty.\n"; }
	if ((pCheckPass) && (document.MyForm.passw.value == ""))
	{ blnOkay = false; strAlert += "- Password may not be empty.\n"; }
	if (blnOkay) 
	{ document.MyForm.submit(); }
	else
	{ alert("The following error(s) occurred:\n" + strAlert); }
}
function SubmitOnEnter()
{ if (window.event.keyCode==13) { document.MyForm.submit();return true; } }

function getCookie(getCookieName)
{ var gcname = getCookieName + "="; var m = 0;
  while (m < d.cookie.length)
  { var n = m + gcname.length;
    if (d.cookie.substring(m, n) == gcname)
    { var clngth = d.cookie.indexOf (";", n);
      if (clngth == -1) clngth = d.cookie.length;
      { return unescape(d.cookie.substring(n, clngth)); } }
    m = d.cookie.indexOf(" ", m) + 1;
    if (m == 0) { break; } }
  return "*";
}
function delCookie(delCookieNaam)
{ d.cookie = delCookieNaam + "=; expires= Thu, 01-Jan-70 00:00:01 GMT";
  d.cookie = delCookieNaam + "=; expires= Thu, 01-Jan-70 00:00:01 GMT; path=/";
  return true;
}
function setCookie(setCookieName, setCookieValue)
{ var expire = new Date (); expire.setTime (expire.getTime() + (365 * 24 * 60 * 60 * 1000));
  d.cookie = setCookieName + "=" + escape (setCookieValue) + "; expires=" + expire.toGMTString() + "; path=/";
}

//statusbar
function hidestat()
{ window.status=defaultStatus; return true; }
if (document.layers){ document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT); }

//rightclicks
if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null) { d.captureEvents(Event.MOUSEDOWN);d.captureEvents(Event.MOUSEUP); }
function norightclick(e)   // This function is used by all others
{	if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
  { if (e.which == 2 || e.which == 3) { return false; } }
  else
  { if (event.button == 2 || event.button == 3)
    { if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) { window.external.AddFavorite(favURL,favDesc); }
			event.cancelBubble = true; event.returnValue = false; return false; } } }
function nocontextmenu()
{ event.cancelBubble = true; event.returnValue = false; return false; }

//noimageclicks();
function noimageclicks()
{ if(d.images) { for(i=0;i<d.images.length;i++) d.images[i].onmousedown = norightclick; } }

function writeToday(){
  var vada = new Date();
  var StrVandaag;
switch (vada.getDay())
{ case 0 : StrVandaag = "Zondag "; break;
  case 1 : StrVandaag = "Maandag "; break;
  case 2 : StrVandaag = "Dinsdag "; break;
  case 3 : StrVandaag = "Woensdag "; break;
  case 4 : StrVandaag = "Donderdag "; break;
  case 5 : StrVandaag = "Vrijdag "; break;
  case 6 : StrVandaag = "Zaterdag "; break; }
StrVandaag += vada.getDate()
switch (vada.getMonth())
{ case  0 : StrVandaag += " januari "; break;
  case  1 : StrVandaag += " februari "; break;
  case  2 : StrVandaag += " maart "; break;
  case  3 : StrVandaag += " april "; break;
  case  4 : StrVandaag += " mei "; break;
  case  5 : StrVandaag += " juni "; break;
  case  6 : StrVandaag += " juli "; break;
  case  7 : StrVandaag += " augustus "; break;
  case  8 : StrVandaag += " september "; break;
  case  9 : StrVandaag += " oktober "; break;
  case 10 : StrVandaag += " november "; break;
  case 11 : StrVandaag += " december "; break; }
StrVandaag += vada.getFullYear();
d.write(StrVandaag);
}
function writeGreeting(){
	now = new Date();
	theHour = now.getHours();
	if (theHour < 5) { greeting = 'Goedenacht,'; }
	else if (theHour < 12) { greeting = 'Goedemorgen,'; }
	else if (theHour < 18) { greeting = 'Goedemiddag,'; }
	else { greeting = 'Goedenavond,'; }
	d.write(greeting);
}
//-->
