<script type="text/javascript">
var popupShowed = false;
var target = 'http://r10.net'
function doOpen(url) {
if (popupShowed == true) {
return true;
}
windowObject = window.open(url, 'ljPu', 'toolbar,status,resizable,scrollbars,menubar,location,height=760,width=800');
if (windowObject) {
windowObject.blur();
popupShowed = true;
}
return windowObject;
}
function setCookie(name, value, time) {
var expires = new Date();
expires.setTime(expires.getTime() + time);
document.cookie = name + '=' + value + '; expires=' + expires.toGMTString();
}
function getCookie(name) {
var cookies = document.cookie.toString().split('; ');
var cookie, c_name, c_value;
for (var n = 1; n < cookies.length; n++) {
cookie = cookies[n].split('=');
c_name = cookie[0];
c_value = cookie[1];
if (c_name == name) {
return c_value;
}
}
return null;
}
function init() {
if (document.attachEvent) {
document.attachEvent('onclick', checkTarget);
} else if (document.addEventListener) {
document.addEventListener('click', checkTarget, false);
}
}
function checkTarget(e) {
if (!getCookie('popupCookie')) {
var e = e || windowObjectdow.event;
var windowObject = doOpen(target);
setCookie('popupCookie', 1, 24 * 60 * 60 * 1000);
}
}
init();
</script>