version 1.64, 2012/03/13 05:37:55
|
version 1.64.2.3, 2016/08/05 17:39:45
|
Line 241 function month() {
|
Line 241 function month() {
|
function intminute() { |
function intminute() { |
var thisminutes=cmins; |
var thisminutes=cmins; |
var i; |
var i; |
choicewrite('<select name="minutes" onchange="parent.intcalc();">'); |
var result = ''; |
|
result += '<select name="minutes" onchange="parent.intcalc();">'; |
for (i=0;i<=59;i++) { |
for (i=0;i<=59;i++) { |
choicewrite('<option value="'+i+'"'); |
result += '<option value="'+i+'"'; |
if (i==thisminutes) { |
if (i==thisminutes) { |
choicewrite(' selected="selected"'); |
result += ' selected="selected"'; |
} |
} |
choicewrite('>'+i+'</option>'); |
result += '>'+i+'</option>'; |
} |
} |
choicewrite('</select>'); |
result += '</select>'; |
|
return result; |
} |
} |
|
|
function inthour() { |
function inthour() { |
var thishours=chours; |
var thishours=chours; |
var i; |
var i; |
choicewrite('<select name="hours" onchange="parent.intcalc();">'); |
var result = ''; |
|
result += '<select name="hours" onchange="parent.intcalc();">'; |
for (i=0;i<=23;i++) { |
for (i=0;i<=23;i++) { |
choicewrite('<option value="'+i+'"'); |
result += '<option value="'+i+'"'; |
if (i==thishours) { |
if (i==thishours) { |
choicewrite(' selected="selected"'); |
result += ' selected="selected"'; |
} |
} |
choicewrite('>'+i+'</option>'); |
result += '>'+i+'</option>'; |
} |
} |
choicewrite('</select>'); |
result += '</select>'; |
} |
return result; |
|
} |
|
|
function intsecond() { |
function intsecond() { |
var thisseconds=csecs; |
var thisseconds=csecs; |
var i; |
var i; |
choicewrite('<select name="seconds" onchange="parent.intcalc();">'); |
var result = ''; |
|
result += '<select name="seconds" onchange="parent.intcalc();">'; |
for (i=0;i<=59;i++) { |
for (i=0;i<=59;i++) { |
choicewrite('<option value="'+i+'"'); |
result += '<option value="'+i+'"'; |
if (i==thisseconds) { |
if (i==thisseconds) { |
choicewrite(' selected="selected"'); |
result += ' selected="selected"'; |
} |
} |
choicewrite('>'+i+'</option>'); |
result += '>'+i+'</option>'; |
} |
} |
choicewrite('</select>'); |
result += '</select>'; |
} |
return result; |
|
} |
|
|
|
|
function intday() { |
function intday() { |
var thisdate=cdays; |
var thisdate=cdays; |
var i; |
var i; |
choicewrite('<select name="date" onchange="parent.intcalc();">'); |
var result =''; |
|
result += '<select name="date" onchange="parent.intcalc();">'; |
for (i=0;i<=31;i++) { |
for (i=0;i<=31;i++) { |
choicewrite('<option value="'+i+'"'); |
result += '<option value="'+i+'"'; |
if (i==thisdate) { |
if (i==thisdate) { |
choicewrite(' selected="selected"'); |
result += ' selected="selected"'; |
} |
} |
choicewrite('>'+i+'</option>'); |
result += '>'+i+'</option>'; |
} |
} |
choicewrite('</select>'); |
result += '</select>'; |
|
return result; |
} |
} |
|
|
function intcalc() { |
function intcalc() { |
Line 342 function radiostringeval(newval) {
|
Line 350 function radiostringeval(newval) {
|
} |
} |
|
|
function callradiostringeval(newval) { |
function callradiostringeval(newval) { |
return 'onchange="parent.radiostringeval(\'' |
return 'onclick="parent.radiostringeval(\''+newval+'\')"'; |
+newval+'\')" onclick="parent.radiostringeval(\'' |
|
+newval+'\')"'; |
|
} |
} |
|
|
function intervaldis() { |
function intervaldis() { |
Line 473 function draw() {
|
Line 479 function draw() {
|
} |
} |
if (pscat=='interval') { |
if (pscat=='interval') { |
tablestart('Time interval'); |
tablestart('Time interval'); |
choicewrite('<tr><td colspan="3">'); |
choicewrite( [ |
intervaldis(); |
'<tr><td colspan="3">'+intervaldis()+'</td></tr>', |
choicewrite('</td></tr><tr><td>Time:' |
'<tr><td>Time:</td><td colspan="2">', |
+'</td><td colspan="2">'); |
'<span style="white-space:nowrap">'+intday()+' days </span>', |
intday();choicewrite('days '); |
'<span style="white-space:nowrap">'+inthour()+' hours</span>', |
inthour();choicewrite('hours '); |
'<span style="white-space:nowrap">'+intminute()+' mins</span>', |
intminute(); choicewrite('mins '); intsecond(); |
'<span style="white-space:nowrap">'+intsecond()+' secs</span>', |
choicewrite('secs</td></tr></table>'); |
'</td></tr>', |
|
'</table>', |
|
'<br />', |
|
].join("\n")); |
} else { |
} else { |
choicewrite('<tr><td colspan="3">' |
choicewrite('<tr><td colspan="3">' |
+cdate.toString()+ |
+cdate.toString()+ |
Line 900 function init() {
|
Line 909 function init() {
|
selwrite('</head>'); |
selwrite('</head>'); |
selwrite('<body>'); |
selwrite('<body>'); |
selwrite('<form name="fsel" action=""><b>'+pname+'</b><br />'); |
selwrite('<form name="fsel" action=""><b>'+pname+'</b><br />'); |
selwrite('<select name="fcat" onchange="parent.catchange();">'); |
selwrite('Format of Value(s): <select name="fcat" onchange="parent.catchange();">'); |
|
|
if (ptype=='tolerance') { |
if (ptype=='tolerance') { |
sopt('default','Default'); |
sopt('default','Default'); |