var msg="WARNING: PORNOGRAPHIC WEBSITE--STRICTLY PROHIBITED TO ANYONE UNDER 18\n\n"+"This site is strictly reserved for a mature and cautioned audience as required\n"+"by current law. This site contains X rated text, photographic and video images\n"+"which might be found offensive.  \n\n"+"CLICK OK TO ENTER, CANCEL TO LEAVE.\n\n";

//var url_refus = "http://www.google.com";



var w = window.location.search.match(/[\?&]w=(\d*)/); if (w) w = w[1];

var wid = window.location.search.match(/[\?&]id=(\d+)/); if (wid) wid= wid[1];

var tracker = window.location.search.match(/[\?&]tracker=([^&]+)/); if (tracker) tracker= tracker[1];

if (wid == null) wid = '';

if (tracker == null) tracker = '';

if (typeof url_refus == 'undefined'){
	var url_refus = "http://www.camsympa.com?so=1&id="+wid+"&tracker="+tracker;
}
else{
	glue = (url_refus.charAt(window.location.href.length-1) == '?') ? '' : (url_refus.indexOf('?') == -1 ? '?' : '&')
	url_refus += glue + 'tracker=' + tracker;
}

if (!(w=='0' || !w && wid))

{

	alert_result = confirm(msg);

	if (alert_result)

	{

		if (window.location.href.match(/(\?|&)w=1/))

		{

			new_url = window.location.href.replace(/(\?|&)w=1/, '$1w=0')

		}

		else

		{

			glue = (window.location.href.charAt(window.location.href.length-1) == '?') ? '' : (window.location.href.indexOf('?') == -1 ? '?' : '&')

			new_url = window.location.href += glue + 'w=0';

		}

		window.location.replace(new_url);

	}

	else

	{

		window.location.replace(url_refus)

	}

}


