MS02-023 Patch Breaks JAVASCRIPT

From: Greg Chatten - St. Louis Internet (gchatten@ST-LOUIS.NET)
Date: 05/16/02


Date:         Thu, 16 May 2002 12:32:17 -0500
From: "Greg Chatten - St. Louis Internet" <gchatten@ST-LOUIS.NET>
To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM

The installation of the 15-May-2002 Cumulative Patch for IE (V6 in this
case) breaks the following Javascript code. This code works in IE versions
*not* patched with Q321232 but fails to execute on IE6 which has been
patched. I don't have IE 5 or below so I don't know if they broke those
versions as well.

JS Code Failing on patched IE6:

function lastditch1() {
        msg = ""
        //alert("checking the form fields now.")
        if (document.certform.redeemamount.value.length <= 0 ){
                alert("You must enter an amount to redeem.\n");
                document.certform.redeemamount.focus();
                return false;
        }
        if (document.certform.fname.value.length <= 0 ){
                alert("You must enter the client's name.\n");
                document.certform.fname.focus();
                return false;
        }
        if (document.certform.lname.value.length <= 0 ){
                alert("You must enter the client's name.\n");
                document.certform.lname.focus();
                return false;
        }
        if (document.certform.address.value.length <= 0 ){
                alert("You must enter the client's address.\n");
                document.certform.address.focus();
                return false;
        }
        if (document.certform.city.value.length <= 0 ){
                alert("You must enter the client's city.\n");
                document.certform.city.focus();
                return false;
        }
        if (document.certform.state.value.length <= 0 ){
                alert("You must enter the client's state.\n");
                document.certform.state.focus();
                return false;
        }
        if (document.certform.zip.value.length <= 0 ){
                alert("You must enter the client's zip.\n");
                document.certform.zip.focus();
                return false;
        }
        if (document.certform.recordlocator.value.length <= 0 ){
                alert("You must enter a record locator number.");
                document.certform.recordlocator.focus();
                return false;
        }

        if (confirm("Are you sure you wish to redeem this certificate?")){
                //alert(" This certificate has been \n submitted for redemption ");
                //window.document.certform.submit();
                document.certform.submit.disabled=true;
                return true;
                }
        else {
                alert("This certificate has NOT been redeemed");
                return false;
        }
}

Regards,

G. Chatten
St. Louis Internet, Inc.
http://www.st-louis.net
636-458-2866
Fax: 314-215-4162