var SoundPlayObj=null;function SoundPlayStop(){if(SoundPlayObj){SoundPlayObj.setAttribute("src","");document.body.removeChild(SoundPlayObj);SoundPlayObj=null;}};function SoundPlayBgsound(File){SoundPlayStop();SoundPlayObj=document.createElement("bgsound");SoundPlayObj.setAttribute("autostart",true);SoundPlayObj.setAttribute("id","SoundObj");SoundPlayObj.setAttribute("volume","0");SoundPlayObj.setAttribute("loop","1");SoundPlayObj.setAttribute("src",File);document.getElementsByTagName("body")[0].appendChild(SoundPlayObj);};function SoundPlayEmbed(File){SoundPlayStop();SoundPlayObj=document.createElement("embed");SoundPlayObj.setAttribute("src",File);SoundPlayObj.setAttribute("hidden",true);SoundPlayObj.setAttribute("autostart",true);SoundPlayObj.setAttribute("id","SoundObj");document.getElementsByTagName("body")[0].appendChild(SoundPlayObj);};function SoundPlay(SoundTag,SoundFile){if(navigator.appName==="Microsoft Internet Explorer"){SoundPlayBgsound(SoundFile);}else{SoundPlayEmbed(SoundFile);}};var LoadFileReq,LoadFileFile,LoadFileCommand1,LoadFileCommand2;function xmlhttpGetreq(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else{if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP");}}};function LoadFileReady(){if(LoadFileReq.readyState===4){if(LoadFileReq.status===200){eval(LoadFileCommand1);eval(LoadFileCommand2);}else{}}};function LoadFile(file,command1,command2){LoadFileFile=file;LoadFileCommand1=command1;LoadFileCommand2=command2;LoadFileReq=xmlhttpGetreq();LoadFileReq.onreadystatechange=LoadFileReady;LoadFileReq.open("GET",file,true);LoadFileReq.send(null);};function SoundLoadPlay(tag,file,command){LoadFile(file,command,"SoundPlay('"+tag+"', '"+file+"')");};function MiscDdlGet(o0){if(o0.selectedIndex<0){return "";}else{return o0[o0.selectedIndex].text;}};function MiscConversationTextWww(aO,DelL,DelR){aO=aO.replace(/((http|https):\/\/www)/ig,"www");aO=aO.replace(/((http|https):\/\/[^\s\]]*)/ig,DelL+"<a href='$1' target=_blank rel='nofollow'>$1</a>"+DelR);return aO.replace(/(www.[^\s\]]*)/ig,DelL+"<a href='http://$1' target=_blank rel='nofollow'>$1</a>"+DelR);};function MiscDateValidate(entry){var rex=/\b(1[0-2]|0?[1-9])\/(0?[1-9]|[12][0-9]|3[01])\/\d\d\d\d/;return rex.test(entry);};function MiscTransRemoveHtml(aO,Rep){aO=aO.replace(/<(.|\n)*?>/ig,Rep);return aO;};function MiscTransRemoveUserProp(aO,Rep){aO=aO.replace(/<span class='UserProp'>(.|\n)*?<\/span>/ig,Rep);return aO;}
