<html>
<head>
<title>http://www.xtx.kr</title>
<script type='text/javascript'>
if (typeof window.onload == 'function') {motorCheckbox_OL = window.onload;}
window.onload = function()
{
if (window.motorCheckbox_OL) motorCheckbox_OL();
var i, ca;
ca = document.getElementsByName('motorCheckbox');
for (i = 0; i < ca.length; ++i) {
ca[i].onclick = motorCheckbox_click;
}
}
function motorCheckbox_click()
{
// find parent TR
var tr = this.parentNode;
while (tr && tr.nodeName.toLowerCase() != 'tr') {
tr = tr.parentNode;
}
if (tr) {
// get all inputs contained by TR
var i, ia = tr.getElementsByTagName('input');
for (i = 0; i < ia.length; ++i) {
if (ia[i].type.toLowerCase() == 'text') { // filter out 'text' inputs
ia[i].disabled = !this.checked;
}
}
}
}
</script>
</head>
<body>