// qvs_form_validation.js

// newFunction
var bCancel = false; 

    function validateMySearchForm(form) {                                                                   
        if (bCancel) 
      return true; 
        else 
       return validateSelectedCriteria(form); 
   } 

    function selectedCriteria () { 
     this.aa = new Array("dest", selectionMessage, new Function ("varName", "this.priceSelect='price'; this.portSelect='port'; this.dateSelect='date'; this.durationSelect='duration'; this.promoTypeSelect='promoType'; this.shipSelect='ship';  return this[varName];"));
    } 