Here's my code thus far, in case my description wasn't clear (which it probably wasn't, since I'm rather new to all this):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Backbone Test 1</title>
<script langauge="Javascript" type="text/javascript">
<!-- Hide script from older browsers
function calculateOrder(passForm){
if(passForm.ips.value == ""){
alert("Please enter the number of your company's external IP addresses")
passForm.ips.focus()
return false
}
if(passForm.ips.value <= 4){
passForm.ipsNew = passForm.ips
HTMLstring='<HTML>\n';
HTMLstring+='<HEAD>\n';
HTMLstring+='<TITLE>New Document</TITLE>\n';
HTMLstring+='</HEAD>\n';
HTMLstring+='<BODY bgColor="#">\n';
HTMLstring+='<P Style="color:#000000">Your total is $189</P>\n';
HTMLstring+='</BODY>\n';
HTMLstring+='</HTML>';
newwindow=window.open();
newdocument=newwindow.document;
newdocument.write(HTMLstring);
newdocument.close();
return false
}
if(passForm.ips.value >= 5){
passForm.ipsNew = ((passForm.ips.value - 4) * 25) + 189
HTMLstring='<HTML>\n';
HTMLstring+='<HEAD>\n';
HTMLstring+='<TITLE>New Document</TITLE>\n';
HTMLstring+='</HEAD>\n';
HTMLstring+='<BODY bgColor="#">\n';
HTMLstring+='<P Style="color:#000000">Your total is $'+passForm.ipsNew+'</P>\n';
HTMLstring+='</BODY>\n';
HTMLstring+='</HTML>';
newwindow=window.open();
newdocument=newwindow.document;
newdocument.write(HTMLstring);
newdocument.close();
return false
}
return true
}
// End hiding script -->
</script>
</head>
<body>
<form onsubmit="return calculateOrder(this)" action="cgi-mailer.cgi" name="order">
Please enter the number of external IP addresses your company has: <input type="text" size="10" name="ips" />
<p><input type="submit" value="Submit" />
</form>
</body>
</html>
