var mod_featureInfo_elName = "featureInfo1"; var mod_featureInfo_frameName = ""; var mod_featureInfo_target = ""; var mod_featureInfo_img_on = new Image(); mod_featureInfo_img_on.src = ""; var mod_featureInfo_img_off = new Image(); mod_featureInfo_img_off.src =""; var mod_featureInfo_img_over = new Image(); mod_featureInfo_img_over.src = ""; function init_featureInfo1(ind){ mb_button[ind] = document.getElementById(mod_featureInfo_elName); mb_button[ind].img_over = mod_featureInfo_img_over.src; mb_button[ind].img_on = mod_featureInfo_img_on.src; mb_button[ind].img_off = mod_featureInfo_img_off.src; mb_button[ind].status = 0; mb_button[ind].elName = mod_featureInfo_elName; mb_button[ind].fName = mod_featureInfo_frameName; mb_button[ind].go = new Function ("mod_featureInfo_click()"); mb_button[ind].stop = new Function ("mod_featureInfo_disable()"); } function mod_featureInfo_click(){ window.frames[mod_featureInfo_target].document.onclick = mod_featureInfo_event; } function mod_featureInfo_disable(){ window.frames[mod_featureInfo_target].document.onclick = null; } function mod_featureInfo_event(e){ if(ie){ clickX = window.frames[mod_featureInfo_target].event.clientX; clickY = window.frames[mod_featureInfo_target].event.clientY; } else{ clickX = e.pageX; clickY = e.pageY; } setFeatureInfoRequest(mod_featureInfo_target,clickX,clickY); }