
function validateComments()
{
        valid = true;
		var sex = document.comments.sex.value;
		var name = document.comments.name.value;
		var email = document.comments.email.value;
		var AtPos = email.indexOf("@");
		var StopPos = email.lastIndexOf(".");				
		var tel = document.comments.tel.value;
		var address = document.comments.address.value;
		var city = document.comments.city.value;
		var provState = document.comments.provState.value;
		var country = document.comments.country.value;
		var firsTime = document.comments.firsTime.value;
		var hotel = document.comments.hotel.value;
		var work = document.comments.work.value;
		var live = document.comments.live.value;
		
		if (sex=="")
		{
			alert ( "Please Include your gender..." );
			valid = false;
		}
		
		else if (name== "")
        {
        	alert ( "Please Include your name..." );
        	valid = false;
        }

		else if (email== "")
		{
        	alert ( "Please Include your email address..." );
            valid = false;
        }
	
		else if (AtPos == -1 || StopPos == -1) {
                alert ("Please enter a valid email address ...");
				valid = false;
		}

		else if (StopPos < AtPos) {
                alert ("Please enter a valid email address ...");
				valid = false;
		}

		else if (StopPos - AtPos == 1) {
                alert ("Please enter a valid email address ...");
				valid = false;
		}
		  		
		else if (address=="")
		{
			alert ("Please Include your physical address...");
			valid = false;
		}
		
		else if (city=="")
		{
			alert ("Please Include the City or Town Which You Reside In...");
			valid = false;
		}
	
		else if (provState=="")
		{
			alert ("Please Include The Province Or State Which You Currently Reside In...");
			valid = false;
		}
	
		else if (country=="")
		{
			alert ("Please Include The Country Which You Currently  Reside In...");
			valid = false;
		}
	
		else if (firsTime=="")
		{
			alert ("Is this your first visit to Nautiical Nellies ? Please indicate Yes or No in the corresponding form field...");
			valid = false;
		}
		
		else if (hotel=="")
		{
			alert ("Are You Staying At A Hotel ? Please indicate Yes or No in the corresponding form field...");
			valid = false;
		}
		
		else if (work=="")
		{
			alert ("Do You Work In Greater Victoria ? Please indicate Yes or No in the corresponding form field...");
			valid = false;
		}
			
		else if (live=="")
		{
			alert ("Do You Live In Greater Victoria ? Please indicate Yes or No in the corresponding form field...");
			valid = false;
		}

		
        return valid;
}


