var boxDialog=new Dialog(); boxDialog.shiyan_id=null; var upBox=new Object(); upBox.determine=function(){//判断登陆 var a,url="/default_login.jsp?"+Date.parse(new Date()); $.ajax({ url: url,async:false, context: document.body, success: function(rtnValue){ a = rtnValue.replace(/\r\n/g,''); }}); return a; } upBox.start=function(id){ var id=id||boxDialog.shiyan_id; if(this.determine()=="false"){//没登陆游客身份; boxDialog.init({iNow : 1,title:"温馨提示",title_icon:"",w : 1,h : 1,dir : 'center', mask : true,Drag_Drop:true,iframeSrc:"/trading/showdialog/shiyang_prompt.html?id="+id+"&s="+(new Date()).getTime()}); }else{//登陆以会员身份; boxDialog.init({iNow : 1,title:"普拉司网试样料采购",title_icon:"",w : 1,h : 1,dir : 'center', mask : true,Drag_Drop:true,iframeSrc:"/trading/showdialog/shiyang_caigou2.html?id="+id+"&s="+(new Date()).getTime()});} } function shiyang_caigou(id){ boxDialog.shiyan_id=id; upBox.start(id); } function addQQTalkLog(bj_com){ $.post("/price/common_QQTalk.jsp",{work_type:"addLog",bj_com:bj_com}, function(rtnValue){ },"json"); }