if (document.layers) { 
document.captureEvents(Event.CLICK);
} 
document.onclick = function (evt) { 
var target = document.all ? event.srcElement : evt.target;
if (target.href) {
if ((target.href.indexOf('http://www.cullenfunds.com') != -1) || (target.href.indexOf('http://cullenfunds.com') != -1) || (target.href.indexOf('http://marketing.alpsinc.com') != -1) || (target.href.indexOf('mailto:') != -1) || (target.href.indexOf('https://secure.alpstaweb.com') != -1)){
return true;
} else {
return confirm ('You are now leaving www.cullenfunds.com  The Cullen Funds are not responsible for the content set forth on external websites. No judgment or warranty is made with respect to the accuracy, timeliness, or suitability of the content of information on the site regarding the Cullen Funds, and the Cullen Funds takes no responsibility thereof.  To return to the Cullen Funds, simply close the second browser window.  Thank you.  Click "OK" to continue.');
}
} 
}

/*var site_arr = DomainArr;
if(!Array.indexOf){
	    Array.prototype.indexOf = function(obj){
	        for(var i=0; i<this.length; i++){
	            if(this[i]==obj){
	                return i;
	            }
	        }
	        return -1;
	    }
	}
////

document.onclick = function (evt) {
var target = document.all ? event.srcElement : evt.target;
if (target.tagName.toLowerCase() == 'img') {
	//alert('You clicked an image to '+target.parentNode);
	//var targ = target.parentNode;//.replace(":80", "");
	var targ = target.firstChild;
} else if(target.href){	
	var targ = target.host.replace(":80", "");
	var targ = "http://"+targ;
}
//alert(targ);
if (targ){
	if (DomainArr.indexOf(targ) > -1) {
		return true;
	} else {
	return confirm ('You are now leaving www.cullenfunds.com  The Cullen Funds are not responsible for the content set forth on external websites. No judgment or warranty is made with respect to the accuracy, timeliness, or suitability of the content of information on the site regarding the Cullen Funds, and the Cullen Funds takes no responsibility thereof.  To return to the Cullen Funds, simply close the second browser window.  Thank you.  Click "OK" to continue.');
	}
}
}*/
