<!--

var vCode = "";

window.onload = function() {

var codeString = "111122223333444455556666777788889999ABCDEFGHJKLMNPQRSTUVWXYZ";

with (Math) {
for (i=0; i<4; i++)
	vCode += codeString.substr(min(floor(random()*codeString.length), codeString.length-1), 1); }

if (document.getElementById("codeSp")) {
	var codeSpan = document.getElementById("codeSp");
	codeSpan.normalize();
	codeSpan.firstChild.nodeValue = vCode; }
}


function validate() {
with(document.requestForm) {

if (vc.value == vCode && info.value.replace(/\s/g, "") != "") {
	action = "inforequest.asp";
	submit(); }

} }

/*
In the head:

<SCRIPT type="text/javascript" src="md.js"></SCRIPT>

The form:

<form name="requestForm" action="error.shtm" method="post" target="_top"
	 onSubmit="validate(); return false">
<table style="border: 1px solid #330000; background-color: #993333; color: #ffffff"
		cellpadding="15" cellspacing="0"><tr><td>&nbsp;</td><td>
	<b>I would like to see more about:</b><br>
	<input type="text" name="info" size="60" maxlength="60">
	<input type="text" name="vc" size="4" maxlength="4">
	<input type="image" src="images/submit.gif" style="border-width: 0px; width: 77px; height: 25px"
		name="submit" align="middle" alt="submit"><br>
	<span style="font-size: 75%">Before submitting, please enter this into the second field above: &nbsp;</span><span id="codeSp" style="font-weight: bold; letter-spacing: 0.1em">[JavaScript required]</span>
</td><td>&nbsp;</td></tr></table>
</form>

*/

//-->