var _a = window, _b = document, _d = _b.location, _e = _b.documentElement, _f = _b.body;
function sinoObj(itemtype,itemname){
	this.itemtype=itemtype;
	this.itemname=itemname;
}
var sinoArray=new Array();
document.write("<scr"+"ipt language=\"javascript\" src=\"http://track.sinomaximizer.com/js?c="+_sinoacct+"\"></scr"+"ipt>");
if (_a.innerHeight) {
	_h = _a.innerHeight;
	_w = _a.innerWidth;
} else {
	if (_e && _e.clientHeight) {
		_h = _e.clientHeight;
		_w = _e.clientWidth;
	} else {
		if (_f) {
			_h = _f.clientHeight;
			_w = _f.clientWidth;
		}
	}
}
function code2utf8(_1) {
	var _2 = "";
	for (var n = 0; n < _1.length; n++) {
		var c = _1.charCodeAt(n);
		if (c < 128) {
			_2 += String.fromCharCode(c);
		} else {
			if ((c > 127) && (c < 2048)) {
				_2 += String.fromCharCode((c >> 6) | 192);
				_2 += String.fromCharCode((c & 63) | 128);
			} else {
				_2 += String.fromCharCode((c >> 12) | 224);
				_2 += String.fromCharCode(((c >> 6) & 63) | 128);
				_2 += String.fromCharCode((c & 63) | 128);
			}
		}
	}
	return _2;
}
function encodeUrl(_u) {
	if (_u) {
		_u = code2utf8(_u);
		_u = encodeURIComponent(_u);
		_u = _u.substring(0, 1023);
	}
	return _u;
}
function Trim(s) {
	return s.replace(/^\s*|\s*$/gi, "");
}
function cUrl() {
	var w = window;
	var p = w.location;
	if (w.location == top.location) {
		p = w.location.toString();
	} else {
		try {
			p = w.top.location.toString();
		}
		catch (e) {
			p = document.referrer;
		}
	}
	return encodeUrl(p);
}
(function () {
	img = new Image();
	img.src = "http://track.sinomaximizer.com/track?u=" + cUrl()+"&r="+encodeUrl(document.referrer);
})();
function trackvalue(){
	for (var i = 0; i < sinoArray.length; i++) {
		if(sinoArray[i].itemtype=='0')
			sinotrackObj=document.getElementById(sinoArray[i].itemname);
		else
			sinotrackObj=document.getElementsByName(sinoArray[i].itemname)[0];
		if (sinotrackObj != null) {
			sinotrackObj.onkeyup = function () {
				var _g = sinotrackObj.value;
				if (_g != undefined) {
					if (Trim(_g) != "") {
						img = new Image();
						img.src = "http://track.sinomaximizer.com/cv?v=" + _g;
					}
				}
			};
			break;
		}
	}
}
if(window.attachEvent){
	window.attachEvent('onload', trackvalue);
}else if(window.addEventListener){
	window.addEventListener('load', trackvalue, false);
}
