var IndexUrl="http://so.coal.com.cn/coal/default.aspx";var Message=null;var NavigationDefaultIndex="";function isExitsVariable(b){try{if(typeof(b)=="undefined"){return false}else{return true}}catch(a){}return false}function getUrlParam(a){var c=new RegExp("(^|&)"+a+"=([^&]*)(&|$)");var b=window.location.search.substr(1).match(c);if(b!=null){return unescape(b[2])}return null}function loginInit(){var b=location.hostname.toLowerCase();var a=$.trim(b.substring(0,b.indexOf(".")));if(a=="www"){var c="/u2015.aspx?v17="+Math.random();$.ajax({url:c,cache:false,success:function(d){$("#ulogin").html(d)}})}else{var c="http://www.coal.com.cn/u2015.aspx?callback=?";$.getJSON(c,function(d){$("#ulogin").html(d.html)})}}$(document).ready(function(){$("#fwzx,#kfzx,#gzh").hover(function(){$(this).find("p").show()},function(){$(this).find("p").hide()});$("#wmap,#mysite").hover(function(){$(this).find("div").show()},function(){$(this).find("div").hide()});var b=function(d){$(".nav17 div.nlink ul li").eq(d).addClass("sel").siblings().removeClass("sel")};try{if(NavDefaultIndex){b(NavDefaultIndex);return}}catch(a){}var c=location.pathname.toLowerCase();if(c=="/"){b(0)}else{if(c.indexOf("/gp")>-1||c.indexOf("/buy")>-1){b(1)}else{if(c.indexOf("/lc")>-1){b(2)}else{if(c.indexOf("/rz")>-1){b(3)}else{if(c.indexOf("/news")>-1){b(4)}else{if(c.indexOf("/qy")>-1){b(6)}else{if(c.indexOf("/coke")>-1){b(5)}else{if(c.indexOf("/zs")>-1){b(6)}else{if(c.indexOf("/help")>-1){b(7)}else{$("#nav17 nlink li").removeClass("sel")}}}}}}}}}});function NavigationDefaultIndexSelected(a){$("#Top .Navigation .link ul li").eq(a).addClass("Selected").siblings().removeClass("Selected");$("#Top .Subnavigation div").eq(a).removeClass("Hide").siblings().addClass("Hide")}function WebSearch(){var b=$("#Top div.Search div.right div.righttop a.Selected").index();if(b==0){var a="/buy/gongqiulist.aspx?page=1";a+="&Type="+$("#CoalType").val();a+="&ZhuangHuoDiAreaIndex="+$("#dpSoProvince").val();a+="&MeiZhong="+escape($("#MeiZhong").val());a+="&LiDu="+escape($("#LiDu").val());a+="&LiDutext="+escape($("#LiDu").find("option:selected").text());a+="&FaReLiang="+$("#FaReLiang").val();window.open(a,"_blank")}else{var c=escape($("#txtSearch").val());if(c==""){alert("������Ҫ�����Ĺؼ��ʣ�");return false}var d=IndexUrl+"?wd="+c+"&url="+location.href;window.open(d,"_blank")}return false}function GetReg(){var a=location.pathname.toLowerCase();if(a.indexOf("member_wrong")>-1){location.href="http://www.coal.com.cn/passport/register.aspx?url=http://www.coal.com.cn"}else{location.href="http://www.coal.com.cn/passport/register.aspx?url="+parent.window.location.href}}function uLogin(){location.href="http://www.coal.com.cn/passport/login.aspx?"+location.href}function BuyMessage(){Message.ShowMessageBox("������ʾ","�Բ�������û������Ϊ��ʽ��Ա���޷��鿴����Ϣ,�벦��绰��010-63330178-809������������","")}function weblogin(){location.href="http://www.coal.com.cn/passport/login.aspx?url="+location.href}function uvip(){location.href="http://buy.coal.com.cn/TradingCenter/user/vipAuth.aspx?"+location.href}function fnLogin2011(){if(__bIsCallBack){__bIsCallBack=false;if(Message==null){GetMessageBox()}if(document.getElementById("txtWebUserName").value.length<1){Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","�������������û�����");_getObj("txtWebUserName").focus();__bIsCallBack=true;return false}if(document.getElementById("txtWebPassWord").value.length<1){Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","���������������룡");_getObj("txtWebPassWord").focus();__bIsCallBack=true;return false}else{Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","�˺ŵ�¼�����Ժ�......
");var a=new ParamClass();a.SetValue("UserName",_getObj("txtWebUserName").value);a.SetValue("Password",_getObj("txtWebPassWord").value);a.SetValue("BackUrl",fnGetBackUrl());return;fnCallEx("UserSubmit",a,"/transfer.aspx",fnSubmitCallBack2011)}}return false}function fnExit(){parent.location.href="http://www.coal.com.cn/quit.aspx?BackUrl="+parent.location.href}function uExit(){parent.location.href="http://www.coal.com.cn/quit.aspx?BackUrl="+parent.location.href}function GetPageUrl(){if(parent.document.getElementById("ifrUserInfo")!=null){return parent.location.href}return window.location.href}var Userdialog;function fnLogin20112(){if($.trim($("#txtmWebUserName").val())==""){Userdialog=art.dialog({title:"ϵͳ��ʾ",content:'
�������������û�����
',height:70,lock:true,fixed:true,time:2});$("#txtmWebUserName").focus();return false}if($.trim($("#txtmWebPassWord").val())==""){Userdialog=art.dialog({title:"ϵͳ��ʾ",content:'
���������������룡
',height:70,lock:true,fixed:true,time:2});$("#txtmWebUserName").focus();return false}else{Userdialog=art.dialog({title:"ϵͳ��ʾ",content:'
�û���¼�����Ժ�...
',height:60,lock:true,fixed:true,cancel:false,dblclose:false});var a=new ParamClass();a.SetValue("UserName",$("#txtmWebUserName").val());a.SetValue("Password",$("#txtmWebPassWord").val());if($("#txtmWebUserName").attr("ntype")){a.SetValue("ntype",$("#txtmWebUserName").attr("ntype"))}if(gourl!=null&&gourl!=""){a.SetValue("BackUrl",gourl)}else{a.SetValue("BackUrl",GetPageUrl())}fnCallEx("UserSubmit",a,"/transfer.aspx",function(b){if(b=="1"){Userdialog.content('
������û�����
').time(2)}else{if(b=="2"){Userdialog.content('
�Բ��𣬴��û�������
').time(2)}else{if(b=="3"){Userdialog.content('
��ʶ�IJ���
').time(2)}else{if(b=="0"){Userdialog.content('
�Բ�������ǰ�����ߣ�����ͬʱ��¼���������Ժ�����
').time(2)}else{if(b=="-1"){Userdialog.content('
ú̿���˻�δ������ϸ��Ϣ���ܵ�¼
').time(6)}else{$.cookie("uRecord",$("#txtmWebUserName").val(),{path:"/",domain:"coal.com.cn"});if(gourl!=null){window.location.href=gourl}else{window.location.href="/"}}}}}}})}return false}function fnSubmitCallBack2011(b){__bIsCallBack=true;if(b=="1"){Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","������û�����",null)}else{if(b=="2"){Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","�Բ��𣬴��û������ڣ�",null)}else{if(b=="3"){Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","��ʶ�IJ���",null)}else{if(b=="0"){Message.ReSetSize(300,200);Message.ShowMessageBox("��Ϣ��ʾ","�Բ�������ǰ�����ߣ�����ͬʱ��¼���������Ժ�����",null)}else{var a=new ParamClass(b);window.location.href=a.GetValue("UrlStr")}}}}}var onNewsCommentsClick=false;function NewsCommentsClick(){if(!onNewsCommentsClick){onNewsCommentsClick=true;_getObj("txtNewsComments").value=""}}function YunShuSearch(){var a="/buy/YunShuList.aspx?page=1";if($("#YunShuTypeInfo").val()!=""){a+="&TypeId="+$("#YunShuTypeInfo").val()}if(document.getElementById("YunShuQiShiDi").selectedIndex!=0){a+="&ZhuangCheDiAreaIndex="+document.getElementById("YunShuQiShiDi").selectedIndex}if(document.getElementById("YunShuMuDiDi").selectedIndex!=0){a+="&ZhuangCheDiAreaIndex="+document.getElementById("YunShuMuDiDi").selectedIndex}if($("#YunShuFangShi").val()!=""){a+="&YunShuFangShi="+$("#YunShuFangShi").val()}location.href=a}function NewsCommentsAdd(b){if(Message==null){GetMessageBox()}if(!onNewsCommentsClick){Message.ShowMessageBox("��Ϣ��ʾ","���۵ij����� 2 - 1000 ����������!","_getObj('txtNewsComments').focus();");return}_getObj("txtNewsComments").value=_getObj("txtNewsComments").value.replace(/['|&<>`!#$=\\+\"]/g,"");if(_getObj("txtNewsComments").value.length>2&&_getObj("txtNewsComments").value.length<1000){var a=new ParamClass();a.SetValue("ArticleID",b);a.SetValue("Content",_getObj("txtNewsComments").value);a.SetValue("ImageCode","1");fnCallEx("NewReview",a,"/transfer.aspx",SendReviewCallBack)}else{Message.ShowMessageBox("��Ϣ��ʾ","���۵ij����� 2 - 1000 ����������!","_getObj('txtNewsComments').focus();")}}function SendReviewCallBack(a){if(a=="1"){Message.ShowMessageBox("��Ϣ��ʾ","����Ҫ�Ժ򼸷��Ӳ��ܿ������ύ�����ݣ�ú̿���༭�ṩ24Сʱ������˷���","_getObj('txtNewsComments').value='';")}else{if(a=="nologin"){Message.ShowMessageBox("��Ϣ��ʾ","������¼���ڷ������ۣ�","_getObj('Top').focus();")}else{Message.ShowMessageBox("��Ϣ��ʾ",a,"_getObj('txtNewsComments').focus();")}}}var NewsMessageClick=false;function onNewsMessageClick(){if(!NewsMessageClick){NewsMessageClick=true;_getObj("txtNewsMessage").value=""}}function NewsMessage(){_getObj("txtNewsMessage").value=fnReplaceBadStr(_getObj("txtNewsMessage").value);if(_getObj("txtNewsMessage").value.length>5&&_getObj("txtNewsMessage").value.length<1000){var a=new ParamClass();a.SetValue("Content",_getObj("txtNewsMessage").value);var b=Call("NewAdvice",a,"���ʧ��","/transfer.aspx");if(b=="OK"){alert("��л���Ա�վ������������Э������Ϊ������");_getObj("txtNewsMessage").value=""}}else{alert("����д�������ݣ�");_getObj("txtNewsMessage").focus()=""}return}function NewsViews(a){alert(a)}function GetCheckBoxValues(c){var a=$("input[name='"+c+"']:checked");var d=",";for(var b=0;b���ݼ�������ȴ�...',width:500,height:60,lock:true,fixed:true});var a={};a.fname="ShowContact";a.ID=b.ID;a.TYPE=b.TYPE;a.url=location.href;jQuery.post("/ajax.aspx",a,function(e){c.close();if(e=="nologin"){var d='

���ã�������������ƽ̨�Ľ����̣���ע���Ϊ���ǵĽ����̣���ѣ�����ͨ�����ǵij���������֤�󣬿��Բ鿴�ù�����ϵ��ʽ��������Ѿ�������ƽ̨������֤���Ľ����̣����¼��ֱ�Ӳ鿴��ϵ��ʽ��

';dialog=art.dialog({title:"ϵͳ��ʾ",content:d,width:480,height:80,lock:true,fixed:true,button:[{name:"��¼",callback:function(){Buy.Login()},focus:true},{name:"ע��",callback:function(){Buy.eReg(1)},focus:true}]})}else{if(e=="noopen"){dialog=art.dialog({title:"ϵͳ��ʾ",content:"
���ã�����δͨ�����ǵij���������֤�����Եȣ�ͨ����֤����Բ鿴��ϵ��ʽ�����µ�ͷ���ѯ��400-061-6060
",width:550,height:70,lock:true,fixed:true})}else{if(e=="nodata"){dialog=art.dialog({title:"ϵͳ��ʾ",content:"
ϵͳ��æ���Ժ�����...
",width:550,height:70,lock:true,fixed:true})}else{dialog=art.dialog({title:"ϵͳ��ʾ",content:"
"+e+"
",width:550,height:70,lock:true,fixed:true})}}}})};function PUB_DATA(a){var b;switch(a.Code){case"User_XZ":b=[{id:"0",text:"������ҵ"},{id:"4",text:"��Ӫ��ҵ"},{id:"1",text:"������ҵ"},{id:"9",text:"��������"},{id:"11",text:"��ҵ��λ"},{id:"10",text:"�������"},{id:"13",text:"����"}];break}if(a.Val){var c="����";$.each(b,function(d,e){if(e.id==a.Val){c=e.text;return false}});return c}}function movobj(b,c){var a=1000;if($.isNumeric(c)){a=c}$("html,body").animate({scrollTop:$("#"+b).offset().top},a)}(function(a){window.mtw={};mtw.loadbar=function(){a("").attr({rel:"stylesheet",type:"text/css",href:"http://css.coal.org.cn/js/tbar/tbar.css"}).appendTo("head");a.getScript("http://css.coal.org.cn/js/tbar/tbar.js")};mtw.getRandomString=function(c){c=c||32;var b="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678";var d=b.length;var e="";for(i=0;i-1){h=new Date(parseInt(h.replace("/Date(","").replace(")/","").split("+")[0]))}if(d.Language=="cn"){d.Year="��";d.Month="��";d.Day="��";d.Hours="ʱ";d.Seconds="��";d.Minutes="��"}var b=new Date(h);if(!b){return""}if(b==null||b==""){return""}if(isNaN(b.getFullYear())){return""}if(d.DataType=="d"){d.Day=""}else{if(d.DataType=="t"){d.Minutes=""}}var c=d.DataType;if(c=="d"){return b.getFullYear()+d.Year+(b.getMonth()+1)+d.Month+b.getDate()+d.Day}else{if(c=="t"){return b.getHours()+d.Hours+b.getSeconds()+d.Seconds+b.getMinutes()+d.Minutes}else{return b.getFullYear()+d.Year+(b.getMonth()+1)+d.Month+b.getDate()+d.Day+b.getHours()+d.Hours+b.getSeconds()+d.Seconds+b.getMinutes()+d.Minutes}}}catch(f){return""}};mtw.tonumber=function(b,c){if(c==0){return Number(b)}if(!c){c=2}return Number(b).toFixed(c)}})(jQuery);$(document).ready(function(){setTimeout(function(){mtw.loadbar()},0)}); $(document).ready(function(){setTimeout(function(){uInit()},0)});function movtop(){$("html,body").animate({scrollTop:$("#page1").offset().top},1000)}function movobj(a){$("html,body").animate({scrollTop:$("#"+a).offset().top},1000)}function uInit(){var b=location.hostname.toLowerCase();var a=b.substring(0,b.indexOf("."));if(a=="wwww"){var c="/u2015.aspx?w="+Math.random();$.ajax({url:c,cache:false,success:function(d){$("#ulogin").html(d)}})}else{var c="http://www.coal.com.cn/u2015.aspx?callback=?";$.getJSON(c,function(d){$("#ulogin").html(d.html)})}}function ShowIm(a){window.open(a,"popupnav","width=800,height=600,resizable=1,scrollbars=auto,Resizable=no")}var move_scroll=function(a){$("html,body").animate({scrollTop:$("#"+a).offset().top},1000)};function weblogin(){location.href="http://www.coal.com.cn/passport/login.aspx?"+location.href}function GetReg_old(){location.href="http://www.coal.com.cn/zhu_che/register.aspx?url="+location.href}function GetReg(){var a=location.pathname.toLowerCase();if(a.indexOf("member_wrong")>-1){location.href="http://www.coal.com.cn/passport/register.aspx?url=http://www.coal.com.cn"}else{location.href="http://www.coal.com.cn/passport/register.aspx?url="+parent.window.location.href}}function fnExit(){location.href="http://www.coal.com.cn/quit.aspx?BackUrl="+location.href}function GetCheckBoxValues(c){var a=$("input[name='"+c+"']:checked");var d=",";for(var b=0;b0){$(".theme-popover-mask").remove();$(".theme-popover").remove()}Initlogin(a)}function showlogin(d){var b={};if(d){b=d}var c=false;if($("#sname").val()==""){c=true;$("#sname").parent().find("p.msg").html("请输入登录用户名!").show("slow")}if($("#spwd").val()==""){c=true;$("#spwd").parent().find("p.msg").html("请输入登录密码!").show("slow")}if(c){return}$("#sname,#spwd,#syzm").attr("readonly","readonly");$("#slogin").html("正在登录...");var a={};a.fname="ulogin";a.name=$("#sname").val();a.pwd=$("#spwd").val();jQuery.post("/ajax/ajax.aspx",a,function(e){if(e.IsError){$("#slogin").html(" 登 录 ");$("#sname,#spwd,#syzm").removeAttr("readonly","readonly");if(e.Data==6||e.Data==2){$("#simgyzm").attr("src","/use/Image.aspx?type=2&random="+GetRandomNum(1,10000))}$("#slogin").parent().find("p.msg").html(e.Message).show("slow")}else{$(".theme-popover-mask").fadeOut(100);$(".theme-popover").slideUp(200);if(jQuery.isFunction(b.callback)){setTimeout(function(){uInit()},0);b.callback(e)}else{ZENG.msgbox.show("登录成功...",2,2000);setTimeout(function(){location.reload()},200)}}},"json")}function MsgClose(){$(".theme-popover-mask").fadeOut(100);$(".theme-popover").slideUp(200);setTimeout(function(){$(".theme-popover-mask").remove();$(".theme-popover").remove()},200)}function ShowMsg(b){if($(".theme-popover-mask").length>0){$(".theme-popover-mask").remove();$(".theme-popover").remove()}var a={};if(b){a=b}var c='
";c+="
"}else{c+='
';c+='×';c+="
"}c+='
';if(a.body){c+=a.body}c+="
";c+="";c+='
';$("body").append(c);c="";if(a.buttons){if(a.buttons.length>0){$(".theme-popbod").append('
');$.each(a.buttons,function(e,f){var d="btt-"+e;c='';$(".theme-button").append(c);if(f.click){$("#"+d).click(function(){f.click()})}else{$("#"+d).click(function(){MsgClose()})}})}}$(".theme-poptit .close").click(function(){MsgClose()});$(".theme-popover-mask").click(function(){MsgClose()});if(jQuery.isFunction(a.callback)){a.callback()}$(".theme-popover-mask").fadeIn(100);$(".theme-popover").slideDown(200)}(function(a){window.Buy={};Buy.SubString=function(g,e,d){if(!d){d="..."}var h=0;var f="";for(var c=0;c128){h+=2}else{h++}f+=g.charAt(c);if(h>=e){return f+d}}return f};Buy.IntervalTime=function(f){if(!f.StartTime||!f.EndTime){return""}if(f.StartTime.indexOf("Date")>-1){f.StartTime=new Date(parseInt(f.StartTime.replace("/Date(","").replace(")/","").split("+")[0]))}if(f.EndTime.indexOf("Date")>-1){f.EndTime=new Date(parseInt(f.EndTime.replace("/Date(","").replace(")/","").split("+")[0]))}var c=new Date(f.StartTime);var d=new Date(f.EndTime);var e=d.getTime()-c.getTime();var r=Math.floor(e/(12*30*24*3600*1000));var i=e%(12*30*24*3600*1000);var o=Math.floor(i/(30*24*3600*1000));var j=i%(30*24*3600*1000);var g=Math.floor(j/(24*3600*1000));var k=j%(24*3600*1000);var h=Math.floor(k/(3600*1000));var l=k%(3600*1000);var n=Math.floor(l/(60*1000));var m=l%(60*1000);var p=Math.round(m/1000);var q="";if(r>0){q+=r+"年"}if(o>0){q+=o+"月"}if(g>0){q+=g+"天"}if(h>0){q+=h+"小时"}if(q==""){q+=n+"分钟"}return q};Buy.Hashtable=function(c){var d={putappend:false,KeyReset:true};d=MES.VariableSettings(d,c);this.container=new Object();this.put=function(e,f){if(typeof(e)=="undefined"){return false}if(!d.putappend){if(this.contains(e)){if(d.KeyReset){if(f){this.container[e]=""}else{this.container[e]=typeof(f)=="undefined"?null:f}}else{return false}}}if(this.contains(e)){if(typeof(f)!="undefined"){this.container[e]+=f}}else{this.container[e]=typeof(f)=="undefined"?null:f}return true};this.remove=function(e){delete this.container[e]};this.size=function(){var f=0;for(var e in this.container){f++}return f};this.get=function(e){return this.container[e]};this.contains=function(e){return typeof(this.container[e])!="undefined"};this.clear=function(){for(var e in this.container){delete this.container[e]}};this.GetValue=function(){return this.container};this.toArray=function(){var f=[];for(var e in this.container){f.push(this.container[e])}return f};this.toString=function(){var f="";for(var e in this.container){f+=","+e+"='"+this.container[e]+"'"}if(f.length>0){f=f.substr(1,f.length)}return"{"+f+"}"}};Buy.GET_SMSCode=function(d){ZENG.msgbox.show("验证码发送中请等待...",6,6000000);var c={};c.fname="SendVerificationCode";jQuery.post("/TradingCenter/ajax.aspx",c,function(e){ZENG.msgbox.hide();if(!e.IsError){ZENG.msgbox.show("验证码发送完毕...",2,2000)}else{if(e.Data==0){Buy.VeMsg();return}var f='
';f+=e.Message;f+="
";ShowMsg({title:"系统提示",body:f,height:230,width:420})}},"json")};Buy.GET_SMSCount=function(d){var c={};c.fname="SendVerificationCode";c.te="t";a.ajaxSetup({contentType:"application/x-www-form-urlencoded; charset=utf-8"});jQuery.post("/TradingCenter/ajax.aspx",c,function(e){if(d){if(e<1){a("#"+d).html("今天暂未获取交易安全验证码(点击获取)")}else{a("#"+d).attr("scount",e);a("#"+d).html("今天已经获取交易安全验证码(点击获取)")}}})};Buy.ISVerificationCode=function(c){if(!c.errMsg||c.errMsg=="Y"){c.errMsg="Y"}else{c.errMsg="N"}if(a("#"+c.id).val()==""){if(c.errMsg=="Y"){ZENG.msgbox.show("请输入交易安全短信认证码",5,3000)}return false}else{if(a("#"+c.id).attr("vc")!="ok"){if(c.errMsg=="Y"){ZENG.msgbox.show("交易安全短信认证码输入错误!",5,3000)}return false}else{return true}}};Buy.VerificationCode=function(c){if(!c.id){return}var e=a("#"+c.id);var d="";var f=null;if(c.tipid){f=a("#"+c.tipid);f.addClass("yzm")}else{f=a("#"+c.id+"tip");f.addClass("yzm")}e.attr("vc","ins");if(e.val().length==0){f.html("请填写交易安全短信认证码")}e.keyup(function(){if(e.val().length==0){e.attr("vc","err");f.html("请填写交易安全短信认证码");return}else{if(e.val().length<6){e.attr("vc","err");f.html("交易安全短信认证码为6位数字");return}}if(e.val().length==6){if(d==e.val()){return}d=e.val();var g={};g.fname="eVerificationCode";g.smscode=e.val();e.attr("disabled","disabled");if(f!=null){f.html("验证中...")}jQuery.post("/TradingCenter/ajax.aspx",g,function(h){if(!h.IsError){e.attr("vc","ok");f.html("交易安全短信认证码输入正确.")}else{e.attr("vc","err");f.html(""+h.Message);setTimeout(function(){if(h.Data==0){Buy.VeMsg()}else{if(h.Data==2){}}},0);e.removeAttr("disabled");e.focus()}},"json")}})};Buy.VeMsg=function(){var c='
';c+='尊敬的用户您好
您当前账户还未绑定用于接收“交易安全验证码”
的手机号码。';c+="
";ShowMsg({title:"系统提示",body:c,height:230,width:420,buttons:[{text:"绑定手机",click:function(){alert(1)}},{text:"手机验证码说明",click:function(){alert(1)}}]})};Buy.WebRedirect=function(d,c){var e="http://www.coal.com.cn/WebRedirect.aspx?url=http://www.coal.org.cn/UserCtrl/main.aspx&rurl="+d+"&rName="+escape(c);window.open(e)};Buy.eReg=function(c){if(c){parent.location.href="http://www.coal.com.cn/zhu_che/register.aspx?url="+parent.location.href+"&addbuy=1"}else{parent.location.href="http://www.coal.com.cn/zhu_che/register.aspx?url="+parent.location.href}};Buy.eQuit=function(){parent.location.href="http://www.coal.com.cn/quit.aspx?BackUrl="+parent.location.href};Buy.Login=function(){parent.location.href="http://www.coal.com.cn/zhu_che/member_wrong.aspx?"+parent.location.href};Buy.QRCODE=function(c){a("#"+c.id).qrcode(Buy.utf16to8(c.text))};Buy.utf16to8=function b(h){var g,e,f,d;g="";f=h.length;for(e=0;e=1)&&(d<=127)){g+=h.charAt(e)}else{if(d>2047){g+=String.fromCharCode(224|((d>>12)&15));g+=String.fromCharCode(128|((d>>6)&63));g+=String.fromCharCode(128|((d>>0)&63))}else{g+=String.fromCharCode(192|((d>>6)&31));g+=String.fromCharCode(128|((d>>0)&63))}}}return g}})(jQuery); jQuery.cookie=function(h,m,j){if(typeof m!="undefined"){j=j||{};if(m===null){m="";j.expires=-1}var f="";if(j.expires&&(typeof j.expires=="number"||j.expires.toUTCString)){var d;if(typeof j.expires=="number"){d=new Date();d.setTime(d.getTime()+(j.expires*24*60*60*1000))}else{d=j.expires}f="; expires="+d.toUTCString()}var k=j.path?"; path="+(j.path):"";var e=j.domain?"; domain="+(j.domain):"";var l=j.secure?"; secure":"";document.cookie=[h,"=",encodeURIComponent(m),f,k,e,l].join("")}else{var c=null;if(document.cookie&&document.cookie!=""){var b=document.cookie.split(";");for(var g=0;g