' // assign document object of main frame to local variable var doc = frames[2].document // close data stream to document doc.close() // open new data stream to document (text/html) doc.open('text/html') // print HTML content doc.write(result) // close data stream to document doc.close() } // stores all selections as a cookie function save() { var slot = link.r + link.g + link.b + alink.r + alink.g + alink.b + vlink.r + vlink.g + vlink.b + text.r + text.g + text.b + bgcolor.r + bgcolor.g + bgcolor.b var now = new Date() fixDate(now) now.setTime(now.getTime() + 31 * 24 * 60 * 60 * 1000) // one month setCookie("slot", slot, now) } // load values from cookie (concatenation order in save() matters!) function load() { var slot = getCookie("slot") if (slot != null) { link.r = slot.substring(0, 2) link.g = slot.substring(2, 4) link.b = slot.substring(4, 6) alink.r = slot.substring(6, 8) alink.g = slot.substring(8, 10) alink.b = slot.substring(10, 12) vlink.r = slot.substring(12, 14) vlink.g = slot.substring(14, 16) vlink.b = slot.substring(16, 18) text.r = slot.substring(18, 20) text.g = slot.substring(20, 22) text.b = slot.substring(22, 24) bgcolor.r = slot.substring(24, 26) bgcolor.g = slot.substring(26, 28) bgcolor.b = slot.substring(28, 30) eval(curAttribute()).display() update() } } // --> Please download a frames-capable browser!