d=window.document;
function breakframe(){if(top && top != this){top.location.href=this.location.href;}}
function cookie_delete(name,path,domain){d.cookie=name+"="+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}
function cookie_set(name,value,expires,path,domain,secure){d.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");}
function cookie_get(name){var c=d.cookie;var find=name+"=";var ret="";if(c.length>0){var o=c.indexOf(find);if(o!=-1){o+=find.length;var end=c.indexOf(";",o);if(end==-1){end=c.length;}ret=unescape(c.substring(o,end));}}return ret;}
function age_check(){
	var s=cookie_get("agecheck");
	if(s!="agree"){
		var s="SEXUAL CONTENT WARNING\n===================\n";
		s+="Your are about to entire an adult web site dedicated to\n";
		s+="pornography! This site comtains pictures of naked women\n";
		s+="and adults engaged in sex acts.\n";
		s+="\nTO ENTER THIS SITE YOU\n===================\n";
		s+="- MUST be at least 21 years of age.\n";
		s+="- MUST live in a community where it's legal to view porn.\n";
		s+="- MUST not expose minors to the content on this site.\n";
		s+="- Agree that you are soley responsible for any legal\n";
		s+="   issues that may arise from you viewing this site.\n";
		s+="- Affirm and swear that viewing/downloading/receiving\n";
		s+="   sexually explicit materials does not violate the\n";
		s+="   standards of your community.\n";
		s+="- Understand and agree to these terms.\n";
		s+="\nNOTE:\n===================\n";
		s+="If you have cookies enabled and you enter this site, your\n";
		s+="response is saved so that you don't receive this warning again.";
		if(!confirm(s)){
			cookie_delete("agecheck", "/");
			this.location.href='http://www.ultraherbal.com/?aid=581585';
			return;
		}
	}
	var now = new Date();
	now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
	cookie_set("agecheck", "agree", now, "/");
}
breakframe();
//alert(document.cookie);
//age_check();
