var u = "";
var uu = "";
var placeid = "";
var rootURL = "http://channel.support.12530.com/";//根路径；
var dynamicURL = "http://my.12530.com/newchannel/orderTone/";//静态域名
//var dynamicURL = "http://channel.support.12530.com/newchannel/orderTone/";//动态域名
var branch = "newchannel/tpl/channel3/";
var ringBranch = "newchannel/tpl/ring/";
var fromServer = false;

function $(i){
    return document.getElementById(i);
}

function sendCOMBD(id){
	datetime = nowdatetime();
	window.open( dynamicURL + id +'/1/'+u+'/' + uu +'/-/-/order.htm','','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	return false;
}
function jump2Ring(id){
	datetime = nowdatetime();
	window.open(rootURL + ringBranch + 'pushIndex.jsp?msgid='+u+datetime+'&objname='+id+'&type=1&from='+u+'&subfrom='+placeid+'&placeid=' + uu +'','','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	return false;
}

function GetQueryString(name){
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}

function nowdatetime(){
    Date.prototype.format = function(format){
        var o = {
            "M+": this.getMonth() + 1, //month
            "d+": this.getDate(), //day
            "h+": this.getHours(), //hour
            "m+": this.getMinutes(), //minute
            "s+": this.getSeconds(), //second
            "q+": Math.floor((this.getMonth() + 3) / 3), //quarter
            "S": this.getMilliseconds() //millisecond
        }
        if (/(y+)/.test(format)) {
            format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
        }
        for (var k in o) {
            if (new RegExp("(" + k + ")").test(format)) {
                format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
            }
        }
        return format;
    }
    var ddd = new Date();
    return ddd.format('yyyyMMddhhmmssS');
}

function init(){
	placeid = GetQueryString('placeid');
    u = GetQueryString('u');
    uu = GetQueryString('uu');
	var url = window.location.href;
    if (u==null || u=="" ) {
		var pattern = new RegExp("/");
		var pos = 7;
		if( navigator.userAgent.toLowerCase().indexOf("msie")!=-1 ){
			pos = 6;
		}
		var r = url.split(pattern,10);
	    if (r != null && (new RegExp('^[0-9]*$').test(r[pos])) ) {
			u = unescape(r[pos]);
			uu = unescape(r[pos+1]);
		} else {
			u = "1725";
		}
    }
    if (u == "1725" && uu == null) {
        uu = "mini";
    } else if (uu == null) {
            uu = "";
        }
    if (placeid == null) {
        placeid = "";
    }
    var width = (screen.width / 2) - 60;
    var height = (screen.height / 2) - 110;
}

function doSearch(){
	var userAccount = GetQueryString("userAccount");
	
	var viewPage = 1;
	var keyword = document.getElementById("searchKeyword").value;
	if( keyword==null || keyword=="" ){
		alert("请输入搜索关键字！");
		return false;
	}
//	keyword = keyword.replace(/\s+/g, "");
	if (keyword != "") {
	
		if(keyword.indexOf("#")!=-1 || keyword.indexOf("@")!=-1 || keyword.indexOf("%")!=-1 || keyword.indexOf("!")!=-1 || keyword.indexOf("$")!=-1 || keyword.indexOf("^")!=-1 || keyword.indexOf("&")!=-1 || keyword.indexOf("`")!=-1){
			alert("搜索关键字内容不能包含以下非法字符“`,!,@,#,$,%,^,&”，请输入正确内容!");
			return false;
		}
		
		recordKeyword(keyword);
		keyword = encodeURI(keyword);
		if(userAccount!=null && userAccount!="" && userAccount!="null"){
			window.open('http://my.12530.com/newchannel/c/movement/home/' + keyword + '/1/1/multiSearch.htm?u=' + u + '&uu=' + uu +'&userAccount='+userAccount , '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
		}else{
			window.open('http://my.12530.com/newchannel/c/movement/home/' + keyword + '/1/1/multiSearch.htm?u=' + u + '&uu=' + uu , '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
		}
		
	} else {
		if(userAccount!=null && userAccount!="" && userAccount!="null"){
			window.open('http://movement.12530.com/more/155669/1/more.htm?u=' + u + '&uu=' + uu +'&userAccount='+userAccount, '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
		}else{
			window.open('http://movement.12530.com/more/155669/1/more.htm?u=' + u + '&uu=' + uu, '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
		}
	}
}
function doSearchKeyword(keyword){
	var userAccount = GetQueryString("userAccount");
	var viewPage = 1;
	//keyword = keyword.replace(/\s+/g, "");
	recordKeyword(keyword);
	keyword = encodeURI(keyword);
	if(userAccount!=null && userAccount!="" && userAccount!="null"){
		window.open('http://my.12530.com/newchannel/c/m/searchKeyWorld/' + keyword + '/2/1/search.htm?u=' + u + '&uu=' + uu + '&userAccount=' + userAccount , '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	}else{
		window.open('http://my.12530.com/newchannel/c/m/searchKeyWorld/' + keyword + '/2/1/search.htm?u=' + u + '&uu=' + uu , '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	}
	
}

function viewPage(pageName,viewPage,id,cnStr){
	cnStr = encodeURI(cnStr);
	if (fromServer) {
		if( pageName=="fairyland.jsp" ){
			pageName = "fairyland";
		} else if ( pageName=="recommendSongList.jsp" ){
			pageName = "more";
		} else if( pageName=="recommendAlbumList.jsp" ){
			pageName = "album";
		} else if( pageName=="recommendSinger.jsp" ){
			pageName ="singers";
		}
		if (cnStr.length > 0) {
			window.location.href = 'http://movement.12530.com/' + pageName + '/' + id + '/' + cnStr + '/' + viewPage + '/' + pageName + '.htm?u=' + u + '&uu=' + uu;
		} else {
			window.location.href = 'http://movement.12530.com/' + pageName + '/' + id + '/' + viewPage + '/' + pageName + '.htm?u=' + u + '&uu=' + uu;
		}
	} else {
		window.location.href = '/newchannel/tpl/movement/home/' + pageName + '?current=' + viewPage + '&id=' + id + '&u=' + u + '&uu=' + uu + '&cnStr=' + cnStr + '';
	}
}

function jump(pageName,id,cnStr){
	cnStr = encodeURI(cnStr);
	var viewPage = $("jumpTo").value;
	if (fromServer) {
		if( pageName=="fairyland.jsp" ){
			pageName = "fairyland";
		} else if (pageName=="recommendSongList.jsp"){
			pageName = "more";
		} else if( pageName=="recommendAlbumList.jsp" ){
			pageName = "album";
		}
		if (cnStr.length > 0) {
			window.location.href = 'http://movement.12530.com/' + pageName + '/' + id + '/' + cnStr + '/' + viewPage + '/' + pageName + '.htm?u=' + u + '&uu=' + uu;
		} else {
			window.location.href = 'http://movement.12530.com/' + pageName + '/' + id + '/' + viewPage + '/' + pageName + '.htm?u=' + u + '&uu=' + uu;
		}	
	} else {
		window.location.href = '/newchannel/tpl/movement/home/' + pageName + '?current=' + viewPage + '&id=' + id + '&u=' + u + '&uu=' + uu + '&cnStr=' + cnStr + '';
	}
}

function goUrl(url,action,width,height){
	var userAccount = GetQueryString("userAccount");
	
	if( width==null || width==0 || height==null || height==0){
		width = screen.width;
		height= screen.height;
	}
	var left = 0;
	var top = 0;
	if( action=="open" ){
		left = screen.width/2 - width/2;
		top = screen.height/2 - height/2;
		if (fromServer) {
			if( url.indexOf("sort.jsp")!=-1 ){
				url = "sort.htm";
			}
			if( url.indexOf("recommendSinger")!=-1 ){
				url = "/singers/32/1/singers.htm";
			}
			if( url=="http://www.12530.com/" ){
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.open("http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html?userAccount="+userAccount, '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}else{
					window.open("http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html", '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}
				
			} else {
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.open(url + '?u=' + u + '&uu=' + uu + '&userAccount='+userAccount, '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}else{
					window.open(url + '?u=' + u + '&uu=' + uu, '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}
				
			}
		} else {
			if( url=="http://www.12530.com/" ){
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.open("http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html?userAccount="+userAccount, '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}else{
					window.open("http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html", '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}
				
			} else {
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.open(url + '?u=' + u + '&uu=' + uu + "&userAccount="+userAccount, '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}else{
					window.open(url + '?u=' + u + '&uu=' + uu, '', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				}
				
			}
		}
	} else {
		if (fromServer) {
			if( url.indexOf("sort.jsp")!=-1 ){
				url = "sort.htm";
			}
			if( url.indexOf("recommendSinger")!=-1 ){
				url = "/singers/32/1/singers.htm";
			}
			if( url=="http://www.12530.com/" ){
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.location.href = "http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html?userAccount="+userAccount;
				}else{
					window.location.href = "http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html";
				}
				
			} else {
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.location.href = url + '?u=' + u + '&uu=' + uu + '&userAccount='+userAccount;
				}else{
					window.location.href = url + '?u=' + u + '&uu=' + uu;
				}
				
			}
		} else {
			if( url=="http://www.12530.com/" ){
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.location.href = "http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html?userAccount="+userAccount;
				}else{
					window.location.href = "http://www.12530.com/newweb/index/home/" + u +"/" + u +"/" + uu +"/p.html";
				}
				
			} else {
				if(userAccount!=null && userAccount!="" && userAccount!="null"){
					window.location.href = url + '?u=' + u + '&uu=' + uu + '&userAccount='+userAccount;
				}else{
					window.location.href = url + '?u=' + u + '&uu=' + uu;
				}
				
			}
		}
	}
}
function recordKeyword(keyword){
	
	var pagefromurl = document.referrer;
	var localurl = location.href;
	
	pagefromurl = pagefromurl.split("?")[0]; 
	localurl = localurl.split("?")[0]; 
	
	keyword = encodeURI(keyword);
	
	var scripts = document.getElementsByTagName("script");
	var sobj = document.createElement('script');
	sobj.src='http://channel.support.12530.com/newchannel/tpl/c/doRecord.jsp?from=' + encodeURIComponent(pagefromurl) + '&url=' + encodeURIComponent(localurl) + '&u=' + u + '&pa8=' + keyword + '&pa10=3';
	var headobj = document.getElementsByTagName('head')[0];
	headobj.appendChild(sobj);
}
function orderTone(id){
	var userAccount = GetQueryString("userAccount");
	datetime = nowdatetime();
	var url = "http://my.12530.com/newchannel/order/"+id+"/1/"+u+"/"+uu+"/_/_/_/order.htm";
	if(userAccount!=null && userAccount!="" && userAccount!="null"){
		window.open(url + '?userAccount='+userAccount,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	}else{
		window.open(url,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	}
	
	return false;
}

/**
 * 旧定制页
 */
function oldOrder(id,placeId){
	var userAccount = GetQueryString("userAccount");
	datetime = nowdatetime();
	var url = "http://my.12530.com/newchannel/orderTone/"+id+"/1/"+u+"/"+uu+"/-/-/order.htm";
	if(userAccount!=null && userAccount!="" && userAccount!="null"){
		window.open(url + '?userAccount='+userAccount+'&placeid='+placeId,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	}else{
		window.open(url + '?placeid=' + placeId,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	}
	return false;
}

/**
 * 由主页跳转到more.jsp页面的urlRewrite规则路径
 * @fromServer 是否来自服务器
 * @pnid pnid节点编号
 * @current 当前页数
 * @IsOut 是否弹出新窗口 _blank:新弹出 parent:本页面跳转
 */
 function openMore(fromServer,pnid,current,IsOut){
 	var width = screen.width;
	var height= screen.height;
	
 	var url = "http://movement.12530.com/more/"+pnid+"/"+current+"/more.htm?u="+u+"&uu="+uu;
 	if(fromServer){
 		if(IsOut=="_blank"){
 			window.open(url,'','width='+width+',height='+height+',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
 		}else{
 			window.location.href=url
 		}
 	}else{
 		url = "more.jsp?pnid="+pnid + "&current=" + current+"&u="+u + "&uu="+uu;
 		if(IsOut=="_blank"){
 			window.open(url,'','width='+width+',height='+height+',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
 		}else{
 			window.location.href=url;
 		}
 	}
 }
 
  /**
  * 分页显示时选择页数,然后点击"GO"进行的页面跳转
  * @fromServer 是否来自服务器
  * @pnid 页面的pnid参数节点的id
  * @currentId 当前页数节点的id
  * @IsOut 是否弹出新窗口 _blank:新弹出 parent:本页面跳转
  */
 function getUrl(fromServer,pnid,currentId,IsOut){
 	var pnidVal = document.getElementById(pnid).value;
 	var current = document.getElementById(currentId).value;
 	openMore(fromServer,pnidVal,current,IsOut);
 }
 
 
 /**
  * 20080910
  * 进入定制流程页,添加渠道标示
  */
 function orderlist(mdmcid,placeId,obj){
 	var userAccount = GetQueryString("userAccount");
// 	datetime = nowdatetime();
	var isIE = document.all;
	var song = "";
	var singer = "";
	if(isIE==null){//firefox
		song = encodeURI(obj.text);
	}else{
		song = encodeURI(obj.innerText);
	}
	var singerName = obj.title.split(" ")[1];
	singer = encodeURI(singerName);
	album = encodeURI("");
	
	//var url = "/newchannel/c/m/searchKeyWorld/"+u+"/"+search_uu+"/-/play.htm?id="+id+"&song="+song+"&singer="+singer+"&album="+album;
	//var url = "http://my.12530.com/newchannel/c/m/searchKeyWorld/"+u+"/"+uuId+"/-/play.htm?id="+mdmcid+"&song="+song+"&singer="+singer+"&album="+album;
	//change by wanghaiming@20090318
	//新定制页url
	//var url = "http://my.12530.com/newchannel/order/"+mdmcid+"/1/"+u+"/"+uu+"/_/_/"+placeId+"/order.htm";
	//旧定制页地址
	var url = "http://my.12530.com/newchannel/orderTone/"+mdmcid+"/1/"+u+"/"+uu+"/-/_/order.htm?placeid="+placeId;
	//var url = "http://my.12530.com/newchannel/listion/"+mdmcid+"/"+u+"/"+uu+"/_/_/"+placeId+"/listion.htm";
	if(userAccount!=null && userAccount!="" && userAccount!="null"){
		url = url + "&userAccount="+userAccount;
	}
	//打开新定制页
	//window.open(url,'listion','width=401,height=450,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	
	//打开旧定制页
	window.open(url,'listion','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
	/*
 	if(userAccount!=null && userAccount!="" && userAccount!="null"){
 		//window.open(dynamicURL + mdmcid +'/1/'+u+'/' + uuId +'/-/-/order.htm?userAccount='+userAccount,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 		
 	}else{
 		window.open(dynamicURL + mdmcid +'/1/'+u+'/' + uuId +'/-/-/order.htm','','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 	}
	*/
	
	return false;
 }
 
 function orderAddUU(mdmcid,placeId){
 	var userAccount = GetQueryString("userAccount");
 	if(userAccount!=null && userAccount!="" && userAccount!="null"){
 		window.open(dynamicURL + mdmcid +'/1/'+u+'/' + uu +'/-/'+placeId+'/order.htm?userAccount='+userAccount,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 	}else{
 		window.open(dynamicURL + mdmcid +'/1/'+u+'/' + uu +'/-/'+placeId+'/order.htm','','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 	}
	
	return false;
 }
 
 /**
  * 20080910
  * 进入搜索,添加渠道标示
  */
 function searchSingerAddUU(key,placeId){
 	var userAccount = GetQueryString("userAccount");
 	var viewPage = 1;
	//keyword = keyword.replace(/\s+/g, "");
	recordKeyword(key);
	key = encodeURI(key);
	if(userAccount!=null && userAccount!="" && userAccount!="null"){
		window.open('http://my.12530.com/newchannel/c/m/searchKeyWorld/' + key + '/2/1/search.htm?u=' + u + '&uu=' + uu + '&userAccount='+userAccount+'&placeid='+placeId , '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	}else{
		window.open('http://my.12530.com/newchannel/c/m/searchKeyWorld/' + key + '/2/1/search.htm?u=' + u + '&uu=' + uu+'&placeid='+placeId , '', 'width=' + screen.width + ',height=' + screen.height + ',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	}
	
 }
 
 /** 
  * 20080910
  * 更多页,添加渠道标示
  */
 function openMoreAddUU(fromServer,pnid,current,IsOut,placeId){
 	var userAccount = GetQueryString("userAccount");
 	var width = screen.width;
	var height= screen.height;
	
	var url = "http://movement.12530.com/more/"+pnid+"/"+current+"/more.htm?u="+u+"&uu="+uu+"&placeid="+placeId;
	if(userAccount!=null && userAccount!="" && userAccount!="null"){
		url = url +  + "&userAccount="+userAccount;
	}
	 	
 	if(fromServer){
 		if(IsOut=="_blank"){
 			window.open(url,'','width='+width+',height='+height+',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
 		}else{
 			window.location.href=url
 		}
 	}else{
 		url = "more.jsp?pnid="+pnid + "&current=" + current+"&u="+u + "&uu="+uu + "&placeid=" + placeId;
 		if(userAccount!=null && userAccount!="" && userAccount!="null"){
			url = url +  "&userAccount="+userAccount;
		}
		
 		if(IsOut=="_blank"){
 			window.open(url,'','width='+width+',height='+height+',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
 		}else{
 			window.location.href=url;
 		}
 	}
 }
 
 /**
  * 20080910
  * 页面跳转,添加渠道标示
  */
 function goUrlAddUU(url,placeId){
	var userAccount = GetQueryString("userAccount");
 	
 	if(url.indexOf("?")!=-1){
 		if(userAccount!=null && userAccount!="" && userAccount!="null"){
 			url = url + "&u="+u+"&uu="+uu + "&userAccount="+userAccount+"&placeid="+placeId;
 		}else{
 			url = url + "&u="+u+"&uu="+uu+"&placeid="+placeId;
 		}
 	}else{
 		if(userAccount!=null && userAccount!="" && userAccount!="null"){
 			url = url + "?u="+u+"&uu="+uu + "&userAccount="+userAccount+"&placeid="+placeId;
 		}else{
 			url = url + "?u="+u+"&uu="+uu+"&placeid="+placeId;
 		}
 	}
 	
 	window.open(url,'','');
 }
 
 /**
  * 新定制页
  */
 function addNewOrder(mdmcid,placeId){
 	var userAccount = GetQueryString("userAccount");
 	//新版定制页url
 	//var url = "http://my.12530.com/newchannel/order/"+mdmcid+"/1/"+u+"/"+uu+"/_/_/"+placeId+"/order.htm";
 	//旧定制页url
 	var url = "http://my.12530.com/newchannel/orderTone/"+mdmcid+"/1/"+u+"/"+uu+"/-/_/order.htm?placeid="+placeId;
 	//var url = "http://my.12530.com/newchannel/listion/"+mdmcid+"/"+u+"/"+uu+"/_/_/"+placeId+"/listion.htm";
 	if(userAccount!=null && userAccount!="" && userAccount!="null"){
 		//window.open("http://my.12530.com/newchannel/order/" + mdmcid +'/1/'+u+'/' + uuId +'/-/-/_/order.htm?userAccount='+userAccount,'','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 		//window.open(url + '?userAccount='+userAccount,'listion','width=401,height=450,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 		//打开旧定制页地址
 		window.open(url + '&userAccount='+userAccount,'listion','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 	}else{
 		//window.open("http://my.12530.com/newchannel/order/" + mdmcid +'/1/'+u+'/' + uuId +'/-/-/_/order.htm','','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 		//window.open(url,'listion','width=401,height=450,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 		//旧定制页地址
 		window.open(url,'listion','width=640,height=460,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes');
 	}
 }