remote = "xxx";

function openWin(targetURL) {
	remote = window.open(targetURL,'_blank','width=400,height=512,toolbar=0,location=0,directory=1,menubar=1,status=1,scrollbars=1,resizable=1');
	remote.opener.name = "main";
}

function openWin2(targetURL) {
	remote = window.open(targetURL,'_blank','width=505,height=600,toolbar=0,location=0,directory=1,menubar=1,status=1,scrollbars=1,resizable=1');
	remote.opener.name = "help";
}

function merk(sidnr, userID) {
	window.open('merk_popup.php3?sidnr=' + sidnr + '&userID=' + userID,'_blank','width=150,height=50,toolbar=0,location=0,directory=0,menubar=0,status=0,scrollbars=0,resizable=0');
}


function submitXtra (showall) { 
	document.listXtraForm.showall.value = showall;
	document.listXtraForm.submit();
}

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

function openWin(targetURL) { 
	remote = window.open(targetURL,'popup','width=400,height=420,toolbar=0,location=0,directory=0,menubar=0,status=0,scrollbars=yes,resizeable=1');
	remote.opener.name = "main";
}

function closeRemote() {
	if ((self.remote) && (self.remote != 'xxx')) {remote.close();}
}

function goto_site() {
        var selectedIndex = document.form1.to.selectedIndex;
        if (selectedIndex > 0) {
                var selection = document.form1.to.options[selectedIndex].value;
                self.parent.location=selection;
        }
 }

 

function checkKey(evt,whichForm) {
	var ie4 = document.all ? true:false
	var ns4 = document.layers ? true:false
	
	if (ns4) {theKey = evt.which}
	if (ie4) {theKey = event.keyCode}
	
	if (theKey == 13) {
		document.forms[whichForm].submit();
	}
	return true
}






function websiteBooker_hp(){
var is_4up = parseInt(navigator.appVersion);
var is_mac = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
var is_ie = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
var thePage = location.href;
if (thePage.lastIndexOf('#')!=-1)
thePage = thePage.substring(0,thePage.lastIndexOf('#'));
if (is_ie && is_4up && !is_mac) 
window.external.AddFavorite(thePage,document.title);
else if (is_ie || document.images)
booker_hp = window.open(thePage,'booker_','menubar,width=325,height=140,left=140,top=60');
booker_hp.focus();
}

function stopErrors() {
return true;}
window.onerror = stopErrors;


