function WebQQ(){ var qqwin = window.open('','im_menu','width=170,height=300,scrollbars=yes'); if (qqwin && qqwin.length > 1){ //have the window }else{ //modelesswin('im_list.html?myuserid=0',160,450,''); openUrl('im_list.html?myuserid=0','im_menu',170,300,'yes'); } } function gochat(userid,sex,netname,ischat){ try{ incnewmessage.style.display= "none"; newchatmessagestye.style.display= "none"; event('window.newmessage.close()'); noUsed(); }catch(e){} if (ischat||sex==1){ var sendLink='im_chat.html?userid='+userid+'&sex='+sex+'&netname='+netname+'&ischat='+ischat; var name='im_'+userid; var scrollbars='no'; openUrl(sendLink, name, 400, 309, scrollbars); //modelesswin(sendLink,410,363,''); }else{ memberonly("作为客人,您不能主动向女会员发起聊天请求!",""); } if (ischat){ var qqwin = window.open('','im_menu','width=170,height=300,scrollbars=yes'); if (qqwin && qqwin.length > 1){ //have the window }else{ WebQQ(); } } } function go_url(linkurl,message){ if (message!=""){ alert(message); } window.location.href=linkurl; } function memberonly(var1,var2){ if (var1==""){ var1="作为客人您不能使用此功能,"; } if (var2==""){ var2="\n\n升级成为会员,没有任何交友限制,月花费不到10元。\n进入支付页面查看详情!"; } alert(var1+var2); window.open('pay.html','paypage'); } function openUrl(sendLink, name, width, height, scrollbars) { alert("您还没有登录,请先登录!"); window.location.href='./login.html'; return; try{ mm= "width=" + width + ",height=" + height + ",scrollbars=" + scrollbars; var Wnd=window.open('', name, mm); if (Wnd && Wnd.length > 1){ //have the window }else{ Wnd=window.open(sendLink, name, mm); } Wnd.focus(); }catch(e){} } function modelesswin(url,mwidth,mheight,winname){ if (document.all&&window.print){ //if ie5 //alert("Ie5"); eval('window.showModelessDialog(url,winname,"help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")'); }else{ eval('window.open(url,winname,"width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")'); } /**/ } function confURL(url){ if (confirm("请确认您是否真要删除?")){ window.location.href =url; } } function confDoURL(url){ if (confirm("请确认您是否真要这么做吗?")){ window.location.href =url; } } function newChatMessage(userid,sex,netname,ischat){ var dialogLeft = screen.width-170; var dialogTop = screen.height-120; var sendLink='im_newmessage.html?userid='+userid+'&sex='+sex+'&netname='+netname; //alert(sendLink); //eval('window.showModelessDialog("'+sendLink+'","newmessage","help:0;resizable:0;dialogWidth:170px;dialogHeight:100px;dialogLeft:'+dialogLeft+'px;dialogTop:'+dialogTop+'px;status:no;scroll:no")'); } function formcheck(filevar,submitName){ var fileext=""; try{ fileext=filevar.uploadfile.value.substring(filevar.uploadfile.value.length-4,filevar.uploadfile.value.length); fileext=fileext.toLowerCase(); }catch(e){} if (fileext){ if ((fileext=='.jpg' )||(fileext=='.gif' )||(fileext=='.tiff' )) { submitName.disabled=true; submitName.value='您的图片正在上传,请稍后...'; return true; }else{ alert("请上传我们支持的图片格式(如:jpg,gif,png)!"); return false; } }else{ submitName.disabled=true; submitName.value='处理中,请稍后...'; return true; } } function newwindow(a,windowname, width, height, scrollbars){ var mm= "width=" + width + ",height=" + height + ",scrollbars=" + scrollbars; var win = window.open(a.href, windowname, mm); if (win && win.open && !win.closed){ win.focus(); } return false; } function getEditForumMessage(messageid){ try{ var sitedomain = "www.6066.com"; window.postforum.text.select(); document.all.geteditdata.innerHTML="