
///////////////////////////////////////
//                                   //
//        Updated: 01-02-2007        //
//           Graffiti Wall           //
//        FileName: users.js         //
//    Written by midnightfun.co.uk   //
//       www.midnightfun.co.uk       //
//            Version 2.0            //
//     License: See license.html     //
//              © 2007               //
//                                   //
///////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
//                                                                         //
//             Editing is NOT allowed to any of the code below!            //
//                                                                         //
//   If you edit any of the code below this part the script may not work   //
//              and you will be in violation of the licence!               //
//                                                                         //
/////////////////////////////////////////////////////////////////////////////

// Get the URL referrer link.

var refer=document.referrer

if ( refer != '' ) { 
var referrer="referrer="+refer+"&"
} else { 
var referrer = "referrer=0&"
} 

// Get screen res.

res = "res="+screen.width+" x "+screen.height;

// Send the referrer link.

var xmlHttp

var url="./includes/users.php?" + referrer + res 
xmlHttp=GetXmlHttpObject(changed)
xmlHttp.open("GET", url , true);
xmlHttp.send("");

function changed() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
return 
} 
} 

function GetXmlHttpObject(handler)
{ 
	var objXmlHttp=null

	if(window.ActiveXObject){

		try{
			objXmlHttp=new ActiveXObject("Msxml2.XMLHTTP")
		}
		catch(er){
			try{
				objXmlHttp=new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch(er2){
				alert("Error. Scripting for ActiveX might be disabled") 
			}			
		}
		if(objXmlHttp){
			objXmlHttp.onreadystatechange=handler 
		}
	}
	else{ 
		try{
			objXmlHttp=new XMLHttpRequest()
			objXmlHttp.onload=handler
			objXmlHttp.onerror=handler 
		}
		catch(er3){
			alert("Error. Failed to init XMLHttpRequest")
		}
	}
	return objXmlHttp
}
