var popurls=new Array()
popurls[0]="http://www.zanox-affiliate.de/ppc/?1206942C960622716T"

function openpopup(popurl){
var winpops=window.open(popurl,"","width=,height=,toolbar,location,directories,status,scrollbars,menubar,resizable")
winpops.blur()
window.focus()
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { 
      offset += search.length
      end = document.cookie.indexOf(";", offset);
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('sportpop')==''){
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
document.cookie="sportpop=yes"
}
}

loadornot()
