<!--
function setRadio(type) {
with(document.forms["module_form"]) {
switch(type) {
case "naics":
yrfmt[0].checked = true;
changeList(year1,101,107);
changeList(year2,102,108);
break;
default:
yrfmt[1].checked = true;
changeList(year1,69,99);
changeList(year2,70,100);
break;
}
year2.selectedIndex = year2.options.length-1;
}
}
function changeList(formObj,firstYear,lastYear) {
var selectedVal = formObj.options[formObj.selectedIndex].value;
do {
formObj.options[0] = null;
} while(formObj.options[0] != null);
var optionCounter = 0;
for(var x=firstYear;x<=lastYear;x++) {
formObj.options[optionCounter] = new Option(x+1900+"",x+"");
if(selectedVal==x) {
formObj.selectedIndex = optionCounter;
}
optionCounter++;
}
}
function setEndYear() {
with(document.forms["module_form"]) {
changeList(year2,(parseInt(year1.value,10)+1),((yrfmt[0].checked == true)?108:100));
}
}
function getReport(fip,stName) {
with(document.forms["module_form"]) {
showProcPleaseWait();
stnum1.value=fip;
stnam1.value=stName;
setTimeout("document.forms[\"module_form\"].submit();",1000);
}
}
var prepareShiftShareForm = function prepareShiftShareForm() {
with(document.forms["module_form"]) {
reset();
}
setRadio('naics');
}
window.onload=new Function(getCombinedFunctionCode(window.onload,prepareShiftShareForm));
//-->
