  if(document.location.search != "")  {    obj = document.location.search.substr(document.location.search.indexOf('?') + 1)    address = (obj=="true") ? true : false ;  } else {    address=true  }  function toggleAddress(isvis)  {    add = (address) ? "no" : "yes" ;    if(isvis != "")  {      add = isvis    }    q = (add=="yes") ? false : true ;    if(q) {      address=false    } else {      address=true    }    window.open("site.html?" + address,"", "toolbar=" + add + ",location=" + add + ",status=" + add + "menubar=" + add + "scrollbars=" + add);    self.opener = ""    self.close()  }  window.onload = function() {    var links = document.getElementsByTagName('a');    for (var i=0;i < links.length;i++) {        if (links[i].className == 'new-window') {            links[i].onclick = function() {                window.open(this.href);                return false;            };        }        if (links[i].className == 'new-popup') {            links[i].onclick = function() {                var w = screen.availWidth;                var h = screen.availHeight;                windowprops = 'toolbars=0, location=0, directories=0, status=0, menubars=0, width='+w+', height='+h+', top=0, left=0, resizable=1, scrollbars=1';                NewWindow=window.open(this.href, 'Popup', windowprops);                NewWindow.focus();                return false;            };        }    }};
