   function getRank(domain)
   {
         /*document.writeln("<div style='width: 125px; text-align: center; position: relative; padding: 0; margin: 0;'>");
         document.writeln("<a target='_blank' href='http://www.domainsuperstar.com/' style='border: 0;'><img alt='Top 100 Domaining Blogs' src='http://www.domainsuperstar.com/IMAGES/Domain-Superstar-Top-100.png'></img></a>");
         document.writeln("<div id='rankDiv' style='position: absolute; color: #33607F; font-family: arial, sans-serif; font-weight:bold; font-size: 12pt; bottom: 98px; left: 48px; padding: 0; margin: 0;'></div>");
         document.writeln("<br/><a style='color: #33607F; text-decoration: underline; font-family: arial, sans-serif; font-size: 10pt;' target='_blank' href='http://www.domainsuperstar.com'>Domain Names</a>");
         document.writeln("</div>");*/
         
      xmlhttpPost('http://www.creditcardchaser.com/financeblogscripts/getRank.php', 'domain=' + domain, function(response) {
         document.getElementById('rankDiv').innerHTML = "#" + response;
      });
   }

      function xmlhttpPost(strURL, queryString, callBack) {
          var xmlHttpReq = false;
          var self = this;
          // Mozilla/Safari
          if (window.XMLHttpRequest) {
              self.xmlHttpReq = new XMLHttpRequest();
          }
          // IE
          else if (window.ActiveXObject) {
              self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
          }
          self.xmlHttpReq.open('POST', strURL, true);
          self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
          self.xmlHttpReq.onreadystatechange = function() {
              if (self.xmlHttpReq.readyState == 4) {
                  callBack(self.xmlHttpReq.responseText);
              }
          }
          self.xmlHttpReq.send(queryString);
      }

      //getRank(document.domain);



    function xss_ajax(url) {
        var script_id = null;
        var script = document.createElement('script');
        script.setAttribute('type', 'text/javascript');
        script.setAttribute('src', url);
        script.setAttribute('id', 'script_id');

        script_id = document.getElementById('script_id');
        if(script_id){
            document.getElementsByTagName('head')[0].removeChild(script_id);
        }

        // Insert <script> into DOM
        document.getElementsByTagName('head')[0].appendChild(script);
    }

    function callback(data) {
        document.getElementById('rankDiv').innerHTML = "#" + data['rank'];
        document.getElementById('rankDiv2').innerHTML = "#" + data['rank'];
    }

function getRank2(domain)
{
   
    var url = "http://www.creditcardchaser.com/financeblogscripts/getRank.php?action=cross&domain=" + domain;
    xss_ajax(url);
}
getRank2(document.domain);

//<button onclick=";">Get Data</button>