version 1.32, 2005/06/20 19:52:51
|
version 1.35, 2006/02/10 23:45:02
|
Line 176 function year() {
|
Line 176 function year() {
|
var thisyear=cdate.getFullYear(); |
var thisyear=cdate.getFullYear(); |
var nowdate=new Date(); |
var nowdate=new Date(); |
var nowyear=nowdate.getFullYear(); |
var nowyear=nowdate.getFullYear(); |
|
if ( !thisyear ) { thisyear=nowyear; } |
var loweryear=thisyear-2; |
var loweryear=thisyear-2; |
var upperyear=thisyear+5; |
var upperyear=thisyear+5; |
if (thisyear>nowyear) { loweryear=nowyear-2; } |
if (thisyear>nowyear) { loweryear=nowyear-2; } |
Line 569 function draw() {
|
Line 570 function draw() {
|
' type="radio" '+callradiostringeval('problem')); |
' type="radio" '+callradiostringeval('problem')); |
if (svalue=='problem') { choicewrite(' checked'); } |
if (svalue=='problem') { choicewrite(' checked'); } |
choicewrite('> Standard Problem</label><br />'); |
choicewrite('> Standard Problem</label><br />'); |
choicewrite('<label><input name="stringval" value="quiz"'+ |
choicewrite('<label><input name="stringval" value="practice"'+ |
' type="radio" '+callradiostringeval('quiz')); |
' type="radio" '+callradiostringeval('practice')); |
if (svalue=='quiz') { choicewrite(' checked'); } |
if (svalue=='practice') { choicewrite(' checked'); } |
choicewrite('> Quiz</label><br />'); |
choicewrite('> Practice</label><br />'); |
choicewrite('<label><input name="stringval" value="exam"'+ |
choicewrite('<label><input name="stringval" value="exam"'+ |
' type="radio" '+callradiostringeval('exam')); |
' type="radio" '+callradiostringeval('exam')); |
if (svalue=='exam') { choicewrite(' checked'); } |
if (svalue=='exam') { choicewrite(' checked'); } |
Line 730 function init() {
|
Line 731 function init() {
|
if (pair[0]=='call') { pcode=pair[1]; } |
if (pair[0]=='call') { pcode=pair[1]; } |
if (pair[0]=='marker') { pmarker=pair[1]; } |
if (pair[0]=='marker') { pmarker=pair[1]; } |
if (pair[0]=='name') { pname=pair[1]; } |
if (pair[0]=='name') { pname=pair[1]; } |
if (pair[0]=='defhour') { defhour=pair[1]; } |
if (pair[0]=='defhour' && pair[1] >= 0 && pair[1] < 24 ) { |
if (pair[0]=='defmin') { defmin=pair[1]; } |
defhour=pair[1]; |
if (pair[0]=='defsec') { defsec=pair[1]; } |
} |
|
if (pair[0]=='defmin' && pair[1] >= 0 && pair[1] < 60) { defmin=pair[1]; } |
|
if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } |
} |
} |
|
|
svalue=pvalue; |
svalue=pvalue; |