



/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequest();
}
return request_type;
}

var http = createObject();




var nocache = 0;

function updatesearchrules(varname,amount){

nocache = Math.random();

http.open('get', '/actions.cfm?action=change_searchrules_action&varname='+varname+'&amount='+amount+'&nocache = '+nocache);
http.onreadystatechange = function() {
    getleftcol();
};
http.send(null);
}



function getleftcol(){
if(http.readyState == 4){ 
nocache = Math.random();
http.open('get', '/ajax.cfm?ajaxpage=search_rules&nocache = '+nocache);
http.onreadystatechange = function() {
	leftcol();
};
http.send(null);
}
}


function leftcol() {
 if(http.readyState == 4){ 
 var leftcolresponse = http.responseText;

{
document.getElementById('left_col_inc').innerHTML = leftcolresponse;
}
}
}



function getbranchpages(){
if(http.readyState == 4){ 
nocache = Math.random();
http.open('get', '/ajax.cfm?ajaxpage=branchpages&nocache = '+nocache);
http.onreadystatechange = function() {
	branchpages();
};
http.send(null);
}
}


function branchpages() {
 if(http.readyState == 4){ 
 var branchpagesresponse = http.responseText;
{
document.getElementById('branchpages_inc').innerHTML = branchpagesresponse;
}
}
}