<script>
var cp="<s:property value="bo.codeProcess" />";
var obs=document.getElementById("boCodeProcess");
var ob=document.getElementById("boCodeProcess").options;
for(var i=0;i<ob.length;i++){
alert(ob[i].value+cp);
if(ob[i].value==cp){
ob[i].selected;
}
}
</script>
objsindustry.options.length=0;
var opt=document.createElement("option");
opt.appendChild(document.createTextNode(firstdef));
opt.value="";
// opt.text="-- Please Select --";
// objsindustry.setAttribute("option","");
objsindustry.appendChild(opt);
// objsindustry.options.add(opt);
for(var i=0;i<messageObj.length;i++){
//opt=document.creatElement("OPTION");
var temp=messageObj[i].firstChild.data;
var astt = messageObj[i].getAttribute("code");
var opti=document.createElement("option");
opti.appendChild(document.createTextNode(temp));
opti.setAttribute("value",astt);
opti.setAttribute("text",temp);
// opt.value=temp;
// opt.text=temp;
// var a=new Option(temp,temp);
// opti.setAttribute("selected","selected");
// objsindustry.options.add(opti);
objsindustry.appendChild(opti);
// opt.value=temp;
// opt.text=temp;
// objsindustry.options.add(opt);
}