function hideAll()
{
	promo_ids = new Array("content_index","content_about","content_faq","content_privacy","content_terms","content_unsubscribe","content_form");
	for(i=0; i<promo_ids.length; i++){$(promo_ids[i]).style.display="none";}
}

function loadContent(id)
{
	hideAll();
	switch(id)
	{
		case 'index':
			$('content_form').style.display="block";
			$('content_index').style.display="block";
		break;			
		case 'about':
			$('content_form').style.display="block";
			$('content_about').style.display="block";
		break;
		case 'faq':
			$('content_form').style.display="block";
			$('content_faq').style.display="block";
		break;
		case 'privacy':
			$('content_form').style.display="block";
			$('content_privacy').style.display="block";
		break;
		case 'terms':
			$('content_form').style.display="block";
			$('content_terms').style.display="block";
		break;
		case 'unsubscribe':
			$('content_unsubscribe').style.display="block";
			$('content_form').style.display="none";
		break;
	}
}


function validateSingleOpt(form)
{	
	
	var errorAlert = false;
	var checked = false;
	form.id = "smh_singleopt_form";
	id = form.id;
		
	$(id).getFormElements().each(function(el){
		if($type(el) && el.type == 'radio' && el.checked)
		{
			checked= true;
		}		
	});
	
	if(checked == false)
	{
		alert("You must select at least one Offer - else click on 'Check Out More Offers'"); 
		return false;
	}
	
	return true;
}
