// JavaScript Document
/* Select box function for adding the options */
function insertOption(Id,data)
{
  var objdata = (eval("(" + data + ")"));
  var elSel = document.getElementById(Id);	
  $.each(objdata, function(key, value) { 
		elSel.options[elSel.options.length] = new Option(value, key);
	});
}

function removeOption(Id)
{
  var elSel = document.getElementById(Id);
  elSel.length = 0;
/*  var i;
  for (i = elSel.length - 1; i>=0; i--) {
      elSel.remove(i);
  }
*/}

