function adult_warning() {
	var message="This section or product is intended for mature audiences. The items sold within will not be sold to minors or where prohibited by law. If you are not old enough or not permitted by law to view these materials, please hit cancel.";

	var stay=confirm(message);
	if (!stay) return false;
	else return true;	
}
function adult_search_warning() {
	if (document.getElementById('search-form').adult_search.checked) {
		var message="By checking this box the search will include content for mature audiences. The items sold within will not be sold to minors or where prohibited by law. If you are not old enough or not permitted by law to view these materials, please hit cancel.";

		var stay=confirm(message);
		if (!stay) return false;
		else return true;	
	}
}
function check_poll() {
	var poll=document.poll_form.elements['poll_value'];
	var error=0;
	var temp=0;
	for (var i=0; i<poll.length; i++) {
		if(poll[i].checked == false)
			temp=temp+1;
		if(poll[i].checked == true) {
			var poll_selected=poll[i].value;
		}
	}
	if (temp==poll.length) {
		var error_message='Please choose an answer for poll.';
		error = 1;
	}
	if (error == 1) {
		alert(error_message);
		return false;
	} else {
		return true;
	}
}

