/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * OZONE Asylum, home of the Mad Scientists * * https://www.ozoneasylum.com * * * * JavaScript code - unless otherwise noted - by kuckus, . * * * * A big 'Thanks!' goes out to all the folks who provided bits and pieces of * * the code below; a lot of this would have been impossible, or at least * * much harder without them. * * * * Feel free to borrow and modify this code, but be sure to leave this * * credit in the source! * * * * ~kuckus summer of 2003 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * Get an object's styles across different browsers */ // Written by mr.maX, http://www.max.co.yu/ function getObj(name) { if (document.getElementById) { return document.getElementById(name); } else if (document.all) { return document.all[name]; } /* else if (document.layers) { return document.layers[name]; } */ } /* * * * Toggle the 'display' CSS property of several objects at once; * e.g.: toggleDisplay('div1', 'div2', 'div3', 'div4', ...); */ function toggleDisplay() { if (field) { for(var i = 0; i < arguments.length; i++) { if (getObj(arguments[i]).style.display == "block"){ getObj(arguments[i]).style.display = "none"; } else { getObj(arguments[i]).style.display = "block"; } } } } /* * * * Check if an object's 'display' CSS property is set to 'block' or 'none' */ function isVisible() { if(getObj(arguments[0]).style.display == "block") return true; else return false; } /* * * * Update the field.caretPos property * Called whenever the