function vod() {
};

function $(id){
	return document.getElementById(id);
}

//打开mobie view
function mobieView(channel,userid) {
	window.open('mobile_emulator.php?channel='+ channel+"&userid="+userid,'mobieView','resizable=no,width=257,height=330,left = 412,top = 359,menubar=no,status=no,toolbar=no,scrollbars=no,location=no')
}
/*
function openrule() {
	window.open("reg_rules.html","moslike.com","resizable=no,width=350,height=400,left = 412,top = 200,menubar=no,status=no,toolbar=no,scrollbars=yes,location=no");
}
*/
function mobieView2(channel) {
	window.open('reg_rules.html','mobieView','resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,location=no')
}

//取得url中的变量值
var LocString=String(window.document.location.href);
function _GET(str){
    var rs=new RegExp("(^|)"+str+"=([^\&]*)(\&|$)","gi").exec(LocString),tmp;
    if(tmp=rs)return tmp[2];
    return null;
}

//改变url的变量值
function _SET(source,value) {
	var r, re;  
	re = /limit=(.*)/ig; 
	r = source.replace(re, "limit="+value);
	return r;
}

/* cookies的处理函数 begin */
function getCookie(s,autoDecode){
	var g=document.cookie.match(new RegExp("(?:;\\s|^)"+s+"=(.*?)(?:;|$)","ig"));
	if(g===null) return "";
	r=RegExp.$1;

	if(!autoDecode) return r;
	if(r.indexOf("%")!=-1) return decodeURIComponent(r);
	return r;
};
function setCookie(k,v,timeDelta,domain){
	timeDelta=timeDelta||0;
	var d=new Date();
	d.setTime(d.getTime()+timeDelta);
	document.cookie=k+"="+v+";"+(timeDelta?" ;path=/;expires="+d.toGMTString():"")+(domain?" ;domain="+domain:"");
};
/* cookies的处理函数 end */

navHover = function() { 
var lis = document.getElementById("navmenu").getElementsByTagName("LI"); 
for (var i=0; i<lis.length; i++) { 
lis[i].onmouseover=function() { 
this.className+=" iehover"; 
} 
lis[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp(" iehover\\b"), ""); 
} 
} 
} 
if (window.attachEvent) window.attachEvent("onload", navHover);

//nav menu
function change(obj,img,cur) {
	if(cur!=1){
		/*document.getElementById(obj).src="images/menu/"+img;*/
		document.getElementById(obj).src="images/header/"+img;
	}
}

//feed show & hide 
function show(id){
	if(document.getElementById(id).style.display==""){
		document.getElementById(id).style.display = "none";
	} else {
		document.getElementById(id).style.display = "";
	}
}

/**
 *	Ajax封装类
 *
 *	
 */


function ajaxObject() {
	/*
		gReturnMessage：返回内容类型，XML|TEXT
		targetArea：目标区域ID或对象
		URL：提交的地址
		dateVal：POST提交的提交参数
		actionMessage：提示框中的提示内容
		returnMessage：处理成功返回的内容
		doResponseMethod：处理方法
	*/
	this.objType = "POST";
	this.gReturnMessage = "TEXT";
	this.targetArea = "";
	this.URL = "";
	this.dateVal = "";
	this.actionMessage = "";
	this.returnMessage = "";
	this.doResponseMethod = "";
	this.xmlreq = false;
	this.returnMessageText ="";
	this.returnMessageXML = "";
	
	
	
	/*右边内容的类型 control.js */
	this.pageType = "";

	this.newXMLHttpRequest = function(){
		
		if (window.XMLHttpRequest) {
			try {
				xmlreq = new XMLHttpRequest();
			} catch (e1) {
				alert("HTTP error ");
			}
		} else {
			if (window.ActiveXObject) {
				try {
					xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch (e1) {
					try {
						xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
					}
					catch (e2) {
						xmlreq = false;
					}
				}
			}
		}
		return xmlreq;
	}
	
	/*
	actionMessage 提示内容框的内容
	*/
	this.getReadyStateHandler = function (xmlreq, obj) {
		/*(xmlreq, responseXmlHandler, gReturnMessage, targetArea, URL, actionMessage) {*/
		return function () {
			if (xmlreq.readyState == 4) {
				if (xmlreq.status == 200) {
					if(xmlreq.responseText == "-100") {
						top.location.reload();
					}
					if (obj.gReturnMessage == "TEXT") {	
						obj.returnMessage = xmlreq.responseText.toString();
						obj.returnMessageText = xmlreq.responseText;
						obj.returnMessageXML = xmlreq.responseXML;
						obj.doResponseMethod(obj);									
					} else {	

						if(document.all){
							var xmlDomObject = xmlreq.responseXML;
						} else {
							var xmlDomObject = new DOMParser().parseFromString(xmlreq.responseText, "text/xml");
						}

						obj.returnMessage = xmlDomObject; 
						obj.returnMessageText = xmlreq.responseText;
						obj.returnMessageXML = xmlDomObject;
						obj.doResponseMethod(obj);							
					}
					if(document.getElementById("ajaxLoading")) {
						document.getElementById("ajaxLoading").style.display="NONE";
					}
				} else {					
					/*if(obj.objType == "GET") {
						alert(obj.objType);
						this.ajaxGetDate(obj);
					} else if(obj.objType == "POST") {
						alert(obj.objType);
						this.ajaxPostDate(obj);
					} else{
						alert(xmlreq.status);
					}*/
					//return false;
					//alert("HTTP error " + xmlreq.status + ": " + xmlreq.statusText+"："+obj.URL);
				}
			} else {
				if(document.getElementById("ajaxLoading")) {
					document.getElementById("ajaxLoading").style.display="";	
				}
			}
		};
	}

	/*get方式取得数据*/
	this.ajaxGetDate = function(obj) {	
		/*URL, processRequest, targetArea , gReturnMessage, actionMessage*/
		//alert("try get");
		if(document.getElementById("ajaxLoading")) {
			document.getElementById("ajaxLoading").style.display="";	
		}
		obj.objType = "GET";	
		obj.xmlreq = obj.newXMLHttpRequest();	
		obj.xmlreq.onreadystatechange = obj.getReadyStateHandler(obj.xmlreq, obj);
		obj.xmlreq.open("GET", obj.URL, true);
		obj.xmlreq.send(null);
		delete (obj.xmlreq);
	}

	/*post方式取得数据*/
	this.ajaxPostDate = function(obj) {	
		if(document.getElementById("ajaxLoading")) {
			document.getElementById("ajaxLoading").style.display="";
		}
		obj.objType = "POST";
		obj.xmlreq = obj.newXMLHttpRequest();	
		obj.xmlreq.onreadystatechange = obj.getReadyStateHandler(obj.xmlreq, obj);
		obj.xmlreq.open("POST", obj.URL, true);	
		obj.xmlreq.setRequestHeader("Method", "POST " + obj.URL + " HTTP/1.1");
		obj.xmlreq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		obj.xmlreq.setRequestHeader("Cache-Control", "no-cache");
		obj.xmlreq.setRequestHeader("Pragma", "no-cache");
		//alert(obj.doResponseMethod);
		obj.xmlreq.send(obj.dateVal);
		delete (obj.xmlreq);
	}
	

	/*内容插入页面中*/
	this.dataInsertPage = function (obj) {
	    if(obj.targetArea) {
    		if(document.getElementById("ajaxLoading")) {	
				document.getElementById("ajaxLoading").style.display="NONE";
			}//调换了位置，即使<script>有问题也会隐掉ajax

		    var regexp1 = /<script(.|\n)*?>(.|\n|\r\n)*?<\/script>/ig;
    		var regexp2 = /<script(.|\n)*?>((.|\n|\r\n)*)?<\/script>/im;
    		
    		var message = obj.returnMessage;
			//alert(message);
    		/* draw the html first */
    		var returnMessage = message.replace(regexp1, "");
    		document.getElementById(obj.targetArea).innerHTML = returnMessage;
    		var result = message.match(regexp1);
    		if (result) {
    			for (var i = 0; i < result.length; i++) {
    				var realScript = result[i].match(regexp2);
					//alert(obj.targetArea);
    				_executeScript(realScript[2], obj.targetArea);
    				/* Note: do not try to write more than one <script> in your view.*/
    				/* break;  process only one script element */
    			}
    		}
    		document.getElementById(obj.targetArea).style.display="";
		} else {
			if(document.getElementById("ajaxLoading")) {	
				document.getElementById("ajaxLoading").style.display="NONE";
			}
		    return true;
		}
   		if(document.getElementById("ajaxLoading")) {	
			document.getElementById("ajaxLoading").style.display="NONE";
		}

	}

	/*get方式取得数据并插入页面*/
	this.ajaxGetDateToPage = function (obj) {
		obj.doResponseMethod = obj.dataInsertPage;
		obj.gReturnMessage = "TEXT";
		obj.ajaxGetDate(obj);
	}
	/*Post方式取得数据并插入页面*/
	this.ajaxPostDateToPage = function (obj) {	
		obj.doResponseMethod = obj.dataInsertPage;
		obj.gReturnMessage = "TEXT";
		obj.ajaxPostDate(obj);
	}

	/*处理element*/
	this.replaceElement = function (mtObj) {	
		var xmldoc = mtObj.returnMessage;
		//alert(mtObj.returnMessageText);
		if(xmldoc.getElementsByTagName("elements").length > 0) {	
			var rowNames = xmldoc.getElementsByTagName("elements");
			for(var ri=rowNames[0].childNodes.length-1; ri>=0; ri--) {	
				if(rowNames[0].childNodes[ri].nodeType == 1) {
					elementValue = rowNames[0].childNodes[ri].firstChild.nodeValue;
					elementID = rowNames[0].childNodes[ri].getAttribute("elementID");
					elementType = rowNames[0].childNodes[ri].getAttribute("elementType");
					if(document.getElementById(elementID)) {
						if(elementType == "innerText") {
							if(navigator.appName.indexOf("Explorer") > -1){
								document.getElementById(elementID).innerText = elementValue;
							} else{
								document.getElementById(elementID).textContent = elementValue;
							}
						} else {
							
							if(document.getElementById(elementID)) {
								if(document.getElementById(elementID).type == "hidden" || document.getElementById(elementID).type == "text"  || document.getElementById(elementID).type == "textArea") {
									document.getElementById(elementID).value = elementValue;
								} else {
									document.getElementById(elementID).innerHTML = elementValue;
								}
							}
						}
					}
				}
			}			
		}
		if(document.getElementById("ajaxLoading")) {
			document.getElementById("ajaxLoading").style.display="NONE";	
		}
	}
}

/*get方式取得数据并插入页面*/
function ajaxGetDateToPage(URL, targetArea, actionMessage) {
	aoNew = new ajaxObject();
	aoNew.URL = URL;
	aoNew.targetArea = targetArea;
	aoNew.doResponseMethod = aoNew.dataInsertPage;
	aoNew.actionMessage = aoNew.actionMessage;
	aoNew.ajaxGetDate(aoNew);	
}

//Post方式取得数据并插入页面
function ajaxPostDateToPage(URL, dateVal, targetArea, actionMessage) {	
	aoNew = new ajaxObject();
	aoNew.URL = URL;
	aoNew.dateVal = dateVal;
	aoNew.targetArea = targetArea;	
	aoNew.doResponseMethod = aoNew.dataInsertPage;
	aoNew.actionMessage = aoNew.actionMessage;
	aoNew.ajaxPostDate(aoNew);
}

/*get方式取得数据*/
function ajaxGetDate(URL, responseMethod, returnMessage) {
	aoNew = new ajaxObject();
	aoNew.URL = URL;
	aoNew.targetArea = null;
	aoNew.doResponseMethod = responseMethod;
	aoNew.gReturnMessage = returnMessage;
	aoNew.actionMessage = null;
	aoNew.ajaxGetDate(aoNew);
	
}
//Post方式取得数据
function ajaxPostDate(URL, dateVal, responseMethod, returnMessage) {	
    aoNew = new ajaxObject();
	aoNew.URL = URL;
	aoNew.dateVal = dateVal;
	aoNew.targetArea = null;	
	aoNew.doResponseMethod = responseMethod;
	aoNew.gReturnMessage = returnMessage;
	//alert(aoNew.doResponseMethod);
	aoNew.ajaxPostDate(aoNew);
}

/*处理element*/
function ajaxReplaceElement(URL, dateVal) {
	aoNew = new ajaxObject();
	aoNew.URL = URL;
	aoNew.gReturnMessage = "XML";
	aoNew.dateVal = dateVal;
	aoNew.doResponseMethod = aoNew.replaceElement;
	aoNew.ajaxPostDate(aoNew);
}


/* popup */

function addEvent(el, evname, func) {
	if(typeof func=="string"){
		func=new Function('eval("'+func+'");');
	}

	if (el.attachEvent) { // IE
		el.attachEvent("on" + evname, func);
	} else if (el.addEventListener) { // Gecko / W3C
		el.addEventListener(evname, func, true);
	} else {
		el["on" + evname] = func;
	}
};

//执行队列
function exec(a,o){
	for(var i=0;i<a.length;i++){
		switch(typeof a[i]){
			case "string":
			eval(a[i]);break;
			default:
			if (o)	a[i].call(o);
			else	a[i].call();
		}
	}
}

//翻页的坐标偏移
function realOffset (element) {
	var valueT = 0, valueL = 0;
	do {
		valueT += element.scrollTop  || 0;
		valueL += element.scrollLeft || 0;
		element = element.parentNode;
	} while (element);
	return [valueL, valueT];
}

//dom的坐标
function cumulativeOffset(element) {
	var valueT = 0, valueL = 0;
	do {
		valueT += element.offsetTop  || 0;
		valueL += element.offsetLeft || 0;
		element = element.offsetParent;
	} while (element);
	return [valueL, valueT];
}


//内容区高度
function innerSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth||0;
		myHeight = document.body.clientHeight||0;
	}
	return [myWidth,myHeight];
}

//弹出操作的基本类
function popup(name,zindex){
	//id
	var _i=this;
	this._name=name;
	this._zindex=zindex||100;
	this._containerId=name+"_container";
	this._bgId=name+"_bg";
	this._bgHTML='<div ID="'+this._bgId+'" STYLE=" top:0px; margin-right: auto; margin-left: auto; background:#444444; FILTER: alpha(opacity=40); -moz-opacity: 0.4; POSITION: absolute; Z-INDEX:'+this._zindex+'; border: 0px; width:0px; height:0px;" frameborder="0" scrolling="no"></div>';//屏蔽层;
	this._boxId=name+"_box";
	this._boxHTML='<div id="'+this._boxId+'" style="display:none; Z-INDEX:'+this._zindex+'; POSITION:absolute;"><div style="width:300px; display:;"><div class="win_wait"><img src="http://htm.wazhua.com/images/loading.gif" align="absmiddle" />数据载入中，请稍等...</div></div></div>';
	
	//setTimeout("resetZhegaoLayer('"+this._bgId+"');",1500);	
	//距离
	this._offsetTop=150;

	//observer
	this._onBO=[];
	this._open=[];
	this._onAO=[];
	this._onBC=[];
	this._close=[];
	this._onAC=[];

	this._intPos=[];
	this._intId=null;

	//方法
	this.openDiv=function(){
		exec(this._onBO,this);
		exec(this._open,this);
		exec(this._onAO,this);
	};

	this.closeDiv=function(){
		exec(this._onBC,this);
		exec(this._close,this);
		exec(this._onAC,this);
	};

	//基本方法的默认实现
	this._open=[
	function(){
		//冲突时自动清除
		if($(this._boxId)) this.closeDiv();
	},

	function(){
		//添加容器
		if(!$(this._containerId)){
			var c=document.createElement("div");
			c.setAttribute("id",this._containerId);
			c.style.left="0";
			c.style.width="0px";
			c.style.float="left";
			document.body.appendChild(c);
		}

		//添加遮盖层
		$(this._containerId).innerHTML+=this._bgHTML;
		
		//半秒后重新设定遮盖层
		

		//添加内容层
		$(this._containerId).innerHTML+=this._boxHTML;

		//启动定位器
		/*
		this._intId=window.setInterval(function(){
			exec(_i._intPos,_i);
		},100);
		*/
		this._iniId=exec(_i._intPos,_i);
	}
	];

	this._close=[
	function(){
		$(this._containerId).innerHTML="";
		$(this._containerId).parentNode.removeChild($(this._containerId));
		try{window.clearInterval(this._intId);}catch(e){}
	}
	];

	this._onAC=[
	function(){//清空数据
		this._onAO=[];
		this._onBC=[];
		this._intId=null;
		this._intPos=[this._intPos[0]];
		this._offsetTop=70;
	}
	];

	this._intPos=[
	function(){
		//屏蔽层定位
		if($(this._bgId)==null)	return false;
		var bg=$(this._bgId);

		bg.style.left=0;
		bg.style.top=0;
		//bg.style.width=innerSize()[0]+"px";
		//bg.style.height=innerSize()[1]+"px";
		//bg.style.width	= (document.body.offsetLeft+document.body.scrollWidth)+"px"; 
		//bg.style.height	= (document.body.offsetTop+document.body.scrollHeight)+"px"; 
		bg.style.width		= 0;
		bg.style.height		= 0;
		//内容层定位
		if($(this._boxId)==null)	return false;
		var p=realOffset(document.body);
		var box=$(this._boxId);
		box.style.width=(box.firstChild.style?box.firstChild.style.width.replace("px",""):"0")+"px";
		var w=parseInt(box.style.width.replace("px","")||"0");

		box.style.left=(p[0]+(innerSize()[0]-w)*0.5)+"px";
		box.style.top=(p[1]+this._offsetTop)+"px";

		//显示
		box.style.display="inline";
		box.style.visibility="visible";
	}
	];
}

//信息提示框

var info_popup=new popup("info_popup",150);

function show_info_popup(info, extraInfo, infoType, onBeforeClose){
	//info：HTML信息
	//infoType：1:错误;2:正确
	//extraInfo： 详细信息

	if (document.all) {
		if (document.readyState!="complete") {
			if ($("ajaxLoading")) {
				$("ajaxLoading").style.display="";
			}
			setTimeout(function(){
				show_info_popup(info, extraInfo, infoType, onBeforeClose);
			},10);
			return;
		}
	}

	if ($("ajaxLoading")) {
		$("ajaxLoading").style.display="none";
	}
	
	if(!infoType){
		if(info.search(/^e:/ig)!=-1){
			info=info.replace("e:","");
			infoType=1;
		}else{
			infoType=2;
		}
	}

	if($(info_popup._boxId)){
		info_popup.closeDiv();//一旦冲突，关闭先出现的信息框
	}

	if($(confirm_popup._boxId)){
		confirm_popup.closeDiv();//一旦冲突，关闭先出现的选择框
	}

	if(onBeforeClose){
		info_popup._onBC.push(onBeforeClose);
	}

	switch(infoType){

		case 1://错误提示
		info_popup._bgHTML='<div ID="'+info_popup._bgId+'" STYLE=" top:0px; margin-right: auto; margin-left: auto; background:#e9e9e9; FILTER: alpha(opacity=40); -moz-opacity: 0.4; POSITION: absolute; Z-INDEX:'+info_popup._zindex+'; border: 0px; width:0px; height:0px;"></div>'

		info_popup._boxHTML='<div id="'+info_popup._boxId+'" style="display:none; width:300px; Z-INDEX:'+info_popup._zindex+'; POSITION:absolute; font-size:14px;background: #ffc url(http://htm.wazhua.com/images/t_ok.gif) no-repeat 10px 10px;border: #F4B907 1px solid;padding: 10px 0 10px 30px;color:#B34502;"><div style="width:300px;"> <div class="close" style="padding-right:11px;float:right;"><a id="'+info_popup._boxId+'_closeCross" href="javascript:void(0);" onclick="info_popup.closeDiv()" style="color:red;font-size:12px;z-index:100;">[关闭]</a></div><div style="margin-right:25px;"><strong><span id="'+info_popup._boxId+'_info'+'">'+info+'</span></strong><span id="'+info_popup._boxId+'_extraInfo'+'" style="display:'+(extraInfo?"inline":"none")+'"><br /><br /><span class="lihe18">'+extraInfo+'</span><br /></span></div></div></div>';

		break;

		case 2://成功提示

		info_popup._bgHTML='<div ID="'+info_popup._bgId+'" STYLE=" top:0px; margin-right: auto; margin-left: auto; background:#e9e9e9; FILTER: alpha(opacity=40); -moz-opacity: 0.4; POSITION: absolute; Z-INDEX:'+info_popup._zindex+'; border: 0px; width:0px; height:0px; display:'+(extraInfo?"inline":"none")+';"></div>';

		info_popup._boxHTML='<div id="'+info_popup._boxId+'" style="display:none; width:300px; Z-INDEX:'+info_popup._zindex+'; POSITION:absolute; font-size:14px;background: #E6FFE6 url(http://htm.wazhua.com/images/r_ok.gif) no-repeat 10px 10px;border: #00BE00 1px solid;font-size:14px;padding: 10px 0 10px 30px;color:green;"><div style="width:300px;"> <div class="close" style="padding-right:11px;float:right;"> <a id="'+info_popup._boxId+'_closeCross" href="javascript:void(0);" onclick="info_popup.closeDiv()" style="color:red;font-size:12px;z-index:100;">[关闭]</a></div> <div style="margin-right:25px;"><strong><span id="'+info_popup._boxId+'_info'+'">'+info+'</span></strong><span id="'+info_popup._boxId+'_extraInfo'+'" style="display:'+(extraInfo?"inline":"none")+';"><br /><br /><span class="lihe18">'+extraInfo+'</span><br /></span></div></div></div>';
		
		/*
		if(!extraInfo){
			info_popup._onAO.push(function(){
				info_popup._timeoutId=window.setTimeout(function(){
					info_popup.closeDiv();
				},3500);
			});
		}
		*/

		break;

		default:
		info_popup.closeDiv();
		return false;
	}

	info_popup._intPos.push(function(){
		if($(this._boxId+"_closeCross")){
			$(this._boxId+"_closeCross").onclick=function(){info_popup.closeDiv()};
			$(this._boxId+"_closeCross").focus();
		}
		info_popup._intPos=[info_popup._intPos[0]];
	});

	info_popup._onAC.push(function(){
		if(info_popup._timeoutId){
			try{
				window.clearTimeout(info_popup._timeoutId);
			}catch(e){
				info_popup._timeoutId=null;
				info_popup._onAC=[];
			}
		}
	});

	info_popup.openDiv();
}


//确认框
var confirm_popup=new popup("confirm_popup",450);

function show_confirm_popup(info, yesMethod , noMethod, title){
	//info：提示信息
	//yesMethod：yes选择的执行方法
	//noMethod：no选择的执行方法
	//title：自定义标题

	if($(confirm_popup._boxId)){
		confirm_popup.closeDiv();//一旦冲突，关闭先出现的选择框
	}

	if($(info_popup._boxId)){
		info_popup.closeDiv();//一旦冲突，关闭先出现信息的选择框
	}

	confirm_popup._yes=[function(){confirm_popup.closeDiv()}];
	confirm_popup._no=[function(){confirm_popup.closeDiv()}];

	if(yesMethod) confirm_popup._yes.push(yesMethod);
	if(noMethod) confirm_popup._no.push(noMethod);

	title=title||'channel';

	//confirm_popup._boxHTML='<div id="'+confirm_popup._boxId+'" style="display:none; width:300px; Z-INDEX:'+confirm_popup._zindex+'; POSITION:absolute; background-color:#fff; border:1px #5395F0 solid;"><div style="width:300px;"><div class="win_top" style="width:300px;"><div class="win_title">'+title+'</div><div class="close" style="padding:11px;"><a href="javascript:void(0);" onclick="confirm_popup.closeDiv()" style="color:red;font-size:12px;z-index:100;">[关闭]</a></div></div><div class="win_con">'+info+'<center style="padding:12px 0 8px;"><input id="'+confirm_popup._boxId+'_yes" type="button" value=" 确定 " class="btn4" style="width:60px;" /><input id="'+confirm_popup._boxId+'_no" type="button" value=" 取消 "  class="btn4" style="width:60px;margin-left:100px;"/></center></div></div>';

	confirm_popup._boxHTML='<div id="'+confirm_popup._boxId+'" style="display:none; width:201px; Z-INDEX:'+confirm_popup._zindex+'; POSITION:absolute;"><div class="pop_head"><span class="pop_title">'+ title +'</span><span class="pop_close"><a href="javascript:void(0);" onclick="confirm_popup.closeDiv()"<img src="../images/pop/close.gif" border="0"/></a></span></div><div class="pop_con"><span class="pop_icon"><img src="../images/pop/right.gif" border="0"/></span><span class="pop_text">'+ info +'</span><div class="pop_btn_div"><a href="javascript:void(0);" id="'+confirm_popup._boxId+'_yes"><img src="../images/pop/confirm.gif" border="0"/></a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="confirm_popup.closeDiv()"<img src="../images/pop/cancel.gif" border="0"/></a></div></div><div class="pop_bottom"></div></div>';

	confirm_popup._intPos.push(function(){
		addEvent($(confirm_popup._boxId+'_yes'),'click',function(){exec(confirm_popup._yes,confirm_popup)});
		addEvent($(confirm_popup._boxId+'_no'),'click',function(){exec(confirm_popup._no,confirm_popup)});
		$(confirm_popup._boxId+'_yes').focus();
		confirm_popup._intPos=[confirm_popup._intPos[0]];
	});

	confirm_popup.openDiv();
}


function producShow() {
	window.open('produce_show.php','mobieView','resizable=no,width=768,height=427,left = 380,top = 359,center=yes,menubar=no,status=no,toolbar=no,scrollbars=no,location=no')
}

function buyNote() {
	window.open('buy_note.php','mobieView','resizable=no,width=514,height=427,left = 380,top = 359,center=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,location=no')
}
function buyNote1() {
	window.open('buy_note1.php','mobieView','resizable=no,width=514,height=427,left = 380,top = 359,center=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,location=no')
}
