function cjax() { var args = cjax.arguments; if (args[4] == 1) {loading(args[1])}; if (document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } if (x) { x.onreadystatechange = function() { if (x.readyState == 4 && x.status == 200) { obj = document.getElementById(args[1]); if (obj.type != "textarea") {obj.innerHTML = x.responseText} else {obj.value = x.responseText} } } x.open("POST", args[0], args[2].toUpperCase()); x.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); x.setRequestHeader("Content-length", args[3].length); x.setRequestHeader("Connection", "close"); x.send(args[3]) } } function pjax() { var args = pjax.arguments; if (document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } if (x) { x.onreadystatechange = function() { if (x.readyState == 4 && x.status == 200) { obj = document.getElementById(args[1]); obj.innerHTML += x.responseText } } x.open("POST", args[0], args[2].toUpperCase()); x.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); x.setRequestHeader("Content-length", args[3].length); x.setRequestHeader("Connection", "close"); x.send(args[3]) } } function jjax() { var args = jjax.arguments; if (document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } if (x) { x.onreadystatechange = function() { if (x.readyState == 4 && x.status == 200) { var gethead = document.getElementsByTagName("head")[0]; js = document.createElement("script"); js.setAttribute("type","text/javascript"); gethead.appendChild(js); js.text = x.responseText; } } x.open("POST", args[0], args[1]); x.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); x.setRequestHeader("Content-length", args[2].length); x.setRequestHeader("Connection", "close"); x.send(args[2]) } } var Jtnode = 0; function scrolltop() { document.getElementById("top").scrollIntoView(); } function getrandy() {return Math.random()} function winstat(a,b) { window.status = " nodeID : "+a+" --- treenodeID : "+b } function memletter(section,alpha,clubid,sortr,psize,pagenum) {document.location.href="?section="+section+"&alpha="+alpha+"&clubid="+clubid+"&psize="+psize+"&sortr="+sortr+"&pagenum="+pagenum+"&change=1"} function mycontacts(section,gid,sortr,psize,pagenum) {document.location.href="?section="+section+"&gid="+gid+"&psize="+psize+"&sortr="+sortr+"&pagenum="+pagenum} function mycontactsaction(tvalue) { if (tvalue == 'add to group') {showElement('select-group');} else {hideElement('select-group');}} function addcontact(myid,jetsid) { window.frames["lz1"].location="/inc/addcontact.php?mid="+myid+"&jid="+jetsid+"&randy="+getrandy() } function articlearchive(thissection,newsection) {if (newsection == 0) {document.location.href="?section="+thissection+"&archive=2"} else {document.location.href="?section="+newsection+"&archive=1"}} function outsidearchive(thissection,newsection,tnode) {if (newsection != "") {document.location.href="?section="+thissection+"&tnode="+tnode+"&type="+newsection}} function wizzy() { if (document.getElementById("sText1")) {var oFCKeditor = new FCKeditor('sText1',400,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} if (document.getElementById("sText2")) {var oFCKeditor = new FCKeditor('sText2',400,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} if (document.getElementById("sBiography")) {var oFCKeditor = new FCKeditor('sBiography',400,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/admin/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} if (document.getElementById("sBio")) {var oFCKeditor = new FCKeditor('sBio',320,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} if (document.getElementById("sBody")) {var oFCKeditor = new FCKeditor('sBody',420,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} if (document.getElementById("sDescription")) {var oFCKeditor = new FCKeditor('sDescription',320,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} if (document.getElementById("body-text")) {var oFCKeditor = new FCKeditor('body-text',330,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} //if (document.getElementById("comment-text")) {var oFCKeditor = new FCKeditor('comment-text',330,200,'BasicAdmin') ; oFCKeditor.BasePath = "/site_dev/_js/fckeditor/"; oFCKeditor.ReplaceTextarea();} //list out the editor fields for validation purposes //fckEditorFlds = ["sText1","sText2","sBiography","body-text"]; } window.onload = function() { wizzy() } function tdelay(fn,timr) {t=setTimeout(fn,timr)} function rload() {document.location.href=document.location.href;} function txtsze(tsize,mid) { cjax("/member/phfnX.php", "divhole", "false", "modmetadata=2&cjax=1&type=3&mid="+mid+"&lang=1&data="+tsize+"&randy="+getrandy()); tdelay(rload,500);} function switchcomm(thiscomm,mid) {cjax("/member/phfnX.php", "divhole", "false", "modmetadata=2&cjax=1&type=3&mid="+mid+"&lang=1&data="+thiscomm+"&randy="+getrandy()); tdelay(rload,500); } function modme(mod,mid) { if (!mod) {thisdata = -1} else {thisdata = 1} cjax("/member/phfnX.php", "divhole", "false", "modmetadata=1&cjax=1&type=3&mid="+mid+"&lang=1&data="+thisdata+"&randy="+getrandy()); tdelay(rload,500); } function commblog(tnid,cid) { obj = document.getElementById("ul"+Jtnode); if (obj) {obj.innerHTML = ""} cjax("/admin/inc/community/commsubmenu.php", "ul"+tnid, "false", "tnid="+tnid+"&cid="+cid+"&randy="+getrandy()); Jtnode = tnid; cjax("/admin/inc/community/commblog.php", "maincol", "false", "tnid="+tnid+"&cid="+cid+"&randy="+getrandy()); tdelay(wizzy,300)} function commsubview(tnid) {cjax("/admin/inc/community/commsubview.php", "maincol", "false", "tnid="+tnid+"&randy="+getrandy()); tdelay(wizzy,300)}