/* --------- style.js -------*/ SheetFolder="http://www.bc.wakwak.com/~cosa/style/"; BaseSheet="base"; Deadline="Fri, 31-Dec-2001 23:59:59;" Number=3 SheetFile=new Array(Number-1); SheetFile[0]="cornflowerblue"; SheetFile[1]="black"; SheetFile[2]="no-style"; StyleTagStart=''; function ChangeSheet(){ SheetSelect = document.Change.StyleSelect.selectedIndex; SheetName = document.Change.StyleSelect.options[SheetSelect].value; document.cookie="Nunber="+SheetName+";expires="+Deadline; top.location.reload();} SheetSelected=document.cookie.split("="); if(SheetSelected[1] != SheetFile[3] || document.cookie == "undefined" || document.cookie == ""){NoStyleExcept()} function NoStyleExcept(){ if(document.cookie == "" || document.cookie == "undefined"){ document.write(StyleTagStart+BaseSheet+StyleTagEnd); document.write(StyleTagStart+SheetFile[0]+StyleTagEnd);} else if(SheetSelected[1] != SheetFile[2]){ document.write(StyleTagStart+BaseSheet+StyleTagEnd); document.write(StyleTagStart+SheetSelected[1]+StyleTagEnd);} } /* --------- change.js -------*/ document.write('
');