function doChange(srcE, targetId, arr)
{
    var val = srcE.options[srcE.selectedIndex].value;
    var targetE = document.getElementById(targetId);
	removeAll(targetE);
	for (j = 0; j < arr.length; j++) {
		if (val == arr[j][0]) {
			for (i = 0; i < arr[j][1].length; i++) {
				addOption(arr[j][1][i],targetE);
			}
		}
	}
}

function addOption(value, e)
{
    var o = new Option(value);
    try
    {
        e.add(o);
    }
    catch(ee)
    {
        e.add(o, null);
    }
}

function removeAll(e)
{
    for(var i = 0, limit = e.options.length; i < limit - 1; ++i)
    {
        e.remove(1);
    }
}

function intOnly(f) {
	if (f.val().length > 0 && (parseInt(f.val()) != f.val())) {
		f.val('');
		alert('Sorry, but this field accepts number values only. Please try again.');
		f.focus();
	};	
}


function retSel()
{
	var strFrm = "";
	for (i = 0; i < document.frm1.length; i++) {
		strFrm = strFrm + document.frm1.elements[i].name + " = " + document.frm1.elements[i].value + ";";
	}
	alert(strFrm);
};

var arrOther = new Array("Other mfr",new Array("other"));

function verify() 
{
	msg = "Please verify that \'My List\' is correct and accurate.\n\nIf you need to make changes, click the Cancel button\nbelow, then refresh the page and start over. Otherwise,\nclick the OK button to submit your list to the survey."
	return confirm(msg);
};