var footerHTML = "";

footerHTML= "<u>MakeLogic <sup>TM</sup></u>&nbsp; CopyRight 2008<br/><br/>"+
			"401, Rishi Mansions, Road No.4, West Marredpally, Hyderabad, AP, India.PIN: 500 026 Ph: +91-40-66322433"+
			"  <a href=\"mailto:info@makelogic.com\">info@makelogic.com</a>";

document.write(footerHTML);
//..Log this page
LogThisVisitor(location.href);

//..START : Log this visitor using AJAX...........................................
//..
function LogThisVisitor(logPage) {

		//..Http Request Object
        var http_request = false;
		
		//..Create the XMLHttpRequest Object
        if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            //alert('ERROR CODE : RATE_THIS 01\n Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        
        http_request.onreadystatechange = function() 
										{
											loggingComplete(http_request); 
										};
        
        var cacheBusterParam = "cb=" + new Date().getTime();
        var logPageParam		= "logPage="+logPage;
        var urlParams = "?"+cacheBusterParam+"&"+logPageParam;
        
        url = "http://www.makelogic.com/LogVisitor.php"+urlParams;
        
        http_request.open('GET', url, true);
        http_request.send(null);
        
        var response = '';
         if (http_request.readyState == 4) {
            if (http_request.status == 200) {
                //alert(http_request.responseText);
                response = http_request.responseText;
            } else {
                //alert('There was a problem with the request.');
                response = 'ERROR CODE : POLL 02\nThere was a problem with RATE THIS request.';
            }

        return response;
        }
    }
    
    
     function loggingComplete(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
            		var logReponse = http_request.responseText;
            }
            else{
	            //..Debug
		        alert("ERROR in Logging Response ");
            }
        }
    }
//..
//..END : Log this visitor using AJAX...........................................
