Looks like window.onload is being used by another script on your page, hence being overwritten. Try replacing what you currently have on the page:
Code:
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
with:
Code:
function addEvent(target, functionref, tasktype) {
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false);
else if (target.attachEvent)
target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
}
addEvent(window, function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}, "load")
BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm
Bookmarks