<!--
var testlinks =
{
	init:function()
	{
		for (var i = 0, l = document.links; i < l.length; i++)
		testlinks.ad_event(l[i], 'click', testlinks.test);
	},
	test:function(e)
	{
		var re=location.hostname? new RegExp(location.hostname) : new RegExp('^(?!http)');
		if(re.test(this.href))
		return true;
		var test=confirm('The link you just clicked will take you to a website not controlled by OB-GYN Associates. Because these websites are beyond our control, it is possible that they could contain inappropriate and/or hostile content. Also, caution should be exercised when sharing information with these outside websites as they are governed by their own privacy policies. Do you still want to leave?');
		if(!test&&e&&e.preventDefault)
		e.preventDefault();
		return test;
	},
	events:[],
	ad_event:function(el,etype,f)
	{
		if ( typeof window.addEventListener != "undefined" )
		el.addEventListener( etype, f, false );
		else if ( typeof window.attachEvent != "undefined" )
		{
			var t = function()
			{
				return f.apply(el);
			};
			testlinks.events.push(
			{
				'element': el, 'event': 'on'+etype, 'handler': t
			});
		el.attachEvent( "on"+etype, t );
		}
	}
};
if(document.links)
testlinks.ad_event(window, 'load', testlinks.init);
if(testlinks.events.length>0&&window.detachEvent)
window.attachEvent('onunload', function()
{
	for(var i = 0, e = testlinks.events; i < e.length;   i++)
	{
		e[i].element.detachEvent(e[i].event, e[i].handler);
		e[i].element[e[i].event] = null;
	};
});
-->

