function session(){this.storage={};this.set=function(key,value){if(typeof(window.sessionStorage)!="undefined"){if(typeof(JSON)!="undefined"){value=JSON.stringify(value);} window.sessionStorage.setItem(key,value);}else{var prefix="SessionString("+document.location.host+")";this.storage[key]=value;if(typeof(JSON)!="undefined"){top.name=prefix+JSON.stringify(this.storage);}else{var arr=[];for(var k in this.storage){var val=this.storage[k];if(typeof val=='boolean'){val=val?'true':'false';}else if(typeof val=='string'){val='"'+val+'"';} arr.push('"'+k+'":'+val);} top.name=prefix+"{"+arr.join(",")+"}";}}};this.get=function(key){if(typeof(window.sessionStorage)!="undefined"){var val=window.sessionStorage.getItem(key);if(typeof(val)!="undefined"){if(val==null){return null;} if(typeof(val)=="object"&&typeof(val.value)!="undefined"){val=val.value;} if(typeof(JSON)!="undefined"){return eval("("+val+")");}else{return val;}}else{return val;}}else{return this.storage[key];}};this.clear=function(){if(typeof(window.sessionStorage)!="undefined"){if(typeof(window.sessionStorage.clear)!="undefined"){window.sessionStorage.clear();}else{for(var i=0;i