function beet() {
document.form_B.reset();
}
function doMe() {
var action;
var time;
var volts;
var theact;
var myAct = 'Please select a Timing Action\n';
var myRange = 'Please select a Timing Range\n';
var myVolt = 'Please select an Input Voltage\n';
for (var i=0;i<4;i++) {
	if (document.form_B.Act[i].checked == true)	{
			var myAct = "";
			var theact =  document.form_B.Act[i].value;
			var action = document.form_B.Act[i].value;
			switch(theact) {
				case '1': {
					var action = 'ON DELAY';
					break;
				}
				case '2': {
					var action = 'OFF DELAY';
					break;
				}
				case '3': {
					var action = 'INTERVAL DELAY';
					break;
				}
				case '5': {
					var action = 'RECYCLE TIMER';
					break;
				}
			}
		}
	}
for (var j=0;j<6;j++) {
	if (document.form_B.Range[j].checked == true) {
			var myRange = "";
			var thetime = document.form_B.Range[j].value;
			var time = document.form_B.Range[j].value;
			switch(thetime) {
				case '0': {
					var time = '*Special Time';
					break;
					}
				case "1": {
					var time = '.1 - 10 Seconds';
					break;
					}
				case '2': {
					var time = '10 - 600 Seconds';
					break;
					}
				case '3': {
					var time = '10 - 600 Minutes';
					break;
					}
				case '4': {
					var time = '1 - 60 Seconds';
					break;
					}
				case '5': {
					var time = '1 - 60 Minutes';
					break;
					}
				}			 
			}
		}
for (var k=0;k<8;k++) {
	if (document.form_B.Volt[k].checked == true) {
			var myVolt = "";
			var thevolt = document.form_B.Volt[k].value;
			var volts = document.form_B.Volt[k].value;
			switch(thevolt) {
				case '1': {
					var volts = '120 VAC';
					break;
					}
				case '2': {
					var volts = '24 VAC';
					break;
					}
				case '3': {
					var volts = '110 VDC';
					break;
					}
				case '4': {
					var volts = '24 VDC';
					break;
					}
				case '5': {
					var volts = '240 VAC';
					break;
					}
				case '6': {
					var volts = '48 VDC';
					break;
					}
				case '7': {
					var volts = '12 VAC';
					break;
					}
				case '8': {
					var volts = '12 VDC';
					break;
					}
				}
			}
		}
if ((myAct||myRange||myVolt)!="") {
	alert(myAct + myRange + myVolt);
	}
else {
var partNum = 'KD' + theact + thetime + thevolt;
document.open();
document.write('<html>');
document.write('<head>');
document.write('<title>Your Icsotimer part Number</title>');
document.write('</head>');
document.write('<body bgcolor=\"#f6f6f6\"><br><br><br><br>');
document.write('<form name=\"blow\" id=\"blow\" action=\"\">');
document.write('<div align=\"center\">');
document.write('<table width=\"320\" bgcolor=\"#ffffff\" cellpadding=\"10\" cellspacing=\"0\" border=\"2\">');
document.write('<tr>');
document.write('<td align=\"center\" width=\"300\" valign=\"middle\">');
document.write('<font color=\"#000000\" face=\"verdana,arial,sans-serif\">The part number for	your Icsotimer selection is:</font><br><br>');
document.write('<font color=\"#000000\" face=\"verdana,arial,sans-serif\"><b>' +  partNum + '</b></font><br><br>' );
document.write('<font color=\"#000000\" face=\"verdana,arial,sans-serif\">' + action + '</font><br>');
document.write( '<font color=\"#000000\" face=\"verdana,arial,sans-serif\">' + time + 	'</font><br>');
document.write('<font color=\"#000000\" face=\"verdana,arial,sans-serif\">' + volts + '</font><br><br>');
/* Following added */
document.write('<input type=\"hidden\" name=\"jik\" value=\"' + partNum + '\">');
document.write('<input type=\"hidden\" name=\"fig\" value=\"DIGITAL TIMER RFQ\">');
document.write('<input type=\"button\" bgcolor=\"#000000\" onClick=\'window.open(\"khsub_form.html\")\' value=\"Get Quote\"><br><br>');
/* End added */
document.write('<input type=\"button\" onClick=\"window.history.back()\" value=\"Close\"><br><br>');
if (thetime == '0')	{
	document.write('<font color=\"#000000\" face=\"verdana,arial,sans-serif\">&#42\;Call  630.543.6200 for information about Special Times.</font><br>');
	}
document.write( '</td>');
document.write( '</tr>');
document.write( '</table>');
document.write('</div>');
document.write('</body>');
document.write('</html>');
document.close();
//Steala my code I breaka u face
	}
}
