function doOpinion ( form ) {	
//******************************************************************************* 
//  Do the FUNCTIONS BOOKING FORM
//******************************************************************************* 
	var firstmessage="Please provide the following valid information:\n\n ";
	var errormessage="";
	var errorcode=0; 
	var len;
	var testFlag = 0;  // set to 1 if Comments = "xx" - bypass validation.
//***  
	var sEmailto = "";			// Default receipient 
 
//  OPINION RADIOS
 	if (document.form0.Opinion[0].checked ||
 		document.form0.Opinion[1].checked) {  }
 	 		else { errormessage = errormessage + "Opinion\n" }

	if (spaceTrim(document.form0.Name.value) == "") errormessage=errormessage + "Name\n";

	if (document.form0.Email.value.length ==0 || document.form0.Email.value.indexOf('@', 0) == -1 || document.form0.Email.value.indexOf('.', 0) == -1) {errormessage=errormessage+"Email address\n"} 
 
// 	errormessage ="";  // Uncomment to deactivate validation for Testing
 
	if (spaceTrim(document.form0.Comments.value) == "xx") {errormessage=""; testFlag = 1;} 

	if (errormessage !="") { alert (firstmessage + errormessage) ; return false; }
	else { 	
 
//*----------------------------------------------
//* Use /mailer/FORMSEND.ASP for form processing	 
//*----------------------------------------------
  		sEmailto = "sharon@thefishhouse.ca"; // Default recipient 	
 		sEmailFrom = "sharon@thefishhouse.ca"; // Default from address
 
		if (testFlag) {
			 document.form0.Email.value = "pc@twistedpixel.com";
			 sEmailto = "pc@twistedpixel.com";
			 document.form0.sendemailto.value = document.form0.Email.value; 
		}
		
 	  	document.form0.sendemailto.value = sEmailto; 	  				 	 	
		document.form0.sendemailbcc.value = "";  
			 	  	
 	 	// set from email if none specified
		if (spaceTrim(document.form0.Email.value) == "") { 		
			document.form0.sendemailfrom.value = sEmailFrom; 
		}
		else {		 	
 	  		document.form0.sendemailfrom.value = document.form0.Email.value;
 		} 	  	 	  	

	  	document.form0.sendemailsubject.value = "FISH HOUSE - OPINION: DELIVERY";
	 	document.form0.redirect.value = "http://www.thefishhouse.ca/en/survey-opinion-delivery-confirm.asp";  	 	
 		document.form0.action = "http://www.thefishhouse.ca/mailer/formsend.asp"; 
  		document.form0.method = "POST";
 	  	document.form0.submit()
 		return(0); 	
   }  
}

function doClear ( form ) {	
//*******************************************************************************
// Clear Form  -  
//*******************************************************************************	
//alert(pagelang);
    var msg_e = "Are you sure that you want to clear all the data you have entered on this form?";
    var msg_f = "Voulez-vous vraiment effacer toutes les données?";
    var clearmsg = msg_e;
 // if (pagelang == "f") clearmsg = msg_f;
    
	var confirmOK = confirm(clearmsg);
  	if (confirmOK) document.form0.reset();    
}