var event;if (document.createEvent){event = document.createEvent("HTMLEvents");event.initEvent("change", true, false);document.getElementById("fname").dispatchEvent(event);} else {document.getElementById("fname").fireEvent("onchange")}
var event;if (document.createEvent){event = document.createEvent("HTMLEvents");event.initEvent("change", true, false);document.getElementById("fname").dispatchEvent(event);} else {document.getElementById("fname").fireEvent("onchange")}