I am using a compare script on my site, but when I declare a doctype, the script no longer works in FF. Any help would be appreciated!
Thanks!

my doctype is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

and my script is:
<script Language="JavaScript">
<!--
function compare(pid)
{

//first we make sure product is checked where link was clicked
cb = document.getElementById("check_" + pid);
cb.checked = true;

// If a checkbox has been selected it will return true
//msg = "products checked are: ";
qs = "http://www.kitchensource.com/attributes/compare.cgi?p=";
//qs = "{= $no_sort_link =}"

for (i = 1; i < {= $total_products + 1 =} ; i++) {

if (eval("form" + i + ".compare" + i + ".checked"))
{
//msg += form1.compare1.value;
//msg += " ; " + eval("form" + i + ".compare" + i + ".value");
qs += ":" + eval("form" + i + ".compare" + i + ".value");

}
}

//alert( qs );
//window.location.href = qs;

anchor = document.getElementById("a_" + pid);

//document.anchors[0].href = null;
//document.anchors[0].href = qs;
anchor.href= qs;

//hs.htmlExpand(document.anchors[0], { objectType: 'ajax', preserveContent: false, dimmingOpacity: 0.10, align: 'center'} );
hs.htmlExpand(anchor, { objectType: 'ajax', preserveContent: false, dimmingOpacity: 0.10, align: 'center'} );
return 1;

}

-->
</SCRIPT>