var home_url = 'http://zordis.com'; var home_dir = ''; dochref = document.location.href.substr(document.location.href.search('/')+2, 1000); if(dochref.search('/') == -1){ $thisurl = document.location.href.substr(0,document.location.href.search('/')+2) + dochref; } else { $thisurl = document.location.href.substr(0,document.location.href.search('/')+2) + dochref.substr(0, dochref.search('/')); } $thisurl = $thisurl + ''; var xmlhttp /*@cc_on @*/ /*@if (@_jscript_version >= 5) try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") } catch (E) { xmlhttp=false } } @else xmlhttp=false @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest (); } catch (e) { xmlhttp = false} } function myXMLHttpRequest () { var xmlhttplocal; try { xmlhttplocal = new ActiveXObject ("Msxml2.XMLHTTP")} catch (e) { try { xmlhttplocal = new ActiveXObject ("Microsoft.XMLHTTP")} catch (E) { xmlhttplocal = false; } } if (!xmlhttplocal && typeof XMLHttpRequest != 'undefined') { try { var xmlhttplocal = new XMLHttpRequest (); } catch (e) { var xmlhttplocal = false; } } return (xmlhttplocal); } var mnmxmlhttp = Array (); var xvotesString = Array (); var mnmPrevColor = Array (); var responsestring = Array (); var myxmlhttp = Array (); var responseString = new String; function ActionConfirm(url) { if (confirm('Are you sure you want to do this action?')) window.location.href= url; } function ApproveComment(id) { if (xmlhttp) { url = "/admin_comments.php"; content = "id=" + id + "&action=approve"; target = document.getElementById("adminlinks-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function RemoveComment(id) { if (xmlhttp) { url = "/admin_comments.php"; content = "id=" + id + "&action=remove"; target = document.getElementById("adminlinks-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function ApproveSite(id) { if (xmlhttp) { url = "/admin_sites.php"; content = "id=" + id + "&action=approve"; target = document.getElementById("siteapprove-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function RemovePost(id) { if (confirm('Are you sure you want to remove this post?')) if (xmlhttp) { url = "/manage_posts.php"; content = "id=" + id + "&action=remove"; target = document.getElementById("postremove-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function RemoveUser(id) { if (confirm('Are you sure you want to remove this user?')) if (xmlhttp) { url = "/admin_users.php"; content = "id=" + id + "&action=remove"; target = document.getElementById("adminlinks-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function UserVote(id) { if (xmlhttp) { url = "/user_vote.php"; content = "id=" + id; target = document.getElementById("uxvotes-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function BanIP(id, ip, flag) { if (xmlhttp) { url = "/banip.php"; content = "ip=" + ip + "&flag=" + flag; target = document.getElementById("xbanip-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function Upload(id) { if (xmlhttp) { url = "/user_vote.php"; content = "id=" + id; target = document.getElementById("uxvotes-"+id); target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = result; } } } } } function ItemVisit(id) { if (xmlhttp) { url = "/item_visit.php"; content = "id=" + id; target = document.getElementById("itemvisits-"+id); //target.innerHTML = "wait..."; mnmxmlhttp[0] = new myXMLHttpRequest (); if (mnmxmlhttp) { mnmxmlhttp[0].open ("POST", url, true); mnmxmlhttp[0].setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); mnmxmlhttp[0].send(content); mnmxmlhttp[0].onreadystatechange = function () { if (mnmxmlhttp[0].readyState == 4) { result = mnmxmlhttp[0].responseText; target.innerHTML = "x"; } } } } }