
function printContent(printPageUrl) {
	var pW = openWindow(printPageUrl, 'print', 650, 550, 1, 1, 1);
	pW.focus();
}


// ----------------------------------------  tabs Rdw  nav ------------------------------//
	
	
function topheaderHover(id, baseSrc, tabHover) {
	document.getElementById(id).src = baseSrc + 'sel_' + tabHover + '.gif';
}

function printHover(baseSrc, tabHover) {
	document.getElementById('printHeader').src = baseSrc + tabHover + '.gif';
}


function swapImage(id, id2) {
	document.getElementById(id).src = "/media/nav/" + id2 + ".gif";
}


function popup(url) {

  	var popupWindow = open(url, "Popup", "height=480,width=580,location=no ,menubar=no, scrollbars=no, status=no, toolbar=no ,resize=no ");
	//var myReferer = location.href;
//alert(myReferer.substring(0,myReferer.lastIndexOf('/')));
	//document.location = document.location;
	
	
	document.location = '/bestelonline/bestelonline.html';
	
	return false;
}

function newPage(url){
	if(url!="niets"){
		document.location.href = url;
		return false;
		}		
}

function newFacts(url){
	if(url!=""){
		textFrame.location.href = url;
		return false;
		}		
}

var myUitlegWindow;

function OpenInfoPopup( inUrl, inWidth, inHeight )
{

	if (myUitlegWindow)
	{
		myUitlegWindow.close()
	}
	
	maxWidth = (inWidth > 330 ? inWidth : 330 )
	
    if (window.screen) 
    {
        maxResX = parseInt(window.screen.availWidth);
        maxResY = parseInt(window.screen.availHeight);
        emptySpace = 50;
        
        myLeft = maxResX - maxWidth - emptySpace;
        myTop =  emptySpace;        
    }
    
    myUitlegWindow = window.open( inUrl, 
								  "InfoPopup", 
		                          "channelmode=no, directories=no, fullscreen=no," +
                                  "left=" + myLeft + "," + 
                                  "resizable=no, scrollbars=no," + 
                                  "top=" + myTop + "," +
                                  "menubar=no, status=no, titlebar=no, toolbar=no," + 
                                  "height=" + inHeight + ",width=" + maxWidth );
                                  
	myUitlegWindow.focus();
	
}