// See also categorylist


function CheckCategorySet() {
	if (document.TXTGEOSELECT.CATEGORY.value == '') {
		alert('Please Select A Category');
		return 0;
	}
	return 1;
}


function reconstructCategoryOptions(theList,thevalue) 
{
	for (var i=theList.length;i>0;i--) 
        {
		deleteAnItem(theList,i-1);
	}

	var count = 0;
        var isfound = false;

	for (var i=0; i < CategoryArray.length;i++) 
        {

		for (var j=0; j < CategoryArray[i].length; j++)
                {
		    theList.options[count] = new Option(CategoryArray[i][j],CategoryArray[i][j]);

                    if (theList.options[count].value == thevalue)
                    {
                        theList.options[count].selected=true;
                        isfound = true;
                    }
                    count = count +1;

                }
	}

        if (!isfound)
        {
	    theList.options[0].selected=true;
        }
}


function Nominate_An_Option(theList,theValue) 
{


    var found = false;


	for (var i=0; (i<theList.length) && (!found); i++) 
        {

            if (theList.options[i].value == theValue)
            {
                theList.options[i].selected = true;
                found =  true;
            }
	}

} 
 


 

 

 
 

 
 
 
 


 

