function addOption(selectbox,text,value )
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
Problem is with the line " selectbox.options.add(optn); ". Can anyone suggest me alternate option or how to make this work.