function isValidCurrency(input) {
var currencyPattern = /^\d{0,3}(,\d{3})*(\d)*(\.){0,1}(\d)*$/;
return currencyPattern.test(input);
}
if (!isValidCurrency(inputMoney)) {
alert('Invalid input at row ' + (i+1) + ', column 5.');
return;
}
function getColumnObject(row, column) {
var table = document.getElementById("languageForm:languageCostTable");
var tbody = table.tBodies[0];
var attributeId = tbody.rows[row].cells[column].getElementsByTagName("input");
return attributeId[0];
}
var currencyPattern = /^\d{0,3}(,\d{3})*(\d)*(\.){0,1}(\d)*$/;
return currencyPattern.test(input);
}
if (!isValidCurrency(inputMoney)) {
alert('Invalid input at row ' + (i+1) + ', column 5.');
return;
}
function getColumnObject(row, column) {
var table = document.getElementById("languageForm:languageCostTable");
var tbody = table.tBodies[0];
var attributeId = tbody.rows[row].cells[column].getElementsByTagName("input");
return attributeId[0];
}