function validate(frm)
{
        theform = frm;

	if(theform.fname.value.length ==0)
	{
		alert('Please enter a valid Full Name');
		theform.fname.focus();
		return false;
	}
 if ( theform.mail[1].checked == false )
    {
	if(theform.address.value.length ==0)
	{
		alert('Please enter a valid Address');
		theform.address.focus();
		return false;
	}
	if(theform.citystatezip.value.length ==0)
	{
		alert('Please enter a valid City/State/Zip');
		theform.citystatezip.focus();
		return false;
	}
	}
	if(theform.phone.value.length ==0)
	{
		alert('Please enter a valid phone number');
		theform.phone.focus();
		return false;
	}

 if (theform.mail[0].checked == false )
    {
	if(theform.email.value.length ==0)
	{
		alert('Please enter a valid e-mail address');
		theform.email.focus();
		return false;
	}
	}

}




