function validateFormSubscribe()
{
msg = "The following information is mandatory:\n\n";
 	
	if (document.getElementById('txtName').value == "")
 	{
  	document.getElementById('txtName').style.backgroundColor="#FFFF99";
  	msg += "Please enter your name\n"; 
 	}
 	if (document.getElementById('txtEmail').value == "")
 	{
  	document.getElementById('txtEmail').style.backgroundColor="#FFFF99";
  	msg += "Please enter your email address\n";
 	}
 	if ((!document.getElementById('radMale').checked) && (!document.getElementById('radFemale').checked))
 	{
  	msg += "Please indicate your gender\n";
 	}
 	if (document.getElementById('selAge').selectedIndex == 0)
 	{
  	msg += "Please select your age range\n";
 	}
 	if (msg != "The following information is mandatory:\n\n")
 	{
    alert(msg);
    return false;
    }
    return true;
}

function confirmAlert(msg, url)
{
  if (confirm(msg))
  {
    window.location=url;
  }
}
