// Dit kan alleen worden aangeroepen als de client URL in de root staat
function helpwin(id) {
    var w=400;var h=300;
    var l=400;if(screen){l=((screen.width-w)/2)}
    var t=200;if(screen){t=((screen.height-h)/2)}
    var f="top="+t
      +",left="+l
      +",toolbar=no"
      +",location=no"
      +",status=no"
      +",menubar=no"
      +",titlebar=no"
      +",scrollbars=yes"
      +",personalbar=no"
      +",resizable=no"
      +",width="+w
      +",height="+h;
    var win=window.open("system/help.aspx?ID="+id,"helpwindow",f);		
}

// Dit kan alleen worden aangeroepen als de client URL in de root staat
function begripwin(id) {
    var w=400;var h=300;
    var l=400;if(screen){l=((screen.width-w)/2)}
    var t=200;if(screen){t=((screen.height-h)/2)}
    var f="top="+t
      +",left="+l
      +",toolbar=no"
      +",location=no"
      +",status=no"
      +",menubar=no"
      +",titlebar=no"
      +",scrollbars=yes"
      +",personalbar=no"
      +",resizable=no"
      +",width="+w
      +",height="+h;
    var win=window.open("system/begrip.aspx?search="+id,"begripwindow",f);		
}

// om help.aspx ook aan te kunnen roepen vanaf client URLS's die niet in de root staan
function helpwinURL(url, id) {
	/*
	URL = "system/help.aspx?ID="+id
	help.aspx staat in folder system
	*/
	var w=400;var h=300;
	var l=400;if(screen){l=((screen.width-w)/2)}
	var t=200;if(screen){t=((screen.height-h)/2)}
	var f="top="+t
		+",left="+l
		+",toolbar=no"
		+",location=no"
		+",status=no"
		+",menubar=no"
		+",titlebar=no"
		+",scrollbars=yes"
		+",personalbar=no"
		+",resizable=no"
		+",width="+w
		+",height="+h;
	var win=window.open(url + "?ID=" + id, "helpwindow", f);		
}

function begripwinURL(url, id) {
	/*
	URL = "system/begrip.aspx?ID="+id
	begrip.aspx staat in folder system
	*/
	var w=400;var h=300;
	var l=400;if(screen){l=((screen.width-w)/2)}
	var t=200;if(screen){t=((screen.height-h)/2)}
	var f="top="+t
		+",left="+l
		+",toolbar=no"
		+",location=no"
		+",status=no"
		+",menubar=no"
		+",titlebar=no"
		+",scrollbars=yes"
		+",personalbar=no"
		+",resizable=no"
		+",width="+w
		+",height="+h;
	var win=window.open(url +"?search=" + id, "begripwindow", f);		
}

function secondopwin(url) {
	var w=700;var h=600;
	var l=400;if(screen){l=((screen.width-w)/2)}
	var t=200;if(screen){t=((screen.height-h)/2)}
	var f="top="+t
		+",left="+l
		+",toolbar=no"
		+",location=no"
		+",status=no"
		+",menubar=no"
		+",titlebar=no"
		+",scrollbars=yes"
		+",personalbar=no"
		+",resizable=no"
		+",width="+w
		+",height="+h;
	var win=window.open(url,"secopwindow",f);		
}

// BEGIN CHANGE_VDZOnlineKrediet Toegevoegd voor openen van aspx waarin A3Forms zich bevind
function onlinekredietwin(url) {
	var w=840;var h=740;
	var l=400;if(screen){l=((screen.width-w)/2)}
	var t=200;if(screen){t=((screen.height-h)/2)}
	var f="top="+t
		+",left="+l
		+",toolbar=no"
		+",location=no"
		+",status=no"
		+",menubar=no"
		+",titlebar=no"
		+",scrollbars=yes"
		+",personalbar=no"
		+",resizable=yes"
		+",width="+w
		+",height="+h;
	var win=window.open(url,"onlkredwindow",f);		
}
// EIND CHANGE_VDZOnlineKrediet

function modwin(url) {
	var w=581;var h=500;
	var l=400;if(screen){l=((screen.width-w)/2)}
	var t=200;if(screen){t=((screen.height-h)/2)}
	var f="top="+t
		+",left="+l
		+",toolbar=no"
		+",location=no"
		+",status=no"
		+",menubar=yes"
		+",titlebar=no"
		+",scrollbars=no"
		+",personalbar=no"
		+",resizable=no"
		+",width="+w
		+",height="+h;
	var win=window.open(url,"modwindow",f);		
}

function TellAFriend(){
	var obj 
	try{
		obj = document.getElementById("linkTellAFriend")
		obj.click()
		return true;
	}
	catch(e) {}
	try{
		document.location.href="tell_a_friend.aspx"
		return true;
	}
	catch(e) {}
}
