<HTML> <script language="javascript"> <!-- begin script condition = "undefined"; function updateCookie () { var selection = eval(document.settings.frequency.selectedIndex); var frequencies=new Array('0', '60', '120', '300', '600', '1800') var userName = document.settings.yourname.value; if (userName == "") userName = 'Nameless User'; var updateFrequency = frequencies[selection]; var expiryDate = new Date (); parent.fixCookieDate (expiryDate); expiryDate.setTime (expiryDate.getTime() + (365 * 24 * 60 * 60 * 1000)); var cookieValue = "user$"+userName+"freq$"+updateFrequency; parent.setCookie ("ngopalanrandomstart", cookieValue,expiryDate); parent.location.reload(); } if (self != parent) { if (parent.getCookie ("ngopalanrandomstart") != null) { var condition = "old"; var cookieValue = parent.getCookie ("ngopalanrandomstart"); var len = cookieValue.length; userName = cookieValue.substring (cookieValue.indexOf("user$")+5, cookieValue.indexOf("freq$")); frequency = cookieValue.substring (cookieValue.indexOf("freq$")+5, len); } else condition = "new"; } // end script --> </script> <HEAD> <TITLE> Nag's Random Start Page </TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FFFFFF" VLINK="#FFFFFF"> <DL><DD> <H3>Customize Your settings</H3> </DD></DL> <HR> <CENTER> <FORM NAME="settings" onSubmit="updateCookie();"> <TABLE BORDER="0" CELLPADDING="2" CELLSPACING="2"> <TR> <TD ALIGN=RIGHT VALIGN=TOP> Your Name: </TD> <TD ALIGN=CENTER VALIGN=TOP> <script language="javascript"> <!-- begin script if (condition == "old") { text = '<INPUT TYPE=\"text\" NAME=\"yourname\" SIZE=30 VALUE=\"'+userName+'\">'; document.write (text); } else { document.write ('<INPUT TYPE=\"text\" NAME=\"yourname\" SIZE=30>'); } // end script --> </script> </TD> </TR> <TR> <TD ALIGN=RIGHT VALIGN=TOP> Frequency of Random Jumps: </TD> <TD ALIGN=CENTER VALIGN=TOP> <script language="javascript"> <!-- begin script document.writeln ('<SELECT NAME=\"frequency\">'); document.writeln ('<OPTION value=\"Default\">Select from'); if ((condition == "old") && (frequency == "60")) document.writeln ('<OPTION SELECTED value=\"60\">1 minute'); else document.writeln ('<OPTION value=\"60\">1 minute'); if ((condition == "old") && (frequency == "120")) document.writeln ('<OPTION SELECTED value=\"120\">2 minutes'); else document.writeln ('<OPTION value=\"120\">2 minutes'); if ((condition == "old") && (frequency == "300")) document.writeln ('<OPTION SELECTED value=\"300\">5 minutes'); else document.writeln ('<OPTION value=\"300\">5 minutes'); if ((condition == "old") && (frequency == "600")) document.writeln ('<OPTION SELECTED value=\"600\">10 minutes'); else document.writeln ('<OPTION value=\"600\">10 minutes'); if ((condition == "old") && (frequency == "1800")) document.writeln ('<OPTION SELECTED value=\"1800\">30 minutes '); else document.writeln ('<OPTION value=\"1800\">30 minutes'); document.writeln ('</SELECT>'); // end script --> </script> </TD> </TR> <TR> <TD ALIGN=CENTER VALIGN=TOP COLSPAN="2"> <INPUT TYPE="submit" VALUE="Customize!"><INPUT TYPE="reset" VALUE="Reset"> </TD> </TR> </TABLE> </FORM> </CENTER> </BODY> </HTML>