function setimg(imgname)
{   
var NS=document.layers;
if ((parent.frames['menu']) || (parent.frames.menu)) {
if (NS)
var theobj=eval("parent.frames['menu'].document.topbanner")
else
var theobj=eval("parent.frames.menu.topbanner");
theobj.src = imgname;
}
}

function setTopFrame(name) {   
  var NS=document.layers;
  if ((parent.frames['menu']) || (parent.frames.menu)) {
    if (NS) {
      var theobj=eval("parent.frames['menu']")
    }
    else {
      var theobj=eval("parent.frames.menu");
    }
    theobj.location = name;
  }
}



function popupWin(url,title,h,b,x,y){
	var ns4=((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ));
	var ie4=((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	var xwin;
	b = parseInt(b);
	if (isNaN(b) || b<30)
		b=300;
	h = parseInt(h);
	if (isNaN(h) || h<30)
		h=500;
	x = parseInt(x);
	if (isNaN(x) || x<1 || x>1000)
		x=0;
	y = parseInt(y);
	if (isNaN(y) || y<1 || y>1000)
		y=0;
	if(ie4){
		var strxwin="window.open('" + url + "','" + title + "','location=no,width="+b+",height="+h+",left="+x+",top="+y+",menubar=no,resizable=yes');";
		eval(strxwin);
	} else {
		if(ns4){
			xwin=window.open(url,title,"location=no,innerWidth="+b+",innerHeight="+h+",screenX="+x+",screenY="+y+",menubar=no,resizable=yes");
		} else {
			// no 4 version browser so redirect main window
			document.location.href=url;
		}
	}
}

function popTermsForUse(alertMsg) {
	if (alertMsg != '') {
		window.event.cancelBubble=true;
		alert (alertMsg);
	}
}

function setCookie(name, value, expires, path, domain, secure) {
   document.cookie = 
      name + "="
      + escape(value)
      + ((expires) ? "; EXPIRES=" + expires : "")
      + ((domain) ? "; DOMAIN=" + domain : "")
      + ((path) ? "; PATH=" + path : "")
      + ((secure) ? "; secure" : ""); 
} 

function getCookie(name) {
	var search = name + "=";
	if (document.cookie.length > 0) { 
      		offset = document.cookie.indexOf(search); 
      		if (offset != -1) { 
         		offset += search.length;
         		end = document.cookie.indexOf(";", offset); 
         		if (end == -1){ 
            			end = document.cookie.length
         		}
         		return unescape(document.cookie.substring(offset, end));
      		} 
  	}
}

function MenubarPopUpUrl(url,title){
	var ns4=((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ));
	var ie4=((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	var xwin;
	if(ie4){
		var strxwin="window.open('" + url + "','" + title + "','location=no,width=800,height=640,left=10,top=10,scrollbars=yes,menubar=yes,resizable=yes');";
		eval(strxwin);
	} else {
		if(ns4){
			xwin=window.open(url,title,"location=no,innerWidth=800,innerHeight=640,screenX=10,screenY=10,scrollbars=yes,menubar=yes,resizable=yes");
		} else {
			// no 4 version browser so redirect main window
			document.location.href=url;
		}
	}
}


function ReservationPopUpUrl(url,title){
	var ns4=((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ));
	var ie4=((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	var xwin;
	if(ie4){
		var strxwin="window.open('" + url + "','" + title + "','location=no,width=370,height=147,left=200,top=200,menubar=no,resizable=no');";
		eval(strxwin);
	} else {
		if(ns4){
			xwin=window.open(url,title,"location=no,innerWidth=370,innerHeight=147,screenX=200,screenY=200,menubar=no,resizable=no");
		} else {
			// no 4 version browser so redirect main window
			document.location.href=url;
		}
	}
}

function doPopup(mypage, myname, w, h, scroll) {
var win = null;
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(mypage,myname,settings)
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=630,height=310,left = 322.5,top = 387');");
}

function PopKaart(newLoc, newHeight, newWidth)
{newWin = open("",newLoc,"scrollbars=no,resizable=no,status=yes,left=256,top=32,height=" + newHeight + ",width=" + newWidth);}
