function generate_fields ( inform ) {  var thismodel = inform.modelpick.options[inform.modelpick.selectedIndex].value;  var sku       = '';  // a conditional H*A*C*K - array not worth the effort	if (thismodel == '1') { sku = '13117:1,'; }	if (thismodel == '2') { sku = '13118:1,'; }	if (thismodel == '5') { sku = '13123:1,'; }	if (thismodel == '6') { sku = '13124:1,'; }	if (thismodel == '7') { sku = '13125:1,'; }		if (inform.add_eartips.checked == true && thismodel == '3') {		sku += '13119:2,';	}	if (inform.add_eartips.checked == true && thismodel != '3') {		sku += '13119:1,';	}	if (inform.add_eartips.checked != true && thismodel == '3') {		sku += '13119:1,';	}		if (inform.add_eartipslg.checked == true && thismodel == '4') {		sku += '13122:2,';	}	if (inform.add_eartipslg.checked == true && thismodel != '4') {		sku += '13122:1,';	}	if (inform.add_eartipslg.checked != true && thismodel == '4') {		sku += '13122:1,';	}		if (inform.add_audiosplit.checked == true) {		sku += '13757:1,';	}	if (inform.add_audiosplitb.checked == true) {		sku += '13751:1,';	}  inform.ProdList.value = sku;}function handleform ( inform ) { var errmsg = '';// NB: secondary conditional statements below are due to NN 4.x hack if ( inform.modelpick.options[inform.modelpick.selectedIndex].value == '') { errmsg += 'Please Select a Model before trying to purchase.'; } if ( errmsg ) { alert (errmsg); return false; } else { generate_fields( inform ); return true; }}