function validate()
{
	if( document.getElementById('name').value=="" )
	{
		alert('Please enter your name');
		return false;
	}
	
	if( (document.getElementById('email').value=="")  || (!isValidEmail(document.getElementById('email').value)) )
	{
		alert('Please enter a valid email address');
		return false;
	}
}
function isValidEmail(str) 
{
   return (str.indexOf("@") > 0);
}

function display(obj,id1) 
{
	txt = obj.options[obj.selectedIndex].value;
	document.getElementById(id1).style.display = 'none';
	
	if ( txt.match(id1) ) 
	{
		document.getElementById(id1).style.display = 'block';
	}
}