function wondofakeexit() { var links = document.getElementsByTagName("a"); var regjs = new RegExp("javascript","i"); var wmtar = 1 ; for ( var i= 0 ; i < links.length ; i++ ) { var linkhref = links[i].getAttribute("href") ; var linkclick = links[i].getAttribute("onclick") ; if ( !linkclick && !linkhref.match(/javascript/i) ) { if ( wmtar == 0 ) { links[i].removeAttribute("target") ; } var linktarget = links[i].getAttribute("target") ; links[i].onclick = new Function("return ( wondofakepopup('" + linkhref + "','" + linktarget + "') ) ;") ; } } } function wondofakepopup(linkhref,linktarget) { var wondocookiewm = 1 ; wondofakeexitgo = wondogetCookie('wondofakeexitgo') ; if ( wondofakeexitgo != 1 ) { var wondofakepopupw = window.open("http://www.xloadz.com/?wid=2&sid=0&aktion=popdown","osexitwin"); wondofakepopupw.blur(); window.focus() ; if ( wondocookiewm == 1 ) { wondosetCookie('wondofakeexitgo','1') ; } } return true ; } function wondosetCookie(c_name,value,expiredays) { var exdate=new Date() ; exdate.setDate(exdate.getDate()+expiredays) ; document.cookie=c_name + "=" + escape(value) + ( (expiredays==null) ? "" : ";expires=" + exdate.toGMTString() ) ; } function wondogetCookie(c_name) { if ( document.cookie.length > 0 ) { c_start = document.cookie.indexOf(c_name + "=") ; if ( c_start != -1 ) { c_start = c_start + c_name.length+1 ; c_end = document.cookie.indexOf(";",c_start) ; if ( c_end == -1 ) { c_end=document.cookie.length ; } return unescape(document.cookie.substring(c_start,c_end)) ; } } return "" ; } if ( window.addEventListener ) { window.addEventListener("load", wondofakeexit, false) ; } else if ( window.attachEvent ) { window.attachEvent("onload", wondofakeexit) ; } else if ( document.getElementById ) { window.onload = wondofakeexit ; }