version 1.38, 2004/04/15 19:32:37
|
version 1.39, 2004/12/15 19:02:45
|
Line 82 function getcurseed() {
|
Line 82 function getcurseed() {
|
} |
} |
|
|
function getproblemtype() { |
function getproblemtype() { |
if (parent.LONCAPAToBePublished.document.lonhomework) { |
if (parent.LONCAPAToBePublished.document.lonhomework |
var optionelement; |
&& |
var valueIndex=0; |
parent.LONCAPAToBePublished.document.lonhomework.problemtype) { |
for (var optionIndex=0; |
if (parent.LONCAPAToBePublished.document.lonhomework.problemtype.value) { |
optionIndex < parent.LONCAPAToBePublished.document.lonhomework.problemtype.options.length; |
return parent.LONCAPAToBePublished.document.lonhomework.problemtype.value; |
optionIndex++) |
} |
{ |
if (parent.LONCAPAToBePublished.document.lonhomework.problemtype.options) { |
optionElement=parent.LONCAPAToBePublished.document.lonhomework.problemtype.options[optionIndex]; |
var optionelement; |
if (optionElement.selected) { |
var valueIndex=0; |
return optionElement.value; |
for (var optionIndex=0; |
} |
optionIndex < parent.LONCAPAToBePublished.document.lonhomework.problemtype.options.length; |
} |
optionIndex++) |
|
{ |
|
optionElement=parent.LONCAPAToBePublished.document.lonhomework.problemtype.options[optionIndex]; |
|
if (optionElement.selected) { |
|
return optionElement.value; |
|
} |
|
} |
|
} |
} |
} |
return 0; |
return 0; |
} |
} |