// JavaScript Document
function UpdateBannerStats(funcName,destUrl){
	
	//alert(destUrl);
	//destUrl.encodeURL(
	//alert(escape(destUrl));
	var xmlhttp=false; //Clear our fetching variable
	try {
			xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object.
	} catch (e) {
			try {
					xmlhttp = new
					ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
		} catch (E) {
			xmlhttp = false;
					}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
	}		
		
	//var file = 'ajax.php?funcName='+funcName+'&destUrl='+destUrl;
	var file = 'ajax.php';
	//This is the path to the file we just finished making *
    //alert(file);
	xmlhttp.open('POST', file); //Open the file through GET, and add the page we want to retrieve as a GET variable **
	xmlhttp.onreadystatechange=function() {
		//alert(xmlhttp.readyState);
        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
			var content = xmlhttp.responseText; //The content data which has been retrieved ***
			if( content ){ 
				//alert(content);					
				return;
		   }
        }
		else{
			
		}
    }
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send('funcName='+funcName+'&destUrl='+escape(destUrl));
	
    //xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}

function UpdateBannerClicks(funcName,destUrl){
	
	var xmlhttp=false; //Clear our fetching variable
	try {
			xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object.
	} catch (e) {
			try {
					xmlhttp = new
					ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
		} catch (E) {
			xmlhttp = false;
					}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
	}		
		
	//var file = 'ajax.php?funcName='+funcName+'&destUrl='+destUrl;
	//This is the path to the file we just finished making *
    //alert(file);
	var file = 'ajax.php';
	//xmlhttp.open('GET', file, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
    xmlhttp.open('POST', file); 
	xmlhttp.onreadystatechange=function() {
		//alert(xmlhttp.readyState);
        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
                var content = xmlhttp.responseText; //The content data which has been retrieved ***
                if( content ){ 
					//alert(content);					
					return;
               }
        }
		else{
			
			}
        }
        xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		xmlhttp.send('funcName='+funcName+'&destUrl='+escape(destUrl));
		//xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}