function setlist(form)
{
secondlist = eval(form.interested_in.options[form.interested_in.selectedIndex].value);
form.tool_type.options.length = 0;
for (i=0;i<secondlist.length;i++)
	{
	form.tool_type.options[i] = new Option(secondlist[i]);
	}
form.tool_type.selectedIndex = 0;
}

Blade = new Array();
Blade[0] = "Metal Bond";
Blade[1] = "Electroplated";

Core = new Array();
Core[0] = "Metal Bond";
Core[1] = "Electroplated";

Profile = new Array();
Profile[0] = "Metal Bond";
Profile[1] = "Electroplated";
Profile[2] = "Resin";

Other = new Array();
Other[0] = "Metal Bond";
Other[1] = "Electroplated";
Other[2] = "E-pax";

dummy = new Array();
dummy[0] = "Please select a from above first";

var submitcount = 0;

function checkform(form)
{
var requiredstring = new String(form.required.value);
var fields = requiredstring.split(",");
var i = 0;
while (i < fields.length)
	{
	eval("tempstring = escape(form."+fields[i]+".value);");
	if ((tempstring == "") || (tempstring == "dummy"))
		{
		alert("You have not filled in all the required fields.");
		eval("form."+fields[i]+".focus();");
		submitcount = 0;
		return false;
		}
	i += 1;
	}

var address = form.email.value;

if ((address.indexOf("@") == -1) || (address.indexOf(".") == -1) || (address.length < 7))
	{
	alert("You must specify a valid e-mail address.");
	form.email.focus();
	form.email.select();
	submitcount = 0;
	return false;
	}

if (submitcount == 0)
	{
	submitcount++;
	return true;
	}
else
	{
	alert("You have already clicked the button to submit the form. Thank you!");
	return false;
	}
}
