
// Absolute FAQ Manager .NET
// FAQ Launcher JS 
var xmlHttp = null;

function PostTheURL()
{
var xpropostxml = "http://82.201.100.142/Tools/lineWriter/write.aspx";
    xpropostxml += "?file=OLDHelp";
    xpropostxml += "&parameter1=" +encodeURIComponent(window.location.href)
    if (document.getElementById('moduleId')){
    xpropostxml += "&parameter2=" +document.getElementById('moduleId').value;
    }
    var Url = "/webproxy.aspx?url=" + encodeURIComponent(xpropostxml);
 
 var testhref =window.location.href;
 
 if ((testhref.indexOf('module') != -1 && testhref.indexOf('module=1190') == -1 && testhref.indexOf('module=1&') == -1 && testhref.indexOf('Autoverhuur') == -1 ) || document.getElementById('moduleId') ){
    xmlHttp = new XMLHttpRequest(); 
    xmlHttp.onreadystatechange = ProcessRequestURLPOST;
    xmlHttp.open( "GET", Url, true );
    xmlHttp.send( null );
}}

function ProcessRequestURLPOST() 
{
}


 PostTheURL();

function xlaAFMlaunch(){
	// xlaAFMopenwindow('','','');
        window.open('http://support.holidaycars.com/app/home/xmlfile/Y29uZmlnX25sX1doaXRlTGFiZWwueG1s','_blank');
}

function xlaAFMopenwindow(faqid,topicid,question){
	if (document.all) {
		windowheight = screen.availHeight;
		windowwidth=screen.availWidth;
		rightwidth=250;
		leftwidth=screen.availWidth-rightwidth-11;
		AFMwindow=window.open('http://www.holidaycars.com/help/afmmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question ,'xlaAFM','width='+rightwidth+',height='+windowheight+',screenX='+leftwidth+',screenY=0,top=0,left=' +leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1');
		AFMwindow.focus();
		
		// Resize Current Window //
		top.resizeTo(leftwidth,windowheight);
		top.moveTo(0,0);
		top.focus();
	} else {
		AFMwindow=window.open('http://www.holidaycars.com/help/afmmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question  ,'','width=250,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1');
	}
}

function xlaAFMopentopic(what){
	xlaAFMopenwindow('',what,'');
}

function xlaAFMopenfaq(what){
	xlaAFMopenwindow(what,'','');
}

function xlaAFMsearch(what,topicid,selfpage){
	if (selfpage==''){
		xlaAFMopenwindow('',topicid,what);
	} else {
		self.location.href='http://www.holidaycars.com/help/afmmain.aspx?topicid=' + topicid + '&question=' + what;
	}
}



