I'll stick with the window thing but
<html>
<head>
<script language="JavaScript">
function testit() {
var path = document.myform
for (x=0;x<path.elements.length;x++) {
if(path.elements[x].checked == true) {
alert('YEEAAAAHHAAAA')
}
}
}
</script>
</head>
<body>
<form name="myform">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="button" value="see" onClick="testit()">
</form>
<body>
<form name="myform">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="button" value="see" onClick="testit()">
</form> _______________________________________________
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"
;alert(Nstr); }
_______________________________________________
for the best results to your questions: FAQ333-2924