var theurl = document.referrer;
theurl = theurl.split("//")[1];
theurl = theurl.split("/")[0];
if (theurl != "www.zh-trip.com" && theurl != "www.zhdingfang.com" && theurl != "www.zhhotelbooking.com"){
createCookie("tss",theurl,10);
//document.write(readCookie("tss"));
}
function createCookie(name,value,days){
		var expires = "";
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			expires = "; expires="+date.toGMTString();
		};
		document.cookie = name+"="+value+expires+"; path=/";
	};
