var MustResize=true;var tempFunct=function(){};var tempFunct2=function(){};Element.addMethods("INPUT",{error:function(a,b){if(b){$(a.id+"_t").className="custominput2";if($(a.id+"_e_f")){$(a.id+"_e_f").show()}}else{$(a.id+"_t").className="custominput1";if($(a.id+"_e_f")){$(a.id+"_e_f").hide()}}if(b){return false}else{return true}}});Element.addMethods("SELECT",{error:function(a,b){if(b){$(a.id+"_t").className="customselectbox2";if($(a.id+"_e_f")){$(a.id+"_e_f").show()}}else{$(a.id+"_t").className="customselectbox1";if($(a.id+"_e_f")){$(a.id+"_e_f").hide()}}return !b}});String.prototype.replaceAll=function(a,b){return this.split(a).join(b)};var nativeSplit=nativeSplit||String.prototype.split;String.prototype.split=function(k,c){if(!(k instanceof RegExp)){return nativeSplit.apply(this,arguments)}if(c===undefined||+c<0){c=false}else{c=Math.floor(+c);if(!c){return[]}}var b=(k.global?"g":"")+(k.ignoreCase?"i":"")+(k.multiline?"m":""),g=new RegExp("^"+k.source+"$",b),f=[],a=0,d=0,e;if(!k.global){k=new RegExp(k.source,"g"+b)}while((!c||d++<=c)&&(e=k.exec(this))){var h=!e[0].length;if(h&&k.lastIndex>e.index){k.lastIndex=e.index}if(k.lastIndex>a){if(e.length>1){e[0].replace(g,function(){for(var l=1;l<arguments.length-2;l++){if(arguments[l]===undefined){e[l]=undefined}}})}f=f.concat(this.slice(a,e.index),(e.index===this.length?[]:e.slice(1)));a=k.lastIndex}if(h){k.lastIndex++}}return(a===this.length)?(k.test("")?f:f.concat("")):(c?f:f.concat(this.slice(a)))};function getByTagName(a,b){return $($(a).select(b))}function utf8_encode(d){d=(d+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var f="";var h,b;var a=0;h=b=0;a=d.length;for(var g=0;g<a;g++){var e=d.charCodeAt(g);var c=null;if(e<128){b++}else{if((e>127)&&(e<2048)){c=String.fromCharCode((e>>6)|192)+String.fromCharCode((e&63)|128)}else{c=String.fromCharCode((e>>12)|224)+String.fromCharCode(((e>>6)&63)|128)+String.fromCharCode((e&63)|128)}}if(c!=null){if(b>h){f+=d.substring(h,b)}f+=c;h=b=g+1}}if(b>h){f+=d.substring(h,d.length)}return f}function md5(D){var N=function(b,a){return(b<<a)|(b>>>(32-a))};var L=function(k,c){var F,b,d,x,a;d=(k&2147483648);x=(c&2147483648);F=(k&1073741824);b=(c&1073741824);a=(k&1073741823)+(c&1073741823);if(F&b){return(a^2147483648^d^x)}if(F|b){if(a&1073741824){return(a^3221225472^d^x)}else{return(a^1073741824^d^x)}}else{return(a^d^x)}};var t=function(a,c,b){return(a&c)|((~a)&b)};var s=function(a,c,b){return(a&b)|(c&(~b))};var r=function(a,c,b){return(a^c^b)};var q=function(a,c,b){return(c^(a|(~b)))};var w=function(G,F,ab,aa,k,H,I){G=L(G,L(L(t(F,ab,aa),k),I));return L(N(G,H),F)};var f=function(G,F,ab,aa,k,H,I){G=L(G,L(L(s(F,ab,aa),k),I));return L(N(G,H),F)};var J=function(G,F,ab,aa,k,H,I){G=L(G,L(L(r(F,ab,aa),k),I));return L(N(G,H),F)};var v=function(G,F,ab,aa,k,H,I){G=L(G,L(L(q(F,ab,aa),k),I));return L(N(G,H),F)};var e=function(F){var H;var d=F.length;var c=d+8;var b=(c-(c%64))/64;var x=(b+1)*16;var G=Array(x-1);var a=0;var k=0;while(k<d){H=(k-(k%4))/4;a=(k%4)*8;G[H]=(G[H]|(F.charCodeAt(k)<<a));k++}H=(k-(k%4))/4;a=(k%4)*8;G[H]=G[H]|(128<<a);G[x-2]=d<<3;G[x-1]=d>>>29;return G};var u=function(a){var c="",d="",k,b;for(b=0;b<=3;b++){k=(a>>>(b*8))&255;d="0"+k.toString(16);c=c+d.substr(d.length-2,2)}return c};var E=Array();var R,h,K,y,g,Z,Y,X,W;var T=7,Q=12,O=17,M=22;var C=5,B=9,A=14,z=20;var p=4,o=11,n=16,m=23;var V=6,U=10,S=15,P=21;D=utf8_encode(D);E=e(D);Z=1732584193;Y=4023233417;X=2562383102;W=271733878;xl=E.length;for(R=0;R<xl;R+=16){h=Z;K=Y;y=X;g=W;Z=w(Z,Y,X,W,E[R+0],T,3614090360);W=w(W,Z,Y,X,E[R+1],Q,3905402710);X=w(X,W,Z,Y,E[R+2],O,606105819);Y=w(Y,X,W,Z,E[R+3],M,3250441966);Z=w(Z,Y,X,W,E[R+4],T,4118548399);W=w(W,Z,Y,X,E[R+5],Q,1200080426);X=w(X,W,Z,Y,E[R+6],O,2821735955);Y=w(Y,X,W,Z,E[R+7],M,4249261313);Z=w(Z,Y,X,W,E[R+8],T,1770035416);W=w(W,Z,Y,X,E[R+9],Q,2336552879);X=w(X,W,Z,Y,E[R+10],O,4294925233);Y=w(Y,X,W,Z,E[R+11],M,2304563134);Z=w(Z,Y,X,W,E[R+12],T,1804603682);W=w(W,Z,Y,X,E[R+13],Q,4254626195);X=w(X,W,Z,Y,E[R+14],O,2792965006);Y=w(Y,X,W,Z,E[R+15],M,1236535329);Z=f(Z,Y,X,W,E[R+1],C,4129170786);W=f(W,Z,Y,X,E[R+6],B,3225465664);X=f(X,W,Z,Y,E[R+11],A,643717713);Y=f(Y,X,W,Z,E[R+0],z,3921069994);Z=f(Z,Y,X,W,E[R+5],C,3593408605);W=f(W,Z,Y,X,E[R+10],B,38016083);X=f(X,W,Z,Y,E[R+15],A,3634488961);Y=f(Y,X,W,Z,E[R+4],z,3889429448);Z=f(Z,Y,X,W,E[R+9],C,568446438);W=f(W,Z,Y,X,E[R+14],B,3275163606);X=f(X,W,Z,Y,E[R+3],A,4107603335);Y=f(Y,X,W,Z,E[R+8],z,1163531501);Z=f(Z,Y,X,W,E[R+13],C,2850285829);W=f(W,Z,Y,X,E[R+2],B,4243563512);X=f(X,W,Z,Y,E[R+7],A,1735328473);Y=f(Y,X,W,Z,E[R+12],z,2368359562);Z=J(Z,Y,X,W,E[R+5],p,4294588738);W=J(W,Z,Y,X,E[R+8],o,2272392833);X=J(X,W,Z,Y,E[R+11],n,1839030562);Y=J(Y,X,W,Z,E[R+14],m,4259657740);Z=J(Z,Y,X,W,E[R+1],p,2763975236);W=J(W,Z,Y,X,E[R+4],o,1272893353);X=J(X,W,Z,Y,E[R+7],n,4139469664);Y=J(Y,X,W,Z,E[R+10],m,3200236656);Z=J(Z,Y,X,W,E[R+13],p,681279174);W=J(W,Z,Y,X,E[R+0],o,3936430074);X=J(X,W,Z,Y,E[R+3],n,3572445317);Y=J(Y,X,W,Z,E[R+6],m,76029189);Z=J(Z,Y,X,W,E[R+9],p,3654602809);W=J(W,Z,Y,X,E[R+12],o,3873151461);X=J(X,W,Z,Y,E[R+15],n,530742520);Y=J(Y,X,W,Z,E[R+2],m,3299628645);Z=v(Z,Y,X,W,E[R+0],V,4096336452);W=v(W,Z,Y,X,E[R+7],U,1126891415);X=v(X,W,Z,Y,E[R+14],S,2878612391);Y=v(Y,X,W,Z,E[R+5],P,4237533241);Z=v(Z,Y,X,W,E[R+12],V,1700485571);W=v(W,Z,Y,X,E[R+3],U,2399980690);X=v(X,W,Z,Y,E[R+10],S,4293915773);Y=v(Y,X,W,Z,E[R+1],P,2240044497);Z=v(Z,Y,X,W,E[R+8],V,1873313359);W=v(W,Z,Y,X,E[R+15],U,4264355552);X=v(X,W,Z,Y,E[R+6],S,2734768916);Y=v(Y,X,W,Z,E[R+13],P,1309151649);Z=v(Z,Y,X,W,E[R+4],V,4149444226);W=v(W,Z,Y,X,E[R+11],U,3174756917);X=v(X,W,Z,Y,E[R+2],S,718787259);Y=v(Y,X,W,Z,E[R+9],P,3951481745);Z=L(Z,h);Y=L(Y,K);X=L(X,y);W=L(W,g)}var l=u(Z)+u(Y)+u(X)+u(W);return l.toLowerCase()}function checkAllTable(c,a){var c=$(c);var b=$(($(a).id).substring(0,($(a).id).length-2)).checked;c.getElementsBySelector("input").each(function(d){if(d.type=="checkbox"){d.checked=b;ChangeCheckboxClick(d.id+"_s",d.id)}})}function ChangeCheckboxDown(a,b){if($(b).disabled){return false}if($(b).checked){a.style.backgroundPosition="0px -77px"}else{a.style.backgroundPosition="0px -27px"}}function ChangeCheckboxUp(a,b){if($(b).disabled){return false}if($(b).checked){$(b).checked=false;$(a).style.backgroundPosition="0px -2px"}else{$(b).checked=true;$(a).style.backgroundPosition="0px -52px"}$(b).focus()}function ChangeCheckboxOut(a,b){if($(b).disabled){return false}if($(b).checked){$(a).style.backgroundPosition="0px -52px"}else{$(a).style.backgroundPosition="0px -2px"}}function ChangeCheckboxClick(a,b){if($(b).disabled){return false}if($(b).checked){$(a).style.backgroundPosition="0px -52px"}else{$(a).style.backgroundPosition="0px -2px"}}function ChangeRadioDown(a,b){if($(b).checked){$(a).style.backgroundPosition="0px -77px"}else{$(a).style.backgroundPosition="0px -27px"}}function ChangeRadioUp(e,d,b,a){var c=$(d);if(b){$A(b).each(function(f){$(f).checked=false;$($(f).identify()+"span").style.backgroundPosition="0px -2px"})}else{$(c.form).getInputs("radio",c.name).each(function(f){f.checked=false;$(f.identify()+"span").style.backgroundPosition="0px -2px"})}c.checked=true;$(e).style.backgroundPosition="0px -52px";if(!a){c.focus()}}function ChangeRadioOut(a,b){if($(b).checked){$(a).style.backgroundPosition="0px -52px"}else{$(a).style.backgroundPosition="0px -2px"}}function mL(b){var a=160*9;if($F(b).length>a){$(b).value=$F(b).substring(0,a);return false}else{return true}}var regexpNumber=/^[\d]*$/;var regexpNumberWSpace=/^[\d ]*$/;var regexpICQ=/^[0-9\-\s]{5,20}$/;var regexpICQChar=/^[0-9\-\s]*$/;var regexpCYTALKid=/^[0-9a-zA-Z\.\-\_]*$/;var regexpPassword=/^[0-9a-zA-Z\u0020-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]*$/;var regexpCaptcha=/^[0-9a-zA-Z\u0020\u0027\u002D\.\,\-\$\(\)]*$/;var regexpCaptchaFull=/^[0-9a-zA-Z\.\,\-\$\(\)]{1,}\s[0-9a-zA-Z\.\,\-\$\(\)]{1,}$/;var regexpEmailChars=/^[0-9a-zA-Z\.\-\_\@]{1,}$/;var regexpEmailChar=/^[0-9a-zA-Z\.\-\_\@]$/;var regexpEmail=/^[a-zA-Z]{1,}[0-9a-zA-Z\.\-\_]{1,}\@[0-9a-zA-Z\-\_]{2,}\.[a-zA-Z]{2,}$/;var regexpCompany=/^[0-9a-zA-Z\u0020\u0026-\u0029\u002C-\u002E\u005F\u007B\u007D]*$/;var regexpName=/^[0-9a-zA-Z\u0020\u0027\u002D]*$/;var regexpWebpageChar=/^[0-9a-zA-Z\u0020\u0027\u002D\/\:\.\_\+\=\?\-\&]*$/;var regexpWebpage=/^(http\:\/\/|https\:\/\/|www\.)[0-9a-zA-Z]{2,}\.[0-9a-zA-Z\:\_\+\=\?\-\&\.\/]{2,}$/;var regexpAddress=/^[0-9a-zA-Z\u0020\u0026-\u0029\u002C-\u002E]*$/;var regexpCity=/^[0-9a-zA-Z\u0020\u0026-\u0029\u002C-\u002E]*$/;var regexpZip=/^[0-9a-zA-Z\u0020\u002D\u002F]*$/;var regexpState=/^[0-9a-zA-Z\u0020\u002D\u002F]*$/;var regexpTwoWords=/^[\w]+[\s][\w]+$/;function inputKeyboardMasking(d,e,b){var c,a;if(window.event){c=window.event.keyCode}else{if(d){c=d.which}else{return true}}if(c==null||c==0||c==8||c==13||c==27){return true}a=String.fromCharCode(c);objInput=d.target||d.srcElement;if(e!=""){if(b.test(a)){if(objInput.tagName=="TEXTAREA"){$(e).className="customtextarea2"}else{$(e).className="custominput1"}return true}else{if(objInput.tagName=="TEXTAREA"){$(e).className="customtextarea2"}else{$(e).className="custominput2"}return false}}else{if(b.test(a)){return true}else{return false}}}function inputPasteValidation(b,d,a){if(window.clipboardData){var c=window.clipboardData.getData("Text");objInput=b.target||b.srcElement;if(d!=""){if(a.test(c)){if(objInput.tagName=="TEXTAREA"){$(d).className="customtextarea2"}else{$(d).className="custominput1"}return true}else{if(objInput.tagName=="TEXTAREA"){$(d).className="customtextarea2"}else{$(d).className="custominput2"}return false}}else{if(a.test(c)){return true}else{return false}}}}function inputChangeValidation(b,d,a){var c;c=b.target||b.srcElement;if(c.value.length==0){if(c.tagName=="TEXTAREA"){$(d).className="customtextarea2"}else{if($(d)){$(d).className="custominput1"}}return true}if(d!=""){if(a.test(c.value)){if(c.tagName=="TEXTAREA"){$(d).className="customtextarea2"}else{if($(d)){$(d).className="custominput1"}}return true}else{if(c.tagName=="TEXTAREA"){$(d).className="customtextarea2"}else{if($(d)){$(d).className="custominput2"}}return false}}else{if(a.test(c.value)){return true}else{return false}}}function isArray(a){return a.constructor==Array}function CheckFormFill(e,f,b){if(!b&&b!=false){b=true}if(!f){f=Form.serializeElements($(e).getInputs("text"),true)}var d=$H(f);var c=true;var a=new RegExp(/\[[0-9]{1,}\]/);d.each(function(h){var g=h.key;h.key=h.key.replace(/\[|\]/g,"");if(isArray(h.value)==false&&g==h.key){if(h.value==""&&$(h.key+"_id_r")&&$F(h.key+"_id_r")==1&&$(h.key+"_id_t").style.display!="none"){if($(h.key+"_id_e_f")){$(h.key+"_id_e_f").show()}$(h.key+"_id_t").className="custominput2";c=false}}else{if(a.test(g)&&isArray(h.value)==true){for(i=0;i<=h.value.length;i++){j="";if((!h.value[i]||h.value[i]=="")&&$(h.key+j+"_id_r")&&$F(h.key+j+"_id_r")==1&&$(h.key+j+"_id_t").style.display!="none"){if($(h.key+j+"_id_e_f")){$(h.key+j+"_id_e_f").show()}$(h.key+j+"_id_t").className="custominput2";c=false}}}else{if(a.test(g)&&isArray(h.value)==false){if((h.value=="")&&$(h.key+"_id_r")&&$F(h.key+"_id_r")==1&&$(h.key+"_id_t").style.display!="none"){if($(h.key+"_id_e_f")){$(h.key+"_id_e_f").show()}$(h.key+"_id_t").className="custominput2";c=false}}else{for(i=0;i<=h.value.length;i++){j=i+1;if((!h.value[i]||h.value[i]=="")&&$(h.key+j+"_id_r")&&$F(h.key+j+"_id_r")==1&&$(h.key+j+"_id_t").style.display!="none"){if($(h.key+j+"_id_e_f")){$(h.key+j+"_id_e_f").show()}$(h.key+j+"_id_t").className="custominput2";c=false}}}}}});if(b==true){$$("#"+e+" td.errormsg1").find(function(g){if($(g.parentNode).style.display==""){c=false;return true}})}return c}var onPressLoginError=false;function CheckNewLogin(b){var a="";if(onPressLoginError){onPressLoginError=false;return}$("newlogin_e").hide();$("error_newlogin_3").hide();$("ok_newlogin").hide();if(b.value.length>=8&&b.value.length<=20){$("newlogin_e").hide();if(b.value.match(regexpCYTALKid)){$("error_newlogin_2").hide();new Ajax.Request("ajax/test_login.php",{method:"post",parameters:"login="+b.value,onSuccess:function(d){var c=d.responseText;if(c=="True"){$("newlogin_t").className="custominput1";$("error_newlogin_3").hide();$("ok_newlogin").show();a=true}else{$("newlogin_t").className="custominput2";$("error_newlogin_3").show();a=false}}.bind(a),onFailure:function(){$("newlogin_t").className="custominput2";$("error_newlogin_3").show();a=false}.bind(a)})}else{$("newlogin_t").className="custominput2";$("error_newlogin_2").show();a=false}}else{$("newlogin_t").className="custominput2";$("newlogin_e").show();a=false}return a}function isNumberInput(d,c){var b,a;if(window.event){b=window.event.keyCode}else{if(c){b=c.which}else{return true}}if(b==null||b==0||b==8||b==13||b==27){return true}a=String.fromCharCode(b);if(/\d/.test(a)){window.status="";return true}else{window.status="Field accepts numbers only.";return false}}function isCountry(d,c){var b,a;if(window.event){b=window.event.keyCode}else{if(c){b=c.which}else{return true}}if(b==null||b==0||b==8||b==13||b==27){return true}a=String.fromCharCode(b);if(/^[a-zA-Z\u0020\u0027\u002D]$/.test(a)){return true}else{return false}return true}var submenutimeout=null;var submenutimeout2=null;function showSubMenu(b){$$("select").each(function(c){$(c).blur()});if(submenutimeout){window.clearTimeout(submenutimeout);submenutimeout=null}var a=1;while($("menu_"+a)!=null){$("menu_"+a).hide();a++}$(b).show()}function hideSubMenu(a){$$("div.menu-hp-sub-sub").invoke("hide");$(a).hide();if(submenutimeout2){window.clearTimeout(submenutimeout2)}}function hideSubMenuTimer(a){if(submenutimeout){window.clearTimeout(submenutimeout)}if(submenutimeout2){window.clearTimeout(submenutimeout2)}submenutimeout=setTimeout(function(){hideSubMenu(a)},200)}function showSubMenuTimer(a){if(submenutimeout2){window.clearTimeout(submenutimeout2)}submenutimeout2=setTimeout(function(){$$("div.menu-hp-sub-sub").invoke("hide");showSubMenu(a);$$("div.menu-hp-sub-sub").each(function(b){subelem=$($($(b).childElements()[0]).childElements()[0]);somewidth=subelem.getWidth();b.style.left=(-3-somewidth)+"px"})},300)}function positionSubMenu(a){$A(a).each(function(c,b){if(b==0&&$$("td.menu-hp-nonreg-td-first").first()){var d=($$("td.menu-hp-nonreg-td-first").first().getWidth());if($(c).children){$($(c).children[0]).setStyle({top:0,left:"-"+d+"px",position:"absolute",display:"block"})}}else{if($(c)&&$$("td.menu-hp-nonreg-td-separator").toArray().length>0){var d=($$("td.menu-hp-nonreg-td-separator").toArray()[0].getWidth()/2).round();if($(c).children){$($(c).children[0]).setStyle({top:0,left:"-"+d+"px",position:"absolute",display:"block"})}}}})}function buttonState(a,b){if($(a)){button=$(a);if((b==0||b==false)&&button.className!="graybutton"){button.className="graybutton";button.style.cursor="default";elem=new Element("div");elem.id=a+"_hidediv";elem.clonePosition(button).setStyle({top:0,left:(button.offsetLeft-5)+"px",position:"relative",height:0,width:0});elem2=new Element("div");elem2.setStyle({zIndex:100000,position:"absolute",width:button.getWidth()+10+"px",height:button.getHeight()+"px"});elem.update(elem2);button.insert({before:elem})}else{if((b==1||b==true)&&button.className!="bluebutton"){button.className="bluebutton";button.style.cursor="pointer";$(a+"_hidediv").remove()}}}}function bubleShow(e,a,c,b,d){if($(e)){$(e).show()}else{if(!d){d={}}if(!d.left){d.left=(10+$(a).offsetLeft)}if(!b){b=1}if(!d.top){d.top=0}d.content=c;d.id=e;d.type=b;tmp={sender:a,id:e};new Ajax.Request("/ajax/buble.php",{method:"post",parameters:d,onComplete:function(f){if(!$(this.id)){$(this.sender).insert({after:f.responseText})}$(this.id).show()}.bind(tmp)})}}function bigBubleShow(a){if(bubleTimer[a.id]){clearTimeout(bubleTimer[a.id])}if($(a.id)){$(a.id).show()}else{if(!a.left){a.left=(10+$(sender).offsetLeft)}if(!a.type){a.type=1}new Ajax.Request("/ajax/bigbuble.php",{method:"post",parameters:a,onComplete:function(b){if(!$(a.id)){$(a.sender).insert({before:b.responseText})}$(a.id).show()}.bind(a)})}}function rLineBubleMove(a,b){if($(b.id)){offset1=$(b.sender).viewportOffset();b.left=offset1.left+20;b.top=offset1.top+20;if((b.top+300)>document.viewport.getHeight()){b.top=document.viewport.getHeight()-300}if((b.left+420)>document.viewport.getWidth()){b.left=document.viewport.getWidth()-420}$(b.id).setStyle({top:b.top+"px",left:b.left+"px"})}}var bubleTimer=new Array();function rLineBubleShowTimed(a){bubleTimer[a.id]=setTimeout(function(){rLineBubleShow(a)},300)}function rLineBubleShow(a){offset1=$(a.sender).viewportOffset();a.left=offset1.left+20;a.top=offset1.top+20;if((a.top+300)>document.viewport.getHeight()){a.top=document.viewport.getHeight()-300}if((a.left+420)>document.viewport.getWidth()){a.left=document.viewport.getWidth()-420}if($(a.id)){$(a.id).setStyle({top:a.top,left:a.left});$$("div.rbubble").invoke("hide");$(a.id).show()}else{$$("div.rbubble").invoke("hide");new Ajax.Request("ajax/rlinebuble.php",{method:"post",parameters:a,onComplete:function(b){if(!$(this.id)){$$("body").first().insert({bottom:b.responseText})}$(this.id).show()}.bind(a)})}}function rLinebubleHide(a){clearTimeout(bubleTimer[a]);if($(a)){$(a).remove()}}function bubleHide(a){if($(a)){bubleTimer[a]=setTimeout("$('"+a+"').hide();",500)}else{bubleTimer[a]=setTimeout("bubleHide('"+a+"');",500)}}function ajaxGettext(elem,attr,text,display){new Ajax.Request("/ajax/get_langvar.php",{method:"post",parameters:{langvar:text},onComplete:function(transport){eval("elem."+attr+"=transport.responseText");if(display&&display=="show"){$(elem).show()}if(display&&display=="hide"){$(elem).hide()}}.bind(elem).bind(attr)})}function Set_Cookie(c,e,d,g,a,h){var b=new Date();b.setTime(b.getTime());if(d){d=d*1000*60*60*24}var f=new Date(b.getTime()+(d));document.cookie=c+"="+escape(e)+((d)?";expires="+f.toGMTString():"")+((g)?";path="+g:"")+((a)?";domain="+a:"")+((h)?";secure":"")}function Get_Cookie(b){var f=document.cookie.split(";");var a="";var e="";var c="";var d=false;for(i=0;i<f.length;i++){a=f[i].split("=");e=a[0].replace(/^\s+|\s+$/g,"");if(e==b){d=true;if(a.length>1){c=unescape(a[1].replace(/^\s+|\s+$/g,""))}return c;break}a=null;e=""}if(!d){return null}}function ConferenceAddNumber(a){if(!ConferenceValidate("")){return false}table=$("conferencenumbers");newrow=$(table.insertRow(table.rows.length));newrow.identify();if(table.rows.length%2){newrow.className="greyline"}else{newrow.className="whiteline"}$(newrow.insertCell(0)).update(table.rows.length-1).setStyle({color:"#000000",borderRight:"3px solid #fff"});var b=new Element("div",{id:"number"+newrow.id});b.update(AutoBoxes.number.value);$(newrow.insertCell(1)).update(b).setStyle({color:"#000000",borderRight:"3px solid #fff",paddingLeft:"5px",paddingRight:"0px"});$(newrow.insertCell(2)).update($F("name_id")).setStyle({color:"#000000",textAlign:"center",borderRight:"3px solid #fff"}).className="nopadding";$(newrow.insertCell(3)).update($F("email_id")).setStyle({color:"#000000",textAlign:"center",borderRight:"3px solid #fff"}).className="nopadding";ajaxGettext($(newrow.insertCell(4)).update(new Element("img",{width:16,height:16,onclick:"javascript:ConferenceEditNumber('"+newrow.id+"');",style:"cursor: pointer;",alt:"edit",src:"images/icons/edit.png"})).insert({bottom:"&nbsp;"}).insert({bottom:new Element("a",{href:"javascript:void(ConferenceEditNumber('"+newrow.id+"'));","class":"bluelink"})}).setStyle({textAlign:"right",padding:"0px"}).select("a").first(),"innerHTML","UI Msg1871");ajaxGettext($(newrow.insertCell(5)).update(new Element("img",{width:16,height:16,onclick:"javascript:ConferenceRemoveNumber('"+newrow.id+"');",style:"cursor: pointer;",alt:"delete",src:"images/phones/member/voicemail/trash.png"})).insert({bottom:"&nbsp;"}).insert({bottom:new Element("a",{href:"javascript:void(ConferenceRemoveNumber('"+newrow.id+"'));","class":"bluelink"})}).setStyle({textAlign:"right",padding:"0 10px 0 0"}).select("a").first(),"innerHTML","UI Msg1872");ajaxGettext($("number_id"),"value","UI Msg1873");$("name_id").value="";$("email_id").value="";$("name_id_t").className="custominput1";$("email_id_t").className="custominput1";GetScrollElement(a+"_scroll_1").Reload();AutoBoxes.number.reload();return false}function ConferenceRemoveNumber(a){table=$("conferencenumbers");if(AutoBoxes["number"+a]){AutoBoxes["number"+a].del()}$(a).remove();$A(table.rows).each(function(c,b){if(b<1){return}if(b%2){c.className="whiteline"}else{c.className="greyline"}$($(c.select("td")).first()).update(b)});GetScrollElement("meeting_scroll_1").Reload();return false}function ConferenceRemoveSchedule(a){table=$("sheduleitems");$(a.parentNode.parentNode).remove();$A(table.rows).each(function(c,b){if(b%2){c.className="whiteline"}else{c.className="greyline"}c.select("td").first().update(b+1)});GetScrollElement("meeting_scroll_1").Reload();return false}function SMSRemoveSchedule(a){table=$("sheduleitems");$(a.parentNode.parentNode).remove();$A(table.rows).each(function(c,b){if(b%2){c.className="whiteline"}else{c.className="greyline"}c.select("td").first().update(b+1)});GetScrollElement("unlimited_sms_scroll_1").Reload();return false}function ConferenceRemoveAllSchedule(){table=$("sheduleitems");$A(table.rows).invoke("remove");GetScrollElement("meeting_scroll_1").Reload();return false}function SMSRemoveAllSchedule(){table=$("sheduleitems");$A(table.rows).invoke("remove");GetScrollElement("unlimited_sms_scroll_1").Reload();return false}function ConferenceEditNumber(a){row=$(a);var b=$("number"+a).innerHTML;new AutoBox({id:"number"+a,store:{name:"number"+a,id:"number_id"},maxcount:1,width:175,dropdown:200,classname:"autoinput_simple2",autopath:"ajax/get_directory_info.php",emptytext:languages.UIMsg2056});AutoBoxes["number"+a].add(b);CreateStylizedInput($(row.cells[2]),{name:"name"+a,value:$(row.cells[2]).innerHTML,style:"width:180px;",required:1,regexp:"regexpName",align:"center"});CreateStylizedInput($(row.cells[3]),{name:"email"+a,value:$(row.cells[3]).innerHTML,style:"width:180px;",required:0,regexp:"regexpEmailChars",align:"center"});ajaxGettext($(row.cells[4]).update(new Element("img",{width:16,height:16,onclick:"javascript:ConferenceSaveNumber('"+a+"');",style:"cursor: pointer;",alt:"save",src:"images/phones/member/voicemail/load.png"})).insert({bottom:"&nbsp;"}).insert({bottom:new Element("a",{href:"javascript:void(ConferenceSaveNumber('"+a+"'));","class":"bluelink"})}).select("a").first(),"innerHTML","UI Msg1874")}function ConferenceValidate(a){var b=true;if(AutoBoxes["number"+a].value==0||!AutoBoxes["number"+a].validate()){AutoBoxes["number"+a].error({code:1});b=false}b=b&&($F("name"+a+"_id").length>0)&&inputChangeValidation({target:$("name"+a+"_id")},"name"+a+"_id_t",regexpName);if($F("name"+a+"_id").length==0){$("name"+a+"_id_t").className="custominput2"}if($F("email"+a+"_id").length>0){b=b&&inputChangeValidation({target:$("email"+a+"_id")},"email"+a+"_id_t",regexpEmail)}return b}function ConferenceSaveNumber(a){if(!ConferenceValidate(a)){return false}row=$(a);ajaxGettext($(row.cells[4]).update(new Element("img",{width:16,height:16,onclick:"ConferenceEditNumber('"+a+"')",style:"cursor: pointer;",alt:"edit",src:"images/icons/edit.png"})).insert({bottom:"&nbsp;"}).insert({bottom:new Element("a",{href:"javascript:void(ConferenceEditNumber('"+a+"'));","class":"bluelink",onclick:"ConferenceEditNumber('"+a+"');"})}).select("a").first(),"innerHTML","UI Msg1871");Try.these(AutoBoxes["number"+a].del());$(row.cells[2]).update($(row.cells[2]).select("input").first().value);$(row.cells[3]).update($(row.cells[3]).select("input").first().value)}function CreateStylizedInput(a,b){new Ajax.Request("/ajax/get_input.php",{method:"post",parameters:b,onComplete:function(c){$(a).update(c.responseText)}.bind(a)})}function ConferencePopupInit(){AjaxChangeTab($("tab0"),{popupname:"meeting",address:"ajax/meeting0.php"})}function SMSPopupInit(){AjaxChangeTab($("tab0"),{popupname:"unlimited_sms",address:"ajax/unlimited_sms0.php"})}function ConferenceChangeType(a){if(a==0){$("shedule_controls").hide();$("record_controls").show();$("shedule_notify").hide();$("shedule_datetime").hide()}else{if(a==1){$("shedule_controls").show();$("record_controls").hide();$("shedule_notify").show();$("shedule_datetime").show()}}}function AjaxChangeTab(a,b){$$("table.profiletab_selected").each(function(c){c.className="profiletab"});a.className="profiletab_selected";$(b.popupname+"_load_spinner").show();$(b.popupname+"_content").hide();new Ajax.Request(b.address,{method:"post",parameters:b,onComplete:function(d){$(this.popupname+"_content").update(d.responseText);$(this.popupname+"_load_spinner").hide();$(this.popupname+"_content").show();if($(this.popupname+"_pers1_scroll_table")){if(c=GetScrollElement(this.popupname+"_scroll_1")){c.Reload()}else{var c=TextScrollSimple(this.popupname);c.Reload()}}if(this.onLoad){this.onLoad()}AddDateTimeCalendar("trigger_shedule_datetime","shedule_datetime_value")}.bind(b)})}function AddDateTimeCalendar(b,a){if($(b)){new Calendar({inputField:a,dateFormat:"%Y-%m-%d %H:%M",trigger:b,bottomBar:false,showTime:true,onSelect:function(){this.hide()}})}}function StartConference(b,c){if($("filename_id")){if($F("filename_id").length==0){$("filename_id_t").className="custominput2";return false}}GetPopupElement(b).Remove();if(c.popupname){var a=GetPopupElement(c.popupname);if(a){a.Remove()}}AjaxChangeTab($("tab1"),{popupname:c.parent_popupname,address:"ajax/meeting1.php"})}function ScheduleConference(b,c){if($("filename_id")){if($F("filename_id").length==0){$("filename_id_t").className="custominput2";return false}}GetPopupElement(b).Remove();if(c.popupname){var a=GetPopupElement(c.popupname);if(a){a.Remove()}}AjaxChangeTab($("tab3"),{popupname:c.parent_popupname,address:"ajax/meeting3.php"})}function ScheduleEditConference(b){var c={parent_popupname:b,type:1};var a=Popupv2({name:"scheduleeditconference",style:1,title:"UI Msg1897",address:"ajax/meeting0.php",parameters:c,filter_color:"#000000",filter_opacity:65});a.EnableHelp("UI Help0301","UI Help0302");a.onLoad=function(){AddDateTimeCalendar("trigger_shedule_datetime","shedule_datetime_value")}}function ScheduleEditSMS(b){var c={parent_popupname:b};var a=Popupv2({name:"scheduleeditsms",style:1,title:"UI Msg1934",address:"ajax/unlimited_sms0.php",parameters:c,filter_color:"#000000",filter_opacity:65});a.EnableHelp("UI Help0315","UI Help0316");a.onLoad=function(){AddDateTimeCalendar("trigger_shedule_datetime","shedule_datetime_value")}}function ScheduleDetailConference(a){var b=Popupv2({name:"scheduledetailsconference",style:1,title:"UI Msg1898",address:"ajax/meeting_info.php",parameters:a,filter_color:"#000000",filter_opacity:65});b.EnableHelp("UI Help0305","UI Help0306")}function HistoryDetailSMS(a){var b=Popupv2({name:"historydetailssms",style:1,title:"UI Msg1932",address:"ajax/unlimited_sms_info2.php",parameters:a,filter_color:"#000000",filter_opacity:65});b.EnableHelp("UI Help0311","UI Help0312")}function ScheduleDetailSMS(a){var b=Popupv2({name:"scheduledetailssms",style:1,title:"UI Msg1933",address:"ajax/unlimited_sms_info.php",parameters:a,filter_color:"#000000",filter_opacity:65});b.EnableHelp("UI Help0313","UI Help0314")}function HistoryDetailConference(b){var a=Popupv2({name:"historydetailsconference",style:1,title:"UI Msg1903",address:"ajax/meeting_info2.php",parameters:b,filter_color:"#000000",filter_opacity:65});a.EnableHelp("UI Help0307","UI Help0308")}var conferenceManagementUpdater=null;function setCMUpdater(){unsetCMUpdater();conferenceManagementUpdater=setTimeout(function(){$("tab1").onclick()},1000*60)}function CMUpdate(){unsetCMUpdater();$("tab1").onclick();setCMUpdater()}function unsetCMUpdater(){if(conferenceManagementUpdater){clearTimeout(conferenceManagementUpdater)}}function outLink(a){document.location.href=a}function CloseSubscribeMascot(){if(!$("subscribe_mascot")){return}$("subscribe_mascot").remove();$$("body").first().setStyle({overflow:"auto",overflowX:"hidden"});$$("html").first().setStyle({overflow:"auto",overflowX:"hidden"})}function CloseSubscribe(){$("subscribe_popup").remove();$$("body").first().setStyle({overflow:"auto",overflowX:"hidden"});$$("html").first().setStyle({overflow:"auto",overflowX:"hidden"})}function ConfirmSubscribe(a){if(a==3){Set_Cookie("subscribed","1",60*60*24*365,"/","","")}new Ajax.Request("/ajax/subscribe2.php",{method:"post",parameters:{code:a},onComplete:function(b){$("subscribe_step2").update(b.responseText);$("subscribe_step1").hide();$("subscribe_step2").show()}})}function RetrySubscribe(){$("subscribe_step2").hide();$("subscribe_step1").show();Recaptcha.reload()}function SubmitSubscribe(){$("email_id_e2").hide();$("email_id_t").className="custominput1";if(!CheckFormFill("subscribe_form",false,false)){return false}new Ajax.Request("/ajax/save_subscribtion.php",{method:"post",parameters:$("subscribe_form").serialize(),onSuccess:function(a){if(a.responseText=="1"){ConfirmSubscribe(0)}else{if(a.responseText=="-1"){$("email_id_e2").show();$("email_id_t").className="custominput2";$("recaptcha_response_field_t").className="custominput1";$("recaptcha_response_field").value="";$("error_recaptcha_2").hide();Recaptcha.reload()}else{if(a.responseText=="4"){ConfirmSubscribe(4)}else{if(a.responseText=="0"){$("recaptcha_response_field_t").className="custominput2";$("recaptcha_response_field").value="";$("error_recaptcha_2").show();Recaptcha.reload()}}}}}})}function SubmitSubscribeCyVoice(){$("email_id_e2").hide();$("email_id_t").className="custominput1";if(!CheckFormFill("subscribe_form",false,false)){return false}new Ajax.Request("/ajax/save_subscribtion_cyvoice.php",{method:"post",parameters:$("subscribe_form").serialize(),onSuccess:function(a){if(a.responseText=="1"){document.location.href="/cyvoice_registration_success.php"}else{if(a.responseText=="-1"){$("email_id_e2").show();$("email_id_t").className="custominput2";$("recaptcha_response_field_t").className="custominput1";$("recaptcha_response_field").value="";$("error_recaptcha_2").hide();Recaptcha.reload()}else{if(a.responseText=="4"){}else{if(a.responseText=="0"){$("recaptcha_response_field_t").className="custominput2";$("recaptcha_response_field").value="";$("error_recaptcha_2").show();Recaptcha.reload()}}}}}})}function LoadSubscribeMascot(){if((Get_Cookie("subscribed")&&$F("subscribe")==0)||/^dev\./.test(document.location.hostname)){return true}new Ajax.Request("/ajax/subscribe_mascot.php",{method:"post",onComplete:function(a){$$("body").first().insert({bottom:a.responseText})}})}function LoadSubscribe(){CloseSubscribeMascot();if(Get_Cookie("subscribed")&&$F("subscribe")==0){return true}new Ajax.Request("/ajax/subscribe.php",{method:"post",onComplete:function(a){$$("body").first().insert({bottom:a.responseText});resizeSubscribeMascot();if($F("subscribe")!=0){ConfirmSubscribe($F("subscribe"))}else{$("subscribe_step1").show()}$$("body").first().scrollTo();$$("body").first().setStyle({overflow:"hidden"});$$("html").first().setStyle({overflow:"hidden"});$("subscribe_popup").appear({duration:0.3});Recaptcha.create($F("CAPTCHA"),"recaptcha_div",{theme:"custom",lang:$F("LANG"),callback:function(){setTimeout(function(){if($F("subscribe")==0){$("firstname_id").focus()}},300)}})}})}function ChangeSelectbox(c,a){var d=$(c);if(!d){return false}var b=$A(d.options).find(function(e){if(e.value==a){return true}});if(!b){return false}d.selectedIndex=b.index;$(c+"_s").update(b.text);return true}function resizeSubscribeMascot(){if($("subscribe_mascot")){var a=document.viewport.getHeight();$("subscribe_mascot").setStyle({height:a+"px"});$("subscribe_mascot_o").height=(a-40);$("subscribe_mascot").scrollTo();$$("body").first().setStyle({overflow:"hidden"});$$("html").first().setStyle({overflow:"hidden"})}else{if($("subscribe_popup")){if(Prototype.Browser.IE==true){var b="absolute";$("subscribe_popup").setStyle({left:Math.floor(((985-$("subscribe_popup").getWidth())/2))+"px",top:Math.floor(((document.viewport.getHeight()-$("subscribe_popup").getHeight())/2))+"px",position:b})}else{var b="fixed";$("subscribe_popup").setStyle({left:Math.floor(((document.viewport.getWidth()-$("subscribe_popup").getWidth())/2))+"px",top:Math.floor(((document.viewport.getHeight()-$("subscribe_popup").getHeight())/2))+"px",position:b})}}}}function refreshTableColors(d,b){j=0;if(b){var c=b.start;var a=b.end}else{var c=1;var a=$(d).rows.length-3}for(i=c;i<a;i++){if($(d).rows[i].id!=""){continue}else{j++}if(j%2){$(d).rows[i].className="greyline"}else{$(d).rows[i].className="whiteline"}}}function RequestNumbersSubmit(b){b=$(b);var a=true;$$("select").each(function(c){if($F(c)==0){$(c.id+"_t").className="customselectbox2";a=false}else{$(c.id+"_t").className="customselectbox1"}});if(!a){return false}new Ajax.Request("/ajax/save_request_phones.php",{method:"post",parameters:b.serialize(),onSuccess:function(c){window.opener.focus();window.close()}})}function RequestNumbersAdd(a){a=$(a);if(a.rows.length<9){new Ajax.Request("/ajax/request_phone_add.php",{method:"post",parameters:{num:a.rows.length-4},onComplete:function(c){var b=$(a.insertRow(a.rows.length-3));b.replace(c.responseText);refreshTableColors(a.id);if(!Prototype.Browser.IE){window.resizeTo(window.outerWidth,window.outerHeight+31)}else{version=parseFloat(navigator.appVersion.split("MSIE")[1]);if(version<7){window.resizeTo(document.body.offsetWidth+6,document.body.offsetHeight+30+31)}else{if(version==7){window.resizeTo(document.body.offsetWidth+10,document.body.offsetHeight+60+31)}else{window.resizeTo(document.body.offsetWidth+10,document.body.offsetHeight+70+31)}}}}})}}function FeedbackSubmit(a){a=$(a);var b=true;if($F("subject_id")==0){$("subject_id_e_f").show();b=b&&false}else{$("subject_id_e_f").hide()}$A($w("firstname lastname email phone message recaptcha_response_field")).each(function(c){if($F(c)==""){$(c+"_e_f").show();b=b&&false}else{$(c+"_e_f").hide();b=b&&true}});if(!regexpEmail.test($F("email"))){b=false}if(!b){return false}new Ajax.Request("/ajax/save_feedback.php",{method:"post",parameters:a.serialize(),onComplete:function(c){$("wiki_msg").hide();if(c.responseText=="1"){$("wiki_msg").setStyle({color:"#139538"});ajaxGettext($("wiki_msg"),"innerHTML","HP Msg0525","show");a.reset()}else{if(c.responseText=="-1"){$("error_recaptcha_2").show();$("wiki_msg").setStyle({color:"#ef3e33"});ajaxGettext($("wiki_msg"),"innerHTML","Error0048","show")}else{$("wiki_msg").setStyle({color:"#ef3e33"});ajaxGettext($("wiki_msg"),"innerHTML","Error0052","show")}}Recaptcha.reload()}})}function SuggestionSubmit(a){a=$(a);var b=true;$("error_recaptcha_2").hide();$A($w("firstname lastname email suggestion_type_id suggestion recaptcha_response_field")).each(function(c){if($F(c)==""){$(c+"_e_f").show();b=b&&false}else{$(c+"_e_f").hide();b=b&&true}});if(!regexpEmail.test($F("email"))){b=false}if(!b){return false}new Ajax.Request("/ajax/save_suggestion.php",{method:"post",parameters:a.serialize(),onComplete:function(c){$("wiki_msg").hide();if(c.responseText=="1"){$("wiki_msg").setStyle({color:"#139538"});ajaxGettext($("wiki_msg"),"innerHTML","HP Msg0525","show");a.reset()}else{if(c.responseText=="-1"){$("error_recaptcha_2").show();$("wiki_msg").setStyle({color:"#ef3e33"});ajaxGettext($("wiki_msg"),"innerHTML","Error0048","show")}else{$("wiki_msg").setStyle({color:"#ef3e33"});ajaxGettext($("wiki_msg"),"innerHTML","Error0052","show")}}Recaptcha.reload()}})}function ReportsOpenPrint(a){window.open("reports_print.php?"+Object.toQueryString(a),"_blank")}function ReportsPrint(){window.print()}function SortTablePrint(a){document.location.search="?"+Object.toQueryString(a)}function OpenHWConfig(b){var a=QuickNewPopupHttp("expert",1,"UI Msg0779","ajax/hw_mgmt_context.php","serial="+b+"&field=","#000000",65);a.EnableHelp("UI Help0001","UI Help0002///UI Help0008///UI Help0010///UI Help0012///UI Help0014///UI Help0016///UI Help0006///UI Help0018");a.onLoad=function(){this.SetTitle($F("expert_caption"),true)}}function changecss(g,a,f){var c;var e=false;for(var b=0;b<document.styleSheets.length;b++){if(document.styleSheets[b]["rules"]){c="rules"}else{if(document.styleSheets[b]["cssRules"]){c="cssRules"}else{}}for(var d=0;d<document.styleSheets[b][c].length;d++){if(document.styleSheets[b][c][d].selectorText==g){if(document.styleSheets[b][c][d].style[a]){document.styleSheets[b][c][d].style[a]=f;e=true;break}}}if(!e){if(document.styleSheets[b].insertRule){document.styleSheets[b].insertRule(g+" { "+a+": "+f+"; }",document.styleSheets[b][c].length)}else{if(document.styleSheets[b].addRule){document.styleSheets[b].addRule(g,a+": "+f+";")}}}}}function SaveBetaProfile(a){$("agree_id_d").className="customcheckbox1";$("agree_e").hide();if(!$("agree_id").checked){$("agree_id_d").className="customcheckbox2";$("agree_e").show();return false}if(!CheckFormFill(a)){return false}new Ajax.Request("/ajax/save_beta_profile.php",{method:"post",parameters:$(a).serialize(true),onComplete:function(b){if(b.responseText==1){document.location.href="/cyvoice_downloads.php"}}})}function ChangeBetaPassword(b){var a=true;if($F("password_id").strip().length==0){$("password_id_t").className="custominput2";$("password_id_e_f").show();a=false}else{$("password_id_t").className="custominput1";$("password_id_e_f").hide()}if($F("password2_id").strip().length==0){$("password2_id_t").className="custominput2";$("password2_id_e_f").show();a=false}else{$("password2_id_t").className="custominput1";$("password2_id_e_f").hide()}if($F("password_id")!=$F("password2_id")){$("password2_id_e").show();$("password_id_t").className="custominput2";$("password2_id_t").className="custominput2";a=false}else{$("password2_id_e").hide();$("password_id_t").className="custominput1";$("password2_id_t").className="custominput1"}if(a){new Ajax.Request("/ajax/save_beta_profile_password.php",{method:"post",parameters:{p:md5($F("password_id"))},onSuccess:function(c){window.close()}})}}function ChangeBetaEmail(b){$("email_id_e2").hide();$("email_id_t").className="custominput1";var a=CheckFormFill(b);if($F("email_id").strip().length==0){$("email_id_t").className="custominput2";$("email_id_e_f").show();a=false}else{$("email_id_t").className="custominput1";$("email_id_e_f").hide()}if(!regexpEmail.test($F("email_id"))){a=false}if(a){new Ajax.Request("/ajax/save_beta_profile_email.php",{method:"post",parameters:{e:$F("email_id")},onSuccess:function(c){if(c.responseText==1){window.close()}else{$("email_id_e2").show();$("email_id_t").className="custominput2"}}})}}function SignInCyVoice(){var a=true;if($F("email").strip().length==0){$("email_t").className="custominput2";$("email_e_f").show();a=false}else{$("email_t").className="custominput1";$("email_e_f").hide()}if($F("password").strip().length==0){$("password_t").className="custominput2";$("password_e_f").show();a=false}else{$("password_t").className="custominput1";$("password_e_f").hide()}if(a){params={email:$F("email"),password:(($("password").value.length!=32)?md5($F("password")):$F("password"))};if($F("remember_me")==1){Set_Cookie("cy_voice[email]",params.email,60*60*24*365,"/","","");Set_Cookie("cy_voice[password]",params.password,60*60*24*365,"/","","")}new Ajax.Request("/ajax/cyvoice_signin.php",{method:"post",parameters:params,onComplete:function(b){if(b.responseText=="1"){document.location.href="https://"+document.location.hostname+"/cyvoice_beta_testers.php"}else{if(b.responseText=="2"){document.location.href="https://"+document.location.hostname+"/cyvoice_downloads.php"}else{document.location.search="?error="+b.responseText}}}})}}function setHomepage(b){if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(b)}else{if(window.sidebar){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(c){alert("this action was aviod by your browser，if you want to enable，please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true")}}var a=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);a.setCharPref("browser.startup.homepage",b)}}}function setFavorite(a){if(window.sidebar){window.sidebar.addPanel(document.title,a,"")}else{if(window.external){window.external.AddFavorite(a,document.title)}else{if(window.opera&&window.print){return true}}}};
