﻿function hcprocess()
{
    hcTag();
}


var gHCImages=new Array;
var gHCIndex=0;

function hcCreateImage(hcSrc){
	if (document.images){
		gHCImages[gHCIndex]=new Image;
		//if ((typeof(gHref)!="undefined")&&(gHref.length>0)){
		//	gImages[gHCIndex].onload=gImages[gIndex].onerror=dcsLoadHref;
		//}
		
		gHCImages[gHCIndex].src = hcSrc;
		gHCIndex++;
	}
	else{
		document.write('<IMG ALT="" BORDER="0" NAME="hcDCSIMG" WIDTH="1" HEIGHT="1" SRC="'+hcSrc+'">');
	}
}


function hcTag(){
	var P= hcurl + "?" + hcqs + "&";
	for (N in DCS){
		if (DCS[N]) {
			P+=dcsA(N,DCS[N]);
		}
	}
	for (N in WT){
		if (WT[N]) {
			P+=dcsA("WT."+N,WT[N]);
		}
	}
	for (N in DCSext){
		if (DCSext[N]) {
			P+=dcsA(N,DCSext[N]);
		}
	}
	if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){
		P=P.substring(0,2040)+"&WT.tu=1";
	}
	
	hcCreateImage(P);
}




hcprocess();