var __showAds = true;
Exit Info
function xeGetCookie(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 ""
}
function xeSetCooKie(name,value)
{
var argv=xeSetCooKie.arguments;
var argc=xeSetCooKie.arguments.length
var expires=(argc>2) ? argv[2] : null
var path=(argc>3) ? argv[3] : null
var domain=(argc>4) ? argv[4] : null
var secure=(argc>5) ? argv[5] : false
document.cookie=name + "=" +escape(value) +
((expires==null) ? "" :( ";expires=" + expires.toGMTString())) +
((path==null) ? "" :( ";path=" + path)) +
((domain==null) ? "" :( ";domain=" + domain)) +
((secure==true) ? "; secure " : "")
}
// written by Dean Edwards, 2005
// with input from Tino Zijdel
// http://dean.edwards.name/weblog/2005/10/add-event/
function addEvent(element, type, handler) {
// assign each event handler a unique ID
if (!handler.$$guid) handler.$$guid = addEvent.guid++;
// create a hash table of event types for the element
if (!element.events) element.events = {};
// create a hash table of event handlers for each element/event pair
var handlers = element.events[type];
if (!handlers) {
handlers = element.events[type] = {};
// store the existing event handler (if there is one)
if (element["on" + type]) {
handlers[0] = element["on" + type];
}
}
// store the event handler in the hash table
handlers[handler.$$guid] = handler;
// assign a global event handler to do all the work
element["on" + type] = handleEvent;
};
// a counter used to create unique IDs
addEvent.guid = 1;
function removeEvent(element, type, handler) {
// delete the event handler from the hash table
if (element.events && element.events[type]) {
delete element.events[type][handler.$$guid];
}
};
function handleEvent(event) {
var returnValue = true;
// grab the event object (IE uses a global event object)
event = event || fixEvent(window.event);
// get a reference to the hash table of event handlers
var handlers = this.events[event.type];
// execute each event handler
for (var i in handlers) {
this.$$handleEvent = handlers[i];
if (this.$$handleEvent(event) === false) {
returnValue = false;
}
}
return returnValue;
};
function fixEvent(event) {
// add W3C standard event methods
event.preventDefault = fixEvent.preventDefault;
event.stopPropagation = fixEvent.stopPropagation;
return event;
};
fixEvent.preventDefault = function() {
this.returnValue = false;
};
fixEvent.stopPropagation = function() {
this.cancelBubble = true;
};
// make sure the popups don't show up when our links are clicked
function protectInternalLinksAndForms() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i= maxTimes) {
showAd = false;
}
if (showExitPopup && showAd) {
xeSetCooKie('eNumTimes', numTimes + 1);
window.open(__exitAdURL, "ExitAd", "width=680,height=680,top=,left=,status=no,toolbar=no,menubar=no,scrollbars=yes");
/*
var myAd = window.showModalDialog(
__exitAdURL,
"ExitAd",
"dialogHeight: 680px; dialogWidth: 640px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: no; resizable: Yes; status: no;"
);
*/
}
}
addEvent(window, "unload", showExitAd);