    // Validator Object
    var valid = new Object();

    // REGEX Elements

        // matches £17.23 or £14,281,545.45 or ...
        //valid.Currency = /\£\d{1,3}(,\d{3})*\.\d{2}/;        valid.Currency = /\d+\.\d{2}/;

    function validateForm(theForm) {

        var elArr = theForm.elements; 

        for(var i = 0; i < elArr.length; i++) {

           with(elArr[i]) { 

              var v = elArr[i].validator; 

              if(!v) continue; 

              var thePat = valid[v]; 

              var gotIt = thePat.exec(value); 

              if(! gotIt){
                 alert("Please ensure your currency values are in the format 00.00");                  
                 elArr[i].select();
                 elArr[i].focus(); 
                 return false;
              }
           }
        }

        return true;

    }
