ARg. that wouldn't even validate, change as so it does:
PHP Code:
<SCRIPT type="text/javascript">
<!--//begin
function formCheck(formobj){
if ((internal.'PHONE' + iteration.value.length < 15)){
alertMsg += " - PHONE #1 Requires 12 digits" + "\n";
alertMsg += " You have only entered " + internal.'PHONE' + iteration.value.length + " digits(s).\n";
}
else{
alert(alertMsg);
return false;
}
}
//-->
</SCRIPT>
<SCRIPT type="text/javascript">
<!--//begin
function addRowToTable()
{
var tbl = document.getElementById('tblPHONEadd');
var lastRow = tbl.rows.length;
// if there's no header row in the table, then iteration = lastRow + 1
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
// OuterOutsideLeft cell
var cellOuterOutsideLeft = row.insertCell(0);
var textNode = document.createTextNode('');
cellOuterOutsideLeft.appendChild(textNode);
// OutsideLeft cell
var cellOutsideLeft = row.insertCell(1);
var textNode = document.createTextNode('PHONE ' + iteration + ' ');
cellOutsideLeft.setAttribute('align','right');
cellOutsideLeft.appendChild(textNode);
// spacer1 cell
var cellspacer1 = row.insertCell(2);
var textNode = document.createTextNode('');
cellspacer1.appendChild(textNode);
Bookmarks