//aan te passen
vanaf_links = 100;
vanaf_boven = 100;
grootste_breedte  = 500+20;//afmetingen van het grootste beeld +20
grootste_hoogte = 500+20;  //afmetingen van het grootste beeld +20
//hieronder niets wijzigen
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
var optIE='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
function popBeeld(BeeldURL,BeeldTitel){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Bezig met inladen ...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function aanpassen_aan_beeldgrootte(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["BeeldNaam"].width;');writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');writeln('</sc'+'ript>');
writeln('</head><body bgcolor=000000 scroll="no" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()" onblur="self.close()">');
writeln('<img name="BeeldNaam" src='+BeeldURL+' style="display:block"></body></html>');
close();		
}}



function clearText(thefield){

if (thefield.defaultValue==thefield.value)

thefield.value = ""

} 



<!-- Begin
function emailCheck() 
{
txt=document.tellForm.your_email.value;
if (txt.indexOf("@")<3)
	{
alert("U heeft geen e-email adres of een incorrect e-mail adres ingevuld");
return false;
	}
if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
&&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
&&(txt.indexOf(".mil")<5)&&(txt.indexOf(".edu")<5)
&&(txt.indexOf(".be")<5)&&(txt.indexOf(".gmail")<5))

	{
alert("U heeft geen e-email adres of een incorrect e-mail adres ingevuld");
return false;
	}
}
// End -->

function textCounter( field, countfield, maxlimit ) {
  if ( field.value.length > maxlimit )
  {
    field.value = field.value.substring( 0, maxlimit );
   // alert( 'Textarea value can only be 255 characters in length.' );
    return false;
  }
  else
  {
    countfield.value = maxlimit - field.value.length;
  }
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}



imagename='';
function vergroot(beeldnaam)
{
OpenWin = this.open("","GrootVenster","toolbar=no,menubar=no,location=no,scrollbars=no,width=400,resizable=no,status=no,left=20,top=20");
imagename = beeldnaam;
setTimeout('update()',500)
}
function update()
{
doc = OpenWin.document;
doc.write('<HTML><HEAD><TITLE>Groot beeld popup<\/TITLE><\/HEAD><BODY bgcolor="#FFFFFF" onBlur="self.focus()">');
doc.write('<center><IMG SRC="' + imagename + '" width=350>');
doc.write('<\/center><\/BODY><\/HTML>');
doc.close();
}


function popup(pagina, titel) 
{ 
window.open(pagina, titel, 'width=220, height=180, scrollbars=no') 
} 



//submenu
var submenu=new Array()

submenu[0]='<a href="http://www.restorant.be/ipersnieuws.php" target="_self">&nbsp;&nbsp;Persberichten&nbsp;&nbsp;<\/a>       <a href="http://www.restorant.be/nieuwsbrieven.php" target="_self">&nbsp;&nbsp;Nieuwsbrief&nbsp;&nbsp;<\/a>'
submenu[1]='<a href="http://www.restorant.be/mededeling.php" target="_self">&nbsp;&nbsp;Mededeling&nbsp;&nbsp;<\/a>       <a href="http://www.restorant.be/informatie.php" target="_self">&nbsp;&nbsp;Info?&nbsp;&nbsp;<\/a>'

submenu[2]='<a href="#">SUB 2.1<\/a>     <a href="#">SUB 2.2<\/a>     <a href="#">SUB 2.3<\/a>     <a href="#">SUB 2.4<\/a>'
submenu[3]='<a href="#">SUB 3.1<\/a>     <a href="#">SUB 3.2<\/a>     <a href="#">SUB 3.3<\/a>     <a href="#">SUB 3.4<\/a>     <a href="#">SUB 3.5<\/a>'
submenu[4]='<a href="#">SUB 4.1<\/a>     <a href="#">SUB 4.2<\/a>     <a href="#">SUB 4.3<\/a>     <a href="#">SUB 4.4<\/a>     <a href="#">SUB 4.5<\/a>     <a href="#">SUB 4.6</a>     <a href="#">SUB 4.7<\/a>     <a href="#">SUB 4.8<\/a>     <a href="#">SUB 4.9<\/a>'
submenu[5]='<a href="#">SUB 5.1<\/a>     <a href="#">SUB 5.2<\/a>     <a href="#">SUB 5.3<\/a>     <a href="#">SUB 5.4<\/a>     <a href="#">SUB 5.5<\/a>'

function toon(teller) {
document.getElementById('menuitems').style.visibility="visible"
document.getElementById('menuitems').innerHTML=submenu[teller]}

function hide() {
document.getElementById('menuitems').style.visibility="hidden"}

function show() {
document.getElementById('menuitems').style.visibility="visible"}

