//var statUrl = "http://pages.chinahr.com/adpgstat/stat.aspx";
var statUrl = "http://campus.chinahr.com/adpgstat/stat.aspx";
if(document.all.mem_id)
{
	var mem_Id = document.all.mem_id.value;
}
if(document.all.project_id)
{
	var project_Id = document.all.project_id.value;
}
function loadStat(fl, tmp_id, evt) 
{
   
   if(document.all.project_id)
   {
   	var tt = new Date();
		var tmp_Url = statUrl + "?sw=" + screen.width + "&reUrl=" + escape(this.document.referrer) + "&lurl="+ fl + "&codeId=" + tmp_id + "&mem_Id=" + mem_Id + "&project_Id=" + project_Id + "&tt=" + tt;;
		if(document.images){
			(new Image()).src = tmp_Url;
		} else {
	   		document.write('<img border="0" name="trImg" width="1" height="1" src="'+ statUrl +'">');
		}
		return true;
   }
   else
   {
		return false;
   }
}

function onClickStat(event)
{
	loadStat(escape(this.href),escape(this.id),event);
}

for (var i=0; i<document.links.length; i++)
{
  if(!document.links[i].onclick)
  {
    document.links[i].onclick = onClickStat;
    fl=document.links[i];
    tmp_id=document.links[i].id;
  }
}

function PageView()
{
if(document.all.project_id){
	var P = "";
	P+=statUrl + "?";
	P+="sw=" + screen.width;
	P+="&csUrl=" + escape(this.window.location);
	P+="&mem_Id=" + mem_Id;
	P+="&project_Id=" + project_Id;
	if ((window.document.referrer != "") && (window.document.referrer != "-"))
	{
		if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) )
		{
			P+="&reUrl="+escape(window.document.referrer);
		}
	}
	document.write('<img border="0" name="TRAIMG" width="1" height="1" alt="" src="'+P+'">');
	}
}

PageView();


