function SwitchMode() { if(edit_mode){ document.location.reload(); }else{ tag_elements(); } } function testEdit(e) { if (e) { if (e.which==233) SwitchMode(); } else if (window.event) { if (window.event.keyCode==233) SwitchMode(); } else { return; } } if (parseInt(navigator.appVersion)>3) { if (document.layers) { document.captureEvents(Event.KEYPRESS); } document.onkeypress = testEdit; } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function getElementWithId(id){ var obj = null; if(document.getElementById){ obj = document.getElementById(id); }else if(document.all){ obj = document.all[id]; } return obj; } var q300_element; var edit_mode; function tag_elements(){ edit_mode = true; for(i = 1; i<=100; i++){ if(q300_element = getElementWithId('q300_'+i)){ q300_element.style.margin = "3px"; q300_element.style.padding = "3px"; q300_element.style.border = "2px dashed #000000"; q300_element.innerHTML = 'Edit this zone' + q300_element.innerHTML; } } }