
document.write("<style>ul{list-style:none;margin:0;padding:0;}</style>");
var indexPage = "http://www.yshqianming.com.cn/?";
var submitPage = "http://www.yshqianming.com.cn/submit.jsp?";
var indexPageTJ = "http://www.yshqianming.com.cn/?";
var url="";
function getYoudayCookie(sName) {
	var sRE = "(?:; )?" + sName + "=([^;]*);?";
	var oRE = new RegExp(sRE);
	if (oRE.test(document.cookie))
		return decodeURIComponent(RegExp["$1"]);
	return '';
}

function setYoudayCookie()
{
	var exdate=new Date();
	exdate.setTime(exdate.getTime()+24*60*60*1000);
	document.cookie="youday_qianming"+webownerId+ "=" +escape("youday_qianming"+webownerId)+";expires="+exdate.toGMTString();
}
function GetLocationParam(p) {
	var s = location.href;
	s = s.replace("?", "?&").split("&");
	var re = "";
	for (i = 1; i < s.length; i++) {
		if (s[i].indexOf(p + "=") == 0) {
			re = s[i].replace(p + "=", "");
		}
	}
	return re;
}
var id = GetLocationParam("id");
if (id == "") {
	id = "100005";
} else {
	if (id.indexOf("#") != -1) {
		id = id.substring(0, id.indexOf("#"));
	}
}
var promotion = GetLocationParam("promotion");
if (promotion == "") {
	promotion = "1";
}
var serviceId = GetLocationParam("serviceId");
if (serviceId == "") {
	serviceId = "100005";
}
var webownerId = GetLocationParam("webownerId");
if (webownerId == "") {
	webownerId = "10001";
}
var childid = GetLocationParam("childid");
if (childid == "") {
	childid = "10000";
} else {
	if (childid.indexOf("?") != -1) {
		childid = childid.substring(0, childid.indexOf("?"));
	}
}
function GetSiteurl() {
	var lf = "";
	if (document.referrer){
		url = document.referrer;
	} else {
		if (window.opener && window.opener.location) {
			try {
				url = window.opener.location.href;
			}
			catch (e) {
				url = "";
			}
		}
	}
	if (url == "") {
		url = " http://" + location.host + location.pathname;
	}
	try {
		var re = /http[^\?]+/i;
		url = url.match(re);
	}
	catch (e) {
	}
	return url;
}
var gourl = GetLocationParam("gourl");
var siteurl = GetLocationParam("siteurl");
if (siteurl == "") {
	siteurl = GetSiteurl();
}
var referrerurl = GetSiteurl();

function CM(m) {
	var t = /^1[3|4|5|8]([0-9]{1})([0-9]{8})$/;
	return t.test(m);
}
function ToIndexWindow() {
	var urlStr = indexPage + "id=" + id + "&webownerId=" + webownerId + "&serviceId=100005&childid=" + childid + "&siteurl=" + referrerurl + "&promotion=" + promotion+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}
function ToIndex3Window() {
	var urlStr = "http://code.aiqianming.cn/code/fullscreen_3.html?id=3&webownerId=" + webownerId + "&childid=" + childid + "&siteurl=" + referrerurl+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}
function ToSubmitWindow(varStr) {
	var url = varStr + "&id=" + id + "&webownerId=" + webownerId + "&childid=" + childid + "&siteurl=" + referrerurl+"&gourl="+gourl;
	var t = window.open(url);
	t.focus();
}
//
function ToRingWindow() {
	var urlStr = "http://www.woaring.com/html/index.html?id=" + id + "&webownerId=" + webownerId + "&childid=" + childid + "&siteurl=" + referrerurl+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}
function ToCoupletWindow() {
	var urlStr = "http://www.aiduilian.cn/index.jsp?id=" + id + "&webownerId=" + webownerId + "&childid=" + childid + "&siteurl=" + referrerurl+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}
function ToQuestionWindow() {
	var urlStr = "http://www.kaokaoni.net/index.html?id=" + id + "&webownerId=" + webownerId + "&childid=" + childid + "&siteurl=" + referrerurl+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}
function ToYoudayIndexWindow() {
	var t = window.open("http://www.youday.cn");
	t.focus();
}
function ToIndexWindowTJ() {
	var urlStr = indexPageTJ + "id=" + id + "&webownerId=" + webownerId + "&serviceId=100005" +  "&childid=" + childid + "&siteurl=" + referrerurl + "&promotion=" + promotion+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}
function ToIndexTJ(serviceid) {
	var urlStr = indexPageTJ + "id=" + id + "&webownerId=" + webownerId + "&serviceId=100005" +  "&childid=" + childid + "&gopage=17&siteurl=" + siteurl+"&gourl="+gourl;
	var t = window.open(urlStr);
	t.focus();
}


