function open_win(win_file, win_title)
{
window.open(win_file, win_title, 'resizable=yes,width=400,height=300,toolbar=no,scrollbars=yes,location=no,menubar=no,status=no');
}

function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}

function Teltekens() {
	document.form.tekens.value = document.form.descr.value.length;
}

var ua=navigator.userAgent.toLowerCase();
var ischrome=(ua.indexOf('chrome')!=-1);
var isKonq=(ua.indexOf('konqueror')!=-1);
var isSafari=(ua.indexOf('webkit')!=-1);
var isMac=(ua.indexOf('mac')!=-1);
var buttonStr=isMac?'Command/Cmd':'CTRL';

	function bookmark(url, title) {
		if (window.sidebar){ // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		}else if( window.external ){ 
			if(ischrome){ //Chrome
				alert('U dient op CTRL + D te drukken om '+title+' aan uw favorieten toe te voegen.');
			}else{ // IE Favorite
				window.external.AddFavorite( url, title);
			}
		}else{
			if(isKonq){ //Chrome
				alert('U dient op CTRL + B te drukken om '+title+' aan uw favorieten toe te voegen.');
			}else if(window.home || isSafari){ // Firefox, Netscape, Safari, iCab
				alert('U dient op '+buttonStr+' + D te drukken om '+title+' aan uw favorieten toe te voegen.');
			}else if(!window.print || isMac){ // IE5/Mac and Safari 1.0
				alert('U dient op Command/Cmd + D te drukken om '+title+' aan uw favorieten toe te voegen.');    
			}else{
				alert('U dient '+title+' handmatig toe te voegen aan uw favorieten');
			}
		}
	}