String.prototype.extractNumbers = function(returnType) { var i, l = this.length, t = isNaN(returnType), r = ""; for (i=0; i Min && eval (pString) < Max) return true; else return false; } else return false; } function isEqual (pString, pTo){ return (document.getElementById(pTo).value == pString); } function isDate (pString, pTo, pp){ //"date|mm-dd-yyyy" var date = pString.split ("-"); month = eval (date[0]); day = eval (date[1]); year = eval (date[2]); if (month > 12 ) return false; else { if ( (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 10) && day > 31) return false; else if ((month == 4 || month == 6 || month == 9 || month == 11) && day > 30 ) return false; else if (month ==2 && day > 29 ) return false; else if (year < 1900 ) return false; } return true; } function isCheckbox (pString, pValue, pObj){ return (pObj.checked==pValue); } var counter = 0; function moreFieldsDiv(param){ counter++; var newFields = window.document.getElementById('read_' + param).cloneNode(true); newFields.id = ''; newFields.style.display = 'block'; var newField = newFields.childNodes; for (var i=0; i