function get_Info_From_Object_Window() {
wle = window.length;
wst = window.status;
giw = "&wle="+wle+"&wst="+wst;
return giw;
}


function get_Info_From_Object_Document() {
dlm = document.lastModified;
dref = escape(document.referrer);
dpref = ""; // parent.document.referrer;
gid="&dlm="+dlm+"&dref="+dref+"&dpref="+dpref;  
return gid;
}

function get_Info_From_Object_Location() {
lhn = location.hostname;
lhf = escape(location.href);
lpn = escape(location.pathname);    
gil="&lhn="+lhn+"&lhf="+lhf+"&lpn="+lpn;   
return gil;
}

function get_Info_From_Object_Navigator() {
napv = navigator.appVersion;
ncpu = navigator.cpuClass;
nln = "XX";
if (navigator.browserLanguage) 
	nln = navigator.browserLanguage.substr(0, 2);
npfm = navigator.platform;
njae = navigator.javaEnabled();
ntae = navigator.taintEnabled();
gin="&napv="+napv+"&ncpu="+ncpu+"&nln="+nln+"&npfm="+npfm+"&njae="+njae+"&ntae="+ntae;   
return gin;
}

function get_Info_From_Object_Screen() {
sah = screen.availHeight;
saw = screen.availWidth;
sh = screen.height;
sw = screen.width;
scd = screen.colorDepth;
date = new Date();
zone = date.getTimezoneOffset();
np = history.length;
gis="&sah="+sah+"&saw="+saw+"&sh="+sh+"&sw="+sw+"&scd="+scd+"&zone="+zone+"&np="+np;   
return gis;
}


function give_Info_To_PHP(client_id) {
gitPHP = get_Info_From_Object_Window();
gitPHP += get_Info_From_Object_Document();  
gitPHP += get_Info_From_Object_Location();
gitPHP += get_Info_From_Object_Navigator();
gitPHP += get_Info_From_Object_Screen();
  
allToPhp = "<img src='http://www.brizonia.com/logger_demo/count_insert.php?client_id=" + client_id + gitPHP + "' border='0' width='1' height='1'>";

return allToPhp; 
//This line is only for testing - possible to delete this and bellow
//return gitPHP;
}

function give_Ref_To_PHP(client_id) {
gitPHP = get_Info_From_Object_Window();
gitPHP += get_Info_From_Object_Document();  
gitPHP += get_Info_From_Object_Location();
gitPHP += get_Info_From_Object_Navigator();
gitPHP += get_Info_From_Object_Screen();
a = "<a href='http://www.brizonia.com/logger_demo/count_insert.php?client_id=" + client_id + gitPHP + "'>test</a>";
return a;
}