function trimString(str) { var i,j; if(str == "") return ""; for(i=0;i= str.length) return ""; for(j=str.length-1;j>=0;j--) if(str.charAt(j) != ' ') break; return str.substring(i,j+1); } function searchuser() { window.open('searchuser.htm','','width=500,height=200,scrollbars=yes,status=yes,location=yes'); } function userinfo() { window.open('../order/userinfo.htm','','width=500,height=200,scrollbars=yes,status=yes,location=yes'); } function addoper() { window.open('addoper.htm','','width=700,height=400,scrollbars=yes,status=yes,location=yes') } function updoper() { window.open('updoper.htm','','width=700,height=400,scrollbars=yes,status=yes,location=yes') } function explprodpkg() { window.open('explprodpkg.htm','','width=500,height=200,scrollbars=yes,status=yes,location=yes'); } function orderinfo() { window.open('../order/orderinfo.htm','','width=400,height=300,scrollbars=yes,status=yes,location=yes'); } function ordercopy() { window.open('buy.htm','','width=400,height=300,scrollbars=yes,status=yes,location=yes'); } function qrycust() { window.open('../custom/custom.htm','','width=400,height=300,scrollbars=yes,status=yes,location=yes'); } function qrycont() { window.open('../contract/contract.htm','','width=400,height=300,scrollbars=yes,status=yes,location=yes'); } function addagt() { window.open('addagt.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function updagt() { window.open('updagt.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function chldinfo() { window.open('chldinfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function feefax() { window.open('../fax/faxinfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function feecont() { window.open('../contract/continfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function addcont() { window.open('addcont.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function updcont() { window.open('updcont.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function continfo() { window.open('../contract/continfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function contcust() { window.open('../custom/custinfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } updfax function faxinfo() { window.open('faxinfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function updfax() { window.open('updfax.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function addlost() { window.open('addlost.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function addfax() { window.open('addfax.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function pickup() { window.open('pickup.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function addcust() { window.open('addcust.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function updcust() { window.open('updcust.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function custinfo() { window.open('custinfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function defax() { window.open('../fax/faxinfo.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function deorder() { window.open('../account/admitorder.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } function deorder1() { window.open('../account/orderdetail.htm','','width=600,height=400,scrollbars=yes,status=yes,location=yes'); } // ------------------------------------------------------- function query_client() { window.open('../client/query_client.asp','','width=340,height=300,scrollbars=yes,status=yes,location=yes'); } function query_result() { alert("[刷新本页面,显示查询结果]") } function query_keyword() { window.open('../client/query_keyword.asp','','width=340,height=260,scrollbars=no,status=yes,location=yes'); } // ------------------------------------------------------- function client_transfer() { window.open('../client/client_transfer.asp','','width=340,height=200,scrollbars=yes,status=yes,location=yes'); } function client_transfer_result() { location.href='../client/client_transfer_result.asp' } function client_transfer_result2() { location.href='../client/client_transfer_result2.asp' } function client_full() { window.open('../client/client_full.asp','','width=390,height=380,scrollbars=yes,status=yes,location=yes'); } function client_self_result() { location.href='../client/client_self_result.asp' } function client_info() { window.open('../client/client_info.asp','','width=390,height=300,scrollbars=yes,status=yes,location=yes'); } function client_add() { window.open('../client/client_add.asp','','width=440,height=400,scrollbars=yes,status=yes,location=yes') } // ------------------------------------------------------- function count_income() { window.open('../client/count_income.asp','','width=340,height=300,scrollbars=yes,status=yes,location=yes') } function count_payout() { window.open('../client/count_payout.asp','','width=340,height=300,scrollbars=yes,status=yes,location=yes') } function count_payout_monthly() { window.open('../client/count_payout_monthly.asp','','width=340,height=300,scrollbars=yes,status=yes,location=yes') } function count_payout_daily() { window.open('../client/count_payout_daily.asp','','width=340,height=300,scrollbars=yes,status=yes,location=yes') } function count_daily() { window.open('../jingjia/count_daily.asp','','width=540,height=300,scrollbars=yes,status=yes,location=yes') } function count_weekly() { window.open('../jingjia/count_weekly.asp','','width=440,height=300,scrollbars=yes,status=yes,location=yes') } // ------------------------------------------------------- function keyword_list_byclient() { window.open('../jingjia/keyword_list_byclient.asp','','width=600,height=500,scrollbars=yes,status=yes,location=yes') } //------------------------------------------------------------- function offer_increase(str,num) { if (num==0) alert("[将价格提高至首位,仅比第二名多一分钱]") else alert("[将价格提高 "+num+"分]") } function offer_decrease(str,num) { if (num==0) alert("[将价格降低至末位,仅比倒数第二名少一分钱]") else alert("[将价格降低 "+num+"分]") } function offer_byclient() { window.open('../jingjia/offer_byclient.asp','','width=590,height=530,scrollbars=yes,status=yes,location=yes') } function offer_bykeyword() { window.open('../jingjia/offer_bykeyword.asp','','width=540,height=410,scrollbars=yes,status=yes,location=yes') } function manage_byclient() { window.open('../jingjia/manage_byclient.asp','','width=590,height=530,scrollbars=yes,status=yes,location=yes') } function manage_bykeyword() { window.open('../jingjia/manage_bykeyword.asp','','width=450,height=310,scrollbars=yes,status=yes,location=yes') } //------------------------------------------------------------- function keyword_detail(str) { window.open('../jingjia/keyword_detail.asp?kw='+str,'','width=540,height=360,scrollbars=yes,status=yes,location=yes') } function keyword_add() { window.open('../jingjia/keyword_add.asp','','width=440,height=480,scrollbars=yes,status=yes,location=yes') } function keyword_modify(str) { window.open('../jingjia/keyword_modify.asp?kw='+str,'','width=440,height=210,scrollbars=yes,status=yes,location=yes') } function keyword_modify_batch() { ids=""//getids() window.open('../jingjia/keyword_modify_batch.asp?ids='+ids,'','width=440,height=200,scrollbars=yes,status=yes,location=yes') } function keyword_delete(str) { if(confirm("您确定要删除此关键词吗?")) location.href="../jingjia/keyword_delete.asp?kw="+str } function keyword_delete_batch() { ids=""//getids() if(confirm("您确定要删除这些关键词吗?")) location.href="../jingjia/keyword_delete_batch.asp?ids="+ids } function keyword_pause(str) { if(confirm("您确定要暂停此关键词的竞价吗?")) location.href="../jingjia/keyword_pause.asp?kw="+str } function keyword_pause_batch() { ids=""//getids() group=""//getgroup() if(confirm("您确定要暂停这些关键词的竞价吗?")) location.href="../jingjia/keyword_pause_batch.asp?group="+group+"&ids="+ids } function keyword_list_byclient() { window.open('../jingjia/keyword_list_byclient.asp','','width=600,height=340,scrollbars=yes,status=yes,location=yes'); } //------------------------------------------------------------- function query_high() { window.open('../jingjia/query_high.asp','','width=340,height=260,scrollbars=no,status=yes,location=yes'); } function query_offer(str) { window.open('../jingjia/query_offer.asp?kw='+str,'','width=500,height=350,scrollbars=yes,status=yes,location=yes') } function query_correlation(str) { window.open('../jingjia/query_correlation.asp?kw='+str,'','width=500,height=350,scrollbars=yes,status=yes,location=yes') } function query_result() { alert("[刷新本页面,显示查询结果]") } //------------------------------------------------------------- function cn_modify() { alert("[弹出窗口,修改简介]") } function cn_view(str) { window.open("http://cns.3721.com/cns.dll?fw=cm2&name="+str) } //------------------------------------------------------------- function group() { window.open("../jingjia/group.asp") } function group_add() { window.open('../jingjia/group_add.asp','','width=420,height=160,scrollbars=yes,status=yes,location=yes') } function group_modify(str) { window.open('../jingjia/group_modify.asp?gp='+str,'','width=420,height=160,scrollbars=yes,status=yes,location=yes') } function group_delete(str) { if(confirm("您确定要删除此组吗?")) location.href="../jingjia/group_delete.asp?gp="+str } function group_view() { alert("[刷新本页面,只显示本组记录]") } function group_detail(groupname) { window.open("../jingjia/group_detail.asp?groupname="+groupname) } //------------------------------------------------------------- function page_everynum() { alert("[刷新本页面,按照指定每页数量,重新显示记录]") } function page_go() { alert("[跳转到指定页]") } // ------------------------------------------------------------ function bill_income() { window.open('../agent/bill_income.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } function bill_income_monthly() { window.open('../agent/bill_income_monthly.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } function bill_income_daily() { window.open('../agent/bill_income_daily.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } function bill_payout() { window.open('../agent/bill_payout.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } function bill_payout_monthly() { window.open('../agent/bill_payout_monthly.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } function bill_payout_daily() { window.open('../agent/bill_payout_daily.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } function count_bykeyword_daily() { window.open('../agent/count_bykeyword_daily.asp','','width=340,height=340,scrollbars=yes,status=yes,location=yes') } //----------------------------------------------------------------------------------------------------------------------// //---------------------------------------- add by ty on 2003-6-27 21:21 start ------------------------------------------// function openewin( strfilename ) { window.open(strfilename,'newwindow','resizable=yes, scrollbars=no,menubar=no,location=no,status=no,width=458,height=263'); return false; } function gotopage( strurl ) { alert("aa"); window.location = "" + strurl; return false; } //----------------------------------------- add by ty on 2003-6-27 21:21 end -------------------------------------------// //----------------------------------------------------------------------------------------------------------------------// //---------------------------------------- add by ty on 2003-6-10 17:01 start ------------------------------------------// function changeMoneyCNS(obj1,obj2,obj3,type) { if(type==1) //行业实名(黄金网址) { price = 5000; price = obj1.value * price/12 ; } else { price = 500; price = price * obj1.value/12 ; } obj2.value = price; obj3.value = price; } function changeContinue(obj,ob1,ob2,type) { totalMoney = parseInt(document.frmCh.totalMoney.value); if(obj.checked) { obj.value = 1; ob1.disabled = false; if(type==1) //行业实名(黄金网址) { price = 5000; price = price * ob1.value/12 ; } else { price = 500; price = price * ob1.value/12 ; } if(price!=parseInt(ob2.value)) ob2.value = price; totalMoney = totalMoney + parseInt(ob2.value); } else { obj.value = 0; ob1.disabled = true; if(type==1) //行业实名(黄金网址) { price = 5000; price = price * ob1.value/12 ; } else { price = 500; price = price * ob1.value/12 ; } if(price!=parseInt(ob2.value)) ob2.value = price; totalMoney = totalMoney - parseInt(ob2.value); } document.frmCh.totalMoney.value = totalMoney; document.frmCh.total_charge.value = totalMoney; //alert(obj.value) //alert(document.frmCh.total_charge.value); } //----------------------------------------- add by ty on 2003-6-10 17:01 end -------------------------------------------// //----------------------------------------------------------------------------------------------------------------------// //用于分页跳转 function goo(obj,num){ num = "" + num; if( !checknumber(trimString(num)) ) { //alert( num + " " + obj.PageNo.value + " " + obj.inputNo.value ); obj.inputNo.value = obj.PageNo.value; return false; } num = parseInt( num ); obj.inputNo.value = parseInt( obj.inputNo.value ); obj.TotalPages.value = parseInt( obj.TotalPages.value ); if (num < 1 ) { num = 1; } if (num > obj.TotalPages.value ) { num = obj.TotalPages.value ; } if (num == obj.inputNo.value) { obj.inputNo.value = num; return false; } obj.inputNo.value = num; obj.submit(); return true; } //返回两位小数,用于避免1.82+1计算结果不正常的情况 function Get_Double_Digit( float_number ) { rs_float_number = (Math.round((float_number)*100))/100; return rs_float_number; } /** * 密码规则检查 * return 0 - pass check * return 1 - oldpwd and newpwd is same * return 2 - length error * return 3 - lost number or letter **/ function checkPwdRule( o, s ) {/*{{{*/ //-- init 1 o = trimString(o); s = trimString(s); //-- comp password if( o == s ) { return 1; } //-- init 2 fn = fl = false; s = s.toUpperCase(); //-- string length if( s.length < 6 || s.length > 20 ) { return 2; } //-- number for( i=48; i<=57; i++ ) { if( -1 != s.indexOf(String.fromCharCode(i)) ) { fn = true; break; } } //-- letter for( i=65; i<=90; i++ ) { if( -1 != s.indexOf(String.fromCharCode(i)) ) { fl = true; break; } } if( fn && fl ) { return 0; } return 3; }/*}}}*/