<script>
function subForm(){
for (x=0; x<document.myForm.elements.length; x++){
if (document.myForm.elements[x].value == ""

{
alert("Please fill in all blanks"

return false;
}
}
//now that we've checked the form, submit it to new window
formWin = window.open("about:blank","formWin","height=420,width=470"

document.myForm.action = "handler.asp"
document.myForm.method = "post"
document.myForm.target = "formWin"
document.myForm.submit()
}
</script>
<form name="myForm">
<input>
<input>
<input type=button value="Submit" onClick="subForm()">
</form>
Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179