// JScript File
 var isNav = (navigator.appName.indexOf("Netscape")>=0);
 var isMoz = (navigator.userAgent.indexOf("Firefox")>=0);
function addOption(theForm, theText, thevalue, theSelect){
	if (isNav==true||isMoz==true){
		addOptionNS(theForm, theText, thevalue, theSelect);
	}
	else{
		addOptionIE(theForm, theText, thevalue, theSelect);
	}
}
function addOptionNS(theForm, theText, theValue, theSelect){
	var newOpt  = new Option(theText, theValue);
   var sel = document.getElementById(theSelect);
	var selLength = sel.length;
	sel.options[selLength] = newOpt;
}
function addOptionIE(theForm, theText, theValue, theSelect){
	var newOpt = document.createElement("OPTION");
	newOpt.text=theText;
	newOpt.value=theValue;
   var sel = document.getElementById(theSelect);
	sel.add(newOpt);
}
function deleteOption(theForm, theSelect){	
	if (isNav==true||isMoz==true){
		deleteOptionNS(theForm, theSelect);
	}
	else{
		deleteOptionIE(theForm, theSelect);
	}	
}
function deleteOptionNS(theForm, theSelect)
{
   var sel = document.getElementById(theSelect);
   var selLength = sel.length;
   var i = 1;
   for(x=0;x<=selLength; ++x){
		sel.options[0]=null;
   }
}
function deleteOptionIE(theForm, theSelect)
{
   var sel = document.getElementById(theSelect);
	var selLength = sel.length;
      for(x=0;x<=selLength; ++x){
		   sel.remove(0);
      }
}
