<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
var ulist = "N00160,N00161,N00162,N00163,N00165,N00166,N00167,N00168,N00169,N00183";
function submitForm(){
var uarray = ulist.split(",");
var fields = document.updateForm.elements;
for(var j=0;j<fields.length;j++) {
for(var i=0;i<uarray.length;i++) {
if ( fields[j].value == uarray[i] ) {
alert("Please enter a New UIC for this Associated MTF UIC.\n(An Associated MTF UIC must be unique.)");
fields[j].style.backgroundColor = "yellow";
fields[j].focus();
return false; // error !
}
else {
fields[j].style.backgroundColor = "white";
}
}
}
return true; // no error
}
</script>
</head>
<body onload="clearErrors();">
<form id="updateForm" name="updateForm" action="http://www.experts-exchange.com" onsubmit="return submitForm();">
<input type="input" id="mtf_uic_id" name="mtf_uic_id" value="N00160" style="background-color:#F00" />
<input type="input" id="mtf_vic_id" name="mtf_vic_id" value="N00165" style="background-color:#F00" />
<input type="input" id="mtf_wic_id" name="mtf_wic_id" value="N00190" style="background-color:#F00" />
<br />
<input type="submit" value="submit" />
</form>
</body>
</html>
|