function mouseOverLeftMenu(m) {
	m.style.backgroundColor='#FFFFFF';
	m.style.color='#1C166B';
	}
function mouseOutLeftMenu(m) {
	m.style.backgroundColor='#1C166B';
	m.style.color='#FFFFFF';
	}
function mouseOverRedTable(m) {
	//m.style.fontWeight='bold';
	m.style.backgroundColor= 'EFEFFF'; //'EAEAFF'; //FFEDEA'; //F9E6E2';
	}
function mouseOutRedTable(m) {
	//m.style.fontWeight='normal';
	m.style.backgroundColor='#FFFFFF';
	}
function clickOnTD(m,url) {
	document.location = url;
	}
function PopupPic(sPicURL) { 
     window.open("/include/popup.asp?"+sPicURL,"","resizable=yes,scrollbars=yes,HEIGHT=400,WIDTH=400,LEFT=1,TOP=1"); 
    } 
function addBookmark(title,url) { 
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if (document.all) { 
		window.external.AddFavorite(url,title); 
		//window.external.AddFavorite(location.href, document.title);
	} else if (window.opera && window.print) { 
		return true; 
	} 
	} 
function focusUser() { 
	document.getit.asplUserName.focus()
	}
function focusPw() { 
	document.getit.asplPassword.focus()
	}
function get_cookie(name) { 
	var start = document.cookie.indexOf(name+"=");
	var len = start+name.length+1;
	if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
	if (start == -1) return null;
	var end = document.cookie.indexOf(";",len);
	if (end == -1) end = document.cookie.length;
	return unescape(document.cookie.substring(len,end));
	}
function set_cookie(name,value,expires,path,domain,secure) {
	document.cookie = name + "=" + escape(value) 
		+ ((expires) ? ";expires=" + expires.toGMTString() : "") 
		+ ((path) ? ";path=" + path : "") 
		+ ((domain) ? ";domain=" + domain : "") 
		+ ((secure) ? ";secure" : "");
	}
var today = new Date();
var expires = new Date(today.getTime()+(20*24*60*60*1000));
function set() {
	if (document.getit.elements[1].checked)
		set_cookie("userid",document.getit.asplUserName.value,expires);
	else
		set_cookie("userid","",expires);
	}
function get() { 
	userid = get_cookie("userid")
	if (userid != null) {
		document.getit.asplUserName.value = userid;
		document.getit.elements[1].checked = true;
		focusPw();
	}
	else
		focusUser();
	}
function printPage() {
if (window.print != null)
{ window.print(); }
else
{ alert('Helaas, je browser is niet geschikt voor deze opdracht.\nOm te printen selecteer Print van het File menu.');
	}
}
function openIBISwindow()
{
	//window.open('/member/ibis.asp', '_blank', 'screenX=0, screenY=0, top=0, left=0, width=' + Math.floor(screen.availWidth*0.99)+' ,height=' + Math.floor(screen.availHeight*0.88)+', directories=no, location=no, menubar=yes, status=yes, toolbar=no, resizable=yes, scrollbars=yes');
	var oWin=window.open('/member/ibis.asp', '_blank', 'screenX=0, screenY=0, top=0, left=0, width=' + Math.floor(screen.availWidth*0.99)+' ,height=' + Math.floor(screen.availHeight*0.88)+', directories=no, location=no, menubar=yes, status=yes, toolbar=no, resizable=yes, scrollbars=yes');
	if (oWin==null || typeof(oWin)=="undefined") {
			alert("You have a Popup-blocker !\n\nPlease disable the tool, or add\nhttp://www.mmr.be to the list\nof trusted sites.");
			return true;
	} else {
		//oWin.close();
		return false;
	}
}
function openPrinterFriendlyWindow(pfurl)
{
	var pWin=window.open(pfurl,'_blank','screenX=20,screenY=10,top=10,left=20,width=770,height=500,directories=no,location=no,menubar=yes,status=yes,toolbar=no,resizable=yes,scrollbars=yes');
	if (pWin==null || typeof(pWin)=="undefined") {
			alert("You have a Popup-blocker !\n\nPlease disable the tool, or add\nhttp://www.mmr.be to the list\nof trusted sites.");
			return true;
	} else {
		return false;
	}

}
function sendToFriendWindow(pfurl)
{
	var fWin=window.open(pfurl,'_blank','screenX=200,screenY=100,top=100,left=200,width=550,height=350,directories=no,location=no,menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=no');
	if (fWin==null || typeof(fWin)=="undefined") {
			alert("You have a Popup-blocker !\n\nPlease disable the tool, or add\nhttp://www.mmr.be to the list\nof trusted sites.");
			return true;
	} else {
		return false;
	}
}
function giveFeedbackWindow(pfurl)
{
	var gWin=window.open(pfurl,'_blank','screenX=50,screenY=30,top=30,left=50,width=550,height=480,directories=no,location=no,menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=no');
	if (gWin==null || typeof(gWin)=="undefined") {
			alert("You have a Popup-blocker !\n\nPlease disable the tool, or add\nhttp://www.mmr.be to the list\nof trusted sites.");
			return true;
	} else {
		return false;
	}
}
