function el( id ) { return document.getElementById( id ); } function selectItem( obj, value ) { var i; for( i=0; i < obj.options.length; i++ ) if( obj.options[i].value == value ) { obj.options[i].selected = true; break; } } function flip( menu ) { var obj = document.getElementById( menu ); setCookie( menu, obj.style.display = obj.style.display != "block" ? "block" : "none", false, "/inside/" ); } function getCookie( name ) { var cookies = document.cookie.split( "; " ); for( var i=0; i < cookies.length; i++) { var str = cookies[i].split( "=" ); if( str[0] != name ) continue; return unescape( str[1] ); } return; } function setCookie( name, value, expires, path ) { var str = name + "=" + escape( value ); if( path ) { str += "; path=" + path; } if( expires ) { var nowtime = new Date().getTime(); expires = new Date( nowtime + ( 60 * 60 * 24 * 1000 * expires ) ); expires = expires.toGMTString(); str += "; expires=" + expires; } document.cookie = str; }