<form name="myform" action="mypage.asp" method="post" onSubmit="return checkForm();">
Now you need to create a function to check your values:
This will return true or false back to the first return statement which returns true or false back to the onSubmit, telling the form to go or not.
// Check the form values here to make sure they meet your criteria
// If the fields pass do:
// If the fields fail do:
Now, you can also do this in ASP, and just check the values after the submit. If the values fail, you redisplay the form with the values they typed in and mark the field that failed the test.
As for popup windows, it's the window name attribute of the window.open function.
Now all three pages should load in the same window.
window.open('mypage1.asp', 'myWindow', '');
window.open('mypage2.asp', 'myWindow', '');
window.open('mypage3.asp', 'myWindow', '');
That which does not kill me postpones the inevitable.