You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2438 lines
66 KiB

<!-- $Id: tdef.htt,v 1.21 2006/11/10 00:57:12 ddoughty Exp $ -->
<HTML>
<HEAD>
<TITLE><%=PHRASE.395%></TITLE>
<BASEFONT FACE="Arial">
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
<STYLE>
<!--
SELECT {font-size: 10px;}
INPUT {font-size: 10px;height: 20;}
-->
</STYLE>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.INCLUDEJS global.js %>
<SCRIPT language="JavaScript">
<!--
<%=SYSTEM.STARTIF?SESSION.browserapp MSIE INCLUDE %>
bNSNG = 0;
<%=SYSTEM.ELSE%>
bNSNG = 1;
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?SYSTEM.languagesupport TRUE INCLUDE %>
<%=SYSTEM.INCLUDEJS langspttdef.js %>
<%=SYSTEM.ELSE%>
<%=SYSTEM.INCLUDEJS langsptnone.js %>
<%=SYSTEM.ENDIF%>
var down, csec, syncform;
function wdw_onLoad() {
var syr, smon, sday, sAvail, i,oform;
syncform = top.findex.document.syncform;
syncform.csec.value = <%=SYSTEM.autologout%>;
monitor();
sAvail = document.form1.availon.value;
if (sAvail == "") {
sAvail = "01/01/2004-00:00";
}
syr = sAvail.substring(6,10);
smon = sAvail.substring(0,2);
sday = sAvail.substring(3,5);
for (i = 0; i < document.form1.availonmonth.length; i++) {
if (document.form1.availonmonth.options[i].value == smon) {
document.form1.availonmonth.selectedIndex = i;
break;
}
}
for (i = 0; i < document.form1.availonday.length; i++) {
if (document.form1.availonday.options[i].value == sday) {
document.form1.availonday.selectedIndex = i;
break;
}
}
for (i = 0; i < document.form1.availonyear.length; i++) {
if (document.form1.availonyear.options[i].value == syr) {
document.form1.availonyear.selectedIndex = i;
break;
}
}
sAvail = document.form1.availthru.value;
if (sAvail == "") {
sAvail = "12/31/2009";
}
syr = sAvail.substring(6,10);
smon = sAvail.substring(0,2);
sday = sAvail.substring(3,5);
for (i = 0; i < document.form1.availthrumonth.length; i++) {
if (document.form1.availthrumonth.options[i].value == smon) {
document.form1.availthrumonth.selectedIndex = i;
break;
}
}
for (i = 0; i < document.form1.availthruday.length; i++) {
if (document.form1.availthruday.options[i].value == sday) {
document.form1.availthruday.selectedIndex = i;
break;
}
}
for (i = 0; i < document.form1.availthruyear.length; i++) {
if (document.form1.availthruyear.options[i].value == syr) {
document.form1.availthruyear.selectedIndex = i;
break;
}
}
<%=SYSTEM.STARTIF?TEST.seq std,adp,dmg INCLUDE %>
document.form1.cbshowsubj.checked = (document.form1.showsubj.value == "Y") ? true : false;
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq dmg INCLUDE %>
document.form1.cbgroup.checked = (document.form1.group.value == "Y") ? true : false;
document.form1.cbtpp.checked = (document.form1.tpp.value == "Y") ? true : false;
<%=SYSTEM.ENDIF%>
document.form1.cbtstalwrotip.checked = (document.form1.tstalwrotip.value == "Y") ? true : false;
<%=SYSTEM.STARTIF?SYSTEM.languagesupport TRUE INCLUDE %>
if ("<%=TEST.deliverlanguage%>" == "") {
language_select(document.form1.sellang.options[document.form1.sellang.selectedIndex].value);
} else {
for (var x=0;x<document.form1.sellang.options.length;x++) {
if ( document.form1.sellang.options[x].value == "<%=TEST.deliverlanguage%>") {
document.form1.sellang.selectedIndex = x;
language_select(document.form1.sellang.options[document.form1.sellang.selectedIndex].value);
}
}
}
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
umtxform=document.form1;
CreateUMatrix();
<%=SYSTEM.ENDIF%>
// v addition for test/survey anonymous login and retake
loadretakefields(document.form1);
// ^ addition for test/survey anonymous login and retake
<%=SYSTEM.STARTIF?TEST.reload Y INCLUDE %>
oform=document.form3;
oform.submit();
// display alert message only if 'changes saved'
if ("<%=FORM.respmsg%>" == "<%=PHRASE.556%>") {
alert("<%=PHRASE.556%>");
}
<%=SYSTEM.ENDIF%>
}
// v addition for test/survey anonymous login and retake
function publicClick(oform) {
reset_autotimer();
return true;
}
function pubpwdClick(oform) {
if (oform.chkpubpwd.checked == false) {
oform.pwdprotect.value = "";
}
reset_autotimer();
return true;
}
function pwdprotectChange(oform) {
if (oform.pwdprotect.value == "") {
oform.chkpubpwd.checked=false;
} else {
oform.chkpubpwd.checked=true;
}
reset_autotimer();
return true;
}
function maxretakesChange(oform) {
reset_autotimer();
return true;
}
function maxretakesChange_old(oform) {
if (oform.maxretakes.selectedIndex==0) {
oform.retakecondition.selectedIndex=0;
oform.afterwaiting.selectedIndex=0;
oform.minretakedelay.selectedIndex=0;
//oform.enableautoretake[0].checked = true;
//oform.maxretain.selectedIndex=0;
} else {
if (oform.maxretakes.selectedIndex==(oform.maxretakes.length-1)) {
oform.retakecondition.selectedIndex=2;
//oform.enableautoretake[1].checked = true;
if (oform.afterwaiting.selectedIndex==0) {
oform.afterwaiting.selectedIndex=1;
oform.minretakedelay.selectedIndex=0;
}
} else {
if (oform.retakecondition.selectedIndex==0) {
oform.retakecondition.selectedIndex=1;
oform.afterwaiting.selectedIndex=1;
oform.minretakedelay.selectedIndex=0;
//oform.enableautoretake[2].checked = true;
}
}
}
reset_autotimer();
return true;
}
function retakeconditionChange(oform) {
var i;
if (oform.retakecondition.selectedIndex==0) {
oform.maxretakes.selectedIndex=0;
oform.afterwaiting.selectedIndex=0;
oform.minretakedelay.selectedIndex=0;
//oform.enableautoretake[0].checked = true;
} else {
i=oform.maxretakes.length-2;
if (oform.maxretakes.selectedIndex == i) {
oform.retakecondition.selectedIndex=1;
}
if (oform.maxretakes.selectedIndex==0) {
oform.maxretakes.selectedIndex=1;
}
if (oform.afterwaiting.selectedIndex==0) {
oform.afterwaiting.selectedIndex=1;
oform.minretakedelay.selectedIndex=0;
}
if (oform.retakecondition.selectedIndex==1) {
//oform.enableautoretake[2].checked = true;
} else if (oform.retakecondition.selectedIndex==2) {
//oform.enableautoretake[1].checked = true;
}
}
reset_autotimer();
return true;
}
function afterwaitingChange(oform) {
if (oform.afterwaiting.selectedIndex==0) {
oform.maxretakes.selectedIndex=0;
oform.minretakedelay.selectedIndex=0;
oform.retakecondition.selectedIndex=0;
//oform.enableautoretake[0].checked = true;
} else {
if (oform.afterwaiting.selectedIndex==1) {
oform.minretakedelay.selectedIndex=0;
} else {
oform.minretakedelay.selectedIndex=1;
}
if (oform.maxretakes.selectedIndex==0) {
oform.maxretakes.selectedIndex=1;
}
if (oform.retakecondition.selectedIndex==0) {
oform.retakecondition.selectedIndex=1;
}
}
reset_autotimer();
return true;
}
function minretakedelayChange(oform) {
if (oform.minretakedelay.selectedIndex==0) {
oform.afterwaiting.selectedIndex=1;
} else {
if (oform.maxretakes.selectedIndex==0) {
oform.maxretakes.selectedIndex=1;
}
if (oform.retakecondition.selectedIndex==0) {
oform.retakecondition.selectedIndex=1;
}
oform.afterwaiting.selectedIndex=2;
}
reset_autotimer();
return true;
}
function maxretainChange(oform) {
reset_autotimer();
return true;
}
function enableautoretakeClick(oform) {
if (oform.maxretakes.selectedIndex == 0) {
oform.enableautoretake[0].checked = true;
}
reset_autotimer();
return true;
}
function invaliduseravailto(oform) {
var s;
if ((oform.pwdprotect.value == "") && (oform.chkpubpwd.checked==true)) {
alert("A password must be entered if the password protection is checked.");
return true;
}
s=(oform.chkpublic.checked==true) ? "Y" : "N";
s+=(oform.chkpubpwd.checked==true) ? ".Y" : ".N";
s+="."+oform.pwdprotect.value;
s+="."+oform.maxretakes.options[oform.maxretakes.selectedIndex].value;
s+=".....";
//s+="."+oform.retakecondition.options[oform.retakecondition.selectedIndex].value;
//s+="."+oform.afterwaiting.options[oform.afterwaiting.selectedIndex].value;
//s+="."+oform.minretakedelay.options[oform.minretakedelay.selectedIndex].value;
//for (var i = 0; i < oform.enableautoretake.length; i++)
//if (oform.enableautoretake[i].checked==true)
//s+="."+oform.enableautoretake[i].value;
//s+="."+oform.maxretain.value;
s+=(oform.chkanonsubmit.checked==true) ? ".Y" : ".N";
s+=(oform.chkemlpwd.checked==true) ? ".Y" : ".N";
oform.availto.value=s;
return false;
}
function loadretakefields(oform) {
var flags=new Array;
if (invalidavailto(oform.availto.value,flags)) {
return false;
}
oform.chkpublic.checked=(flags[0]=="Y") ? true : false;
oform.chkpubpwd.checked=(flags[1]=="Y") ? true : false;
oform.pwdprotect.value=flags[2];
selectedIndexbyValue(oform.maxretakes,flags[3]);
//selectedIndexbyValue(oform.retakecondition,flags[4]);
//selectedIndexbyValue(oform.afterwaiting,flags[5]);
//selectedIndexbyValue(oform.minretakedelay,flags[6]);
//for (var i = 0; i < oform.enableautoretake.length; i++)
//if (oform.enableautoretake[i].value==flags[7])
//oform.enableautoretake[i].checked=true;
//selectedIndexbyValue(oform.maxretain,flags[8]);
oform.chkanonsubmit.checked=(flags[9]=="Y") ? true : false;
oform.chkemlpwd.checked=(flags[10]=="Y") ? true : false;
}
function invalidavailto(avt,f) {
var i,j,c,t,l;
j=0;
c="";
t="";
l=avt.length-1;
for (i=0; i <= l;i++) {
c=avt.charAt(i);
if ((c.toString() == ".") || (i == l)) {
if (i == l) {
t+=c.toString();
}
f[j]=t;
t="";
j++;
} else {
t+=c.toString();
}
}
if (j != 10 && j != 11) {
return true;
} else {
return false;
}
}
function selectedIndexbyValue(sellst,v) {
var i;
for (i=0;i<sellst.options.length;i++) {
if (sellst.options[i].value==v) {
sellst.selectedIndex = i;
break;
}
}
}
// ^ addition for test/survey anonymous login and retake
// v addition for Test construction by subject area composition
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
var umatrix=new Array;
var umtxform;
function randQuestions(chkbx) {
var r,nr;
if (chkbx.checked) {
if (umtxform.cbsapmtx.checked) {
nr=umatrix.rows;
for (r=0;r<nr;r++) {
umatrix.row[r].fixorder=0;
umatrix.row[r].ordbx.value="0";
umatrix.row[r].randomize=true;
umatrix.row[r].rndbx.checked=true;
}
}
}
}
function omtx(rw,cl) {
var i,j,s,nq;
s=umtxform.noq.value;
if (s=="") {
nq=0;
} else {
nq=parseInt(s);
}
this.noq=nq;
this.rows=rw;
this.cols=cl;
this.rowsenabled=rw;
this.colsenabled=cl;
this.row=new Array;
this.col=new Array;
this.cell=new Array;
this.randomize=umtxform.tstrndq.checked;
for(i=0;i<rw;i++) {
this.row[i]=new omtxlabel(i,-1);
this.cell[i]=new Array;
for(j=0;j<cl;j++) {
if(i==0) {
this.col[j]=new omtxlabel(-1,j);
}
this.cell[i][j]=new omtxcell(i,j);
}
}
for(j=0;j<cl;j++) {
this.col[j]=new omtxlabel(-1,j);
}
}
function omtxlabel(r,c) {
var enb,s;
if (c==-1) {
this.inpbx=eval("umtxform.sapmtxr"+r+"n;");
this.enbbx=eval("umtxform.cbuser"+r+";");
this.rndbx=eval("umtxform.sapmtxrnd"+r+";");
this.ordbx=eval("umtxform.sapmtxrord"+r+";");
this.fixorder=0;
this.randomize=this.rndbx.checked;
} else {
this.inpbx=eval("umtxform.sapmtxc"+c+"n;");
this.enbbx=eval("umtxform.cbusec"+c+";");
}
this.enable=this.enbbx.checked;
this.pct=0;
return this;
}
function omtxcell(r,c) {
var s;
this.inpbx=eval("umtxform.sapmtxr"+r+"c"+c+";");
this.value=0;
return this;
}
function CreateUMatrix() {
var nr,nc;
if ("<%=FORM.newtest%>" != "Y") {
s=umtxform.sapmtxmaxr.value;
nr=parseInt(s);
s=umtxform.sapmtxmaxc.value;
nc=parseInt(s);
umatrix=new omtx(nr,nc);
SetSAMatrixDefaults();
}
}
function SetSAMatrixDefaults() {
var s,i,j,n,n2,u,v,b,renb,cenb,c,r;
ClearUMatrix();
if (("<%=TEST.mtxfile%>" == "Y") && (umtxform.sapmtx.value == "Y")) {
umtxform.cbsapmtx.checked=true;
} else {
umtxform.cbsapmtx.checked=false;
}
umatrix.rowsenabled=0;
umatrix.colsenabled=0;
if (umtxform.cbsapmtx.checked==true) {
s=umtxform.sapcts.value;
if (s != "") {
b=0;
i=s.indexOf(",",b);
while (i != -1) {
n="";
v="";
c="";
r="";
u=s.substring(b,i);
while (u != "") {
j=u.indexOf(":",0);
if (j == -1) {
if (v == "") {
v=u;
} else {
if (r == "") {
r=u;
} else {
c=u;
}
}
u="";
} else {
if (n == "") {
n=u.substring(0,j);
} else {
if (v == "") {
v=u.substring(0,j);
} else {
if (r == "") {
r=u.substring(0,j);
} else {
c=u.substring(0,j);
}
}
}
j++;
u=u.substring(j);
}
}
if ((n != "") && (v != "")) {
mtxlabelvalue(1,n,v,r,c);
}
i++;
b=i;
i=s.indexOf(",",b);
}
}
s=umtxform.skpcts.value;
if (s != "") {
b=0;
i=s.indexOf(":",b);
while (i != -1) {
n=s.substring(b,i);
i++;
b=i;
j=s.indexOf(",",b);
if (j == -1) {
v="";
} else {
v=s.substring(b,j);
j++;
b=j;
}
if ((n != "") && (v != "")) {
mtxlabelvalue(0,n,v,c,r);
}
i=s.indexOf(":",b);
}
}
s=umtxform.samtx.value;
if (s != "") {
b=0;
i=s.indexOf(":",b);
while (i != -1) {
n=s.substring(b,i);
i++;
b=i;
i=s.indexOf(":",b);
if (i == -1) {
n2="";
v="";
} else {
n2=s.substring(b,i);
i++;
b=i;
j=s.indexOf(",",b);
if (j != -1) {
v=s.substring(b,j);
j++;
b=j;
}
}
if ((n != "") && (n2 != "") && (v != "")) {
mtxcellvalue(n,n2,v);
}
i=s.indexOf(":",b);
}
}
copymatrixtoinpbx();
}
umtxform.tstrndq.checked=umatrix.randomize;
return true;
}
function copymatrixtoinpbx() {
var r,c,nr,nc,erc,ecc,nq;
nr=umatrix.rows;
nc=umatrix.cols;
nq=0;
erc=0;
ecc=0;
for(r=0;r<nr;r++) {
umatrix.row[r].enbbx.checked=umatrix.row[r].enable;
umatrix.row[r].inpbx.value=umatrix.row[r].pct.toString();
umatrix.row[r].ordbx.value=umatrix.row[r].fixorder.toString();
umatrix.row[r].rndbx.checked=umatrix.row[r].randomize;
if (umatrix.row[r].enable) { erc++;}
for(c=0;c<nc;c++) {
if (r==0) {
if (umatrix.col[c].enable) { ecc++;}
umatrix.col[c].enbbx.checked=umatrix.col[c].enable;
umatrix.col[c].inpbx.value=umatrix.col[c].pct.toString();
}
umatrix.cell[r][c].inpbx.value=umatrix.cell[r][c].value.toString();
nq+=umatrix.cell[r][c].value;
}
}
umatrix.rowsenabled=erc;
umatrix.colsenabled=ecc;
umatrix.noq=nq;
umtxform.noq.value=nq.toString();
}
function mtxlabelvalue(b,nm,vl,rnd,fxo) {
var s,r,c,nr,nc;
nr=umatrix.rows;
nc=umatrix.cols;
if (b) {
for(r=0;r<nr;r++) {
eval("s=umtxform.sapmtxrnm"+r+".value;");
if (s==nm) {
umatrix.row[r].enable=true;
umatrix.row[r].pct=parseInt(vl);
if (fxo == "") {
umatrix.row[r].fixorder=0;
} else {
umatrix.row[r].fixorder=parseInt(fxo);
}
umatrix.row[r].randomize=(rnd == "1") ? true : false;
break;
}
}
} else {
for(c=0;c<nc;c++) {
eval("s=umtxform.sapmtxcnm"+c+".value;");
if (s==nm) {
umatrix.col[c].enable=true;
umatrix.col[c].pct=parseInt(vl);
break;
}
}
}
}
function mtxcellvalue(sa,sk,vl) {
var s,r,c,nr,nc;
nr=umatrix.rows;
nc=umatrix.cols;
for(r=0;r<nr;r++) {
s=eval("umtxform.sapmtxrnm"+r+".value;");
if (s==sa) {
for(c=0;c<nc;c++) {
s=eval("umtxform.sapmtxcnm"+c+".value;");
if (s==sk) {
umatrix.row[r].enable=true;
umatrix.col[c].enable=true;
umatrix.cell[r][c].value=parseInt(vl);
break;
}
}
break;
}
}
}
function ClearUMatrix() {
var r,c,nr,nc;
nr=umatrix.rows;
nc=umatrix.cols;
umatrix.rowsenabled=umatrix.rows;
umatrix.colsenabled=umatrix.cols;
for (r=0;r < nr;r++) {
for (c=0;c < nc;c++) {
umatrix.cell[r][c].inpbx.value="";
umatrix.cell[r][c].value=0;
}
}
for (r=0;r < nr;r++) {
umatrix.row[r].enbbx.checked=false;
umatrix.row[r].inpbx.value="";
umatrix.row[r].ordbx.value="";
umatrix.row[r].rndbx.checked=false;
umatrix.row[r].enable=false;
umatrix.row[r].pct=0;
umatrix.row[r].fixorder=0;
umatrix.row[r].randomize=false;
}
for (c=0;c < nc;c++) {
umatrix.col[c].enbbx.checked=false;
umatrix.col[c].inpbx.value="";
umatrix.col[c].enable=false;
umatrix.col[c].pct=0;
}
}
function UMatrixUpdateNOQ() {
var s;
s=umtxform.noq.value;
if (s=="") {
umatrix.noq=0;
} else {
umatrix.noq=parseInt(s);
}
return true;
}
function ActivateUMatrix() {
var r,c,nr,nc,nre,nce;
UMatrixUpdateNOQ();
if (umtxform.sapcts.value=="") {
nr=umatrix.rows;
nc=umatrix.cols;
nre=umatrix.rowsenabled;
nce=umatrix.colsenabled;
for (r=0;r < nr;r++) {
umatrix.row[r].enable=true;
umatrix.row[r].pct=0;
umatrix.row[r].inpbx.value="0";
umatrix.row[r].enbbx.checked=true;
}
for (c=0;c < nc;c++) {
umatrix.col[c].enable=true;
umatrix.col[c].pct=0;
umatrix.col[c].inpbx.value="0";
umatrix.col[c].enbbx.checked=true;
}
UMatrixInitializeCells();
} else {
SetSAMatrixDefaults();
}
return true;
}
function UMatrixInitializeCells() {
UMatrixUpdateNOQ();
UMatrixDistQbyN();
}
function UMatrixDistQbyN() {
var nq,nr,nc,nre,nce,r,c;
var q,x,s;
nr=umatrix.rows;
nc=umatrix.cols;
nre=umatrix.rowsenabled;
nce=umatrix.colsenabled;
nq=umatrix.noq;
for (r=0;r < nr;r++) {
for (c=0;c < nc;c++) {
umatrix.cell[r][c].value=0;
umatrix.cell[r][c].inpbx.value="0";
}
}
if((nq!=0) && (nre!=0) && (nce!=0)) {
x=nq;
q=(nq/nre/nce);
if (q<1) {
q=0;
} else {
s=q.toString();
q=parseInt(s);
x-=(q*nre*nce);
}
if (q!=0) {
for (r=0;r < nr;r++) {
if(umatrix.row[r].enable==true) {
for (c=0;c < nc;c++) {
if(umatrix.col[c].enable==true) {
umatrix.cell[r][c].value=q;
umatrix.cell[r][c].inpbx.value=q.toString();
}
}
}
}
}
while (x>0) {
for (c=0;c < nc;c++) {
if(umatrix.col[c].enable==true) {
for(r=0;r < nr;r++) {
if(umatrix.row[r].enable==true) {
if (x > 0) {
umatrix.cell[r][c].value++;
q=umatrix.cell[r][c].value;
umatrix.cell[r][c].inpbx.value=q.toString();
x--;
}
}
}
}
}
}
}
UMatrixComputePct();
return true;
}
function UMatrixComputePct() {
var s,nq,nr,nc,i,j,rmdr;
nr=umatrix.rows;
nc=umatrix.cols;
nq=umatrix.noq;
resetrowsenabled();
rmdr=0;
if(nq !=0) {
for(r=0;r<nr;r++) {
i=0;
if(umatrix.row[r].enable==true) {
for(c=0;c<nc;c++) {
if (umatrix.col[c].enable == true) {
i+=umatrix.cell[r][c].value;
}
}
}
i=(i*100/nq);
s=i.toString();
s=fpRound(s);
j=parseInt(s);
rmdr+=(i-j);
umatrix.row[r].pct=j;
umatrix.row[r].inpbx.value=j.toString();
}
rmdr=0;
for(c=0;c<nc;c++) {
i=0;
if(umatrix.col[c].enable==true) {
for(r=0;r<nr;r++) {
if (umatrix.row[r].enable == true) {
i+=umatrix.cell[r][c].value;
}
}
}
i=(i*100/nq);
s=i.toString();
s=fpRound(s);
j=parseInt(s);
rmdr+=(i-j);
umatrix.col[c].pct=j;
umatrix.col[c].inpbx.value=j.toString();
}
} else {
for(c=0;c<nc;c++) {
for(r=0;r<nr;r++) {
umatrix.cell[r][c].value=0;
umatrix.cell[r][c].inpbx.value="0";
}
}
}
return true;
}
function resetrowsenabled() {
var nr,nc,nre,nce,r,c;
nr=umatrix.rows;
nc=umatrix.cols;
nre=0;
nce=0;
for (r=0;r < nr;r++) {
if (umatrix.row[r].pct == 0) {
umatrix.row[r].enable=false;
} else {
umatrix.row[r].enable=true;
nre++;
}
umatrix.row[r].enbbx.checked=umatrix.row[r].enable;
}
for (c=0;c < nc;c++) {
if (umatrix.col[c].pct == 0) {
umatrix.col[c].enable=false;
} else {
umatrix.col[c].enable=true;
nce++;
}
umatrix.col[c].enbbx.checked=umatrix.col[c].enable;
}
umatrix.rowsenabled=nre;
umatrix.colsenabled=nce;
}
function resetcellvalues() {
var nr,nc,r,c;
nr=umatrix.rows;
nc=umatrix.cols;
for (r=0;r < nr;r++) {
for (c=0;c < nc;c++) {
umatrix.cell[r][c].value=0;
umatrix.cell[r][c].inpbx.value="0";
}
}
}
function UMatrixComputeNum() {
var nq,nr,nc,nre,nce,r,c;
var qr,qc,xr,xc,s,qt,xt;
nr=umatrix.rows;
nc=umatrix.cols;
nq=umatrix.noq;
resetrowsenabled();
resetcellvalues();
if (nq != 0) {
qr=0;
x=nq;
for(r=0;r<nr;r++) {
if (umatrix.row[r].enable==true) {
qr=(nq*umatrix.row[r].pct/100);
if (qr<1) {
if (qr < 0.5) {
qr=0;
} else {
qr=1;
}
} else {
s=qr.toString();
s=fpRound(s);
qr=parseInt(s);
}
if (qr > x) {qr=x;}
xr=qr;
x-=xr;
for(c=0;c<nc;c++) {
if (umatrix.col[c].enable==true) {
qc=(qr*(umatrix.col[c].pct/100));
if (qc<1) {
if (qc < 0.5) {
qc=0;
} else {
qc=1;
}
} else {
s=qc.toString();
s=fpRound(s);
qc=parseInt(s);
}
if (qc > xr) {qc=xr;}
umatrix.cell[r][c].value=qc;
umatrix.cell[r][c].inpbx.value=qc.toString();
xr-=qc;
}
}
}
}
}
return true;
}
function fpRound(t) {
var i,c;
i=t.indexOf(".",0);
if (i==-1) {
i=parseInt(t);
} else {
i++;
c=t.charAt(i);
i=parseInt(t);
if (c >= "5") {
i++;
}
}
return i.toString();
}
function VerifyMatrixComplete() {
var r,c,nr,nc,i,s;
i=0;
if (umtxform.cbsapmtx.checked==true) {
umtxform.sapmtx.value="Y";
umtxform.saskmatrix.value="Y";
umtxform.sapcts.value="";
umtxform.skpcts.value="";
umtxform.samtx.value="";
nr=umatrix.rows;
nc=umatrix.cols;
for(r=0;r<nr;r++) {
if (umatrix.row[r].enable == true) {
eval("s=umtxform.sapmtxrnm"+r+".value;");
s+=":";
eval("s+=umtxform.sapmtxr"+r+"n.value;");
s+=":";
if (umatrix.row[r].rndbx.checked) {
s+= "1";
} else {
s+= "0";
}
s+=":";
eval("s+=umtxform.sapmtxrord"+r+".value;");
umtxform.sapcts.value+=s+",";
for(c=0;c<nc;c++) {
if (umatrix.col[c].enable == true) {
i+=umatrix.cell[r][c].value;
if (r==0) {
eval("s=umtxform.sapmtxcnm"+c+".value;");
s+=":";
eval("s+=umtxform.sapmtxc"+c+"n.value;");
umtxform.skpcts.value+=s+",";
}
eval("s=umtxform.sapmtxrnm"+r+".value;");
s+=":";
eval("s+=umtxform.sapmtxcnm"+c+".value;");
s+=":";
eval("s+=umtxform.sapmtxr"+r+"c"+c+".value;");
umtxform.samtx.value+=s+",";
}
}
}
}
if(i==umatrix.noq) {
return true;
} else {
alert("The total number of questions in the composition matrix does not equal the number of questions entered for this test.");
umatrix.cell[0][0].inpbx.focus();
return false;
}
} else {
umtxform.saskmatrix.value="N";
umtxform.sapmtx.value="N";
return true;
}
}
function cbuseChange(r,c) {
var nr,nc,i,v,ar,ac;
if (umtxform.cbsapmtx.checked==false) {
alert("You must check the Compose by Subject Area box to enable this box.")
return false;
}
nr=umatrix.rows;
nc=umatrix.cols;
if (c==-1) {
redistributerow(r,umatrix.row[r].enbbx.checked);
umatrix.row[r].enable=umatrix.row[r].enbbx.checked;
} else {
shiftcolumn(c,umatrix.col[c].enbbx.checked);
umatrix.col[c].enabled=umatrix.col[c].enbbx.checked;
}
UMatrixComputeNum();
return true;
}
function redistributerow(r,b) {
var nc,v,ar;
nr=umatrix.rows;
if (b==false) {
v=umatrix.row[r].pct;
if (v != 0) {
umatrix.row[r].pct=0;
umatrix.row[r].inpbx.value="0";
ar=0;
while (v > 0) {
if ((ar!=r) && (umatrix.row[ar].enable==true)) {
umatrix.row[ar].pct++;
umatrix.row[ar].inpbx.value=umatrix.row[ar].pct.toString();
v--;
}
ar++;
if (ar == nr) {ar=0;}
}
}
}
return true;
}
function shiftcolumn(c,b) {
var nr,nc,v,ac,i;
nr=umatrix.rows;
nc=umatrix.cols;
i=false;
for (ac=c-1; ac>=0; ac--) {
if (umatrix.col[ac].enable==true) {
i=true;
break;
}
}
if (!i) {
for (ac=c+1; ac<nc; ac++) {
if (umatrix.col[ac].enable==true) {
i=true;
break;
}
}
}
if (b) {
// split the next preceding column in half
if (i) {
v=umatrix.col[ac].pct/2;
umatrix.col[c].pct=parseInt(v);
umatrix.col[c].inpbx.value=umatrix.col[c].pct.toString();
umatrix.col[ac].pct-=umatrix.col[c].pct;
umatrix.col[ac].inpbx.value=umatrix.col[ac].pct.toString();
} else {
umatrix.col[c].pct=100;
umatrix.col[c].inpbx.value="100";
}
} else {
// add the column to the preceding solumn to shift left
if (i) {
v=umatrix.col[c].pct;
umatrix.col[ac].pct+=parseInt(v);
umatrix.col[ac].inpbx.value=umatrix.col[ac].pct.toString();
}
umatrix.col[c].pct=0;
umatrix.col[c].inpbx.value=umatrix.col[c].pct.toString();
}
return true;
}
function noqChange(q) {
UMatrixUpdateNOQ();
if (umtxform.cbsapmtx.checked) {
// UMatrixInitializeCells();
computecountsClick();
}
return true;
}
function cbsapmtxClick() {
if (umtxform.cbsapmtx.checked) {
umtxform.sapmtx.value="Y";
ActivateUMatrix();
} else {
umtxform.sapmtx.value="N";
ClearUMatrix();
}
return true;
}
function computepercentsClick() {
if (umtxform.cbsapmtx.checked==false) {
alert("You must check the Compose by Subject Area box to enable this box.")
return false;
}
UMatrixComputePct();
return true;
}
function computecountsClick() {
if (umtxform.cbsapmtx.checked==false) {
alert("You must check the Compose by Subject Area box to enable this box.")
return false;
}
UMatrixComputeNum();
return true;
}
function sapmtxQRChange(r,chkbx) {
umatrix.row[r].randomize=chkbx.checked;
if (umatrix.row[r].randomize==false) {
umtxform.tstrndq.checked=false;
umtxform.rndq.value="N";
} else {
umatrix.row[r].randomize=false;
}
return true;
}
function sapmtxFOChange(r,txtbx) {
var i,s;
s=txtbx.value;
if (s=="") {
i=0;
} else {
i=parseInt(s);
umtxform.tstrndq.checked=false;
umtxform.rndq.value="N";
}
umatrix.row[r].fixorder=i;
return true;
}
function sapmtxChange(r,c,txtbx) {
var i,s;
s=txtbx.value;
if (s=="") {
i=0;
} else {
i=parseInt(s);
}
umatrix.cell[r][c].value=i;
return true;
}
function sapmtxPChange(r,c,txtbx) {
var i,s;
if (umtxform.cbsapmtx.checked==false) {
alert("You must check the Compose by Subject Area box to enable this box.")
return false;
}
s=txtbx.value;
if (s=="") {
i=0;
} else {
i=parseInt(s);
}
if(c==-1) {
umatrix.row[r].pct=i;
} else {
umatrix.col[c].pct=i;
}
return true;
}
<%=SYSTEM.ENDIF%>
// ^ addition for Test construction by subject area composition
function monitor() {
monitorrepeat();
}
function monitorrepeat() {
csec=syncform.csec.value;
csec--;
syncform.csec.value=csec;
if ((csec > 0)) {
down=setTimeout("monitorrepeat()",1000);
}
}
function reset_autotimer() {
syncform.csec.value=<%=SYSTEM.autologout%>;
}
function stdseq_onClick(objForm) {
var sURL;
sURL = "<%=PATHS.cgiroot%>/tdef.pl?frm=2&tstid=<%=TEST.id%>&lang=<%=SESSION.lang%>";
parent.tsequence.location = sURL;
if (!objForm.seq[0].checked) {
objForm.seq[0].checked = true;
}
}
function adpseq_onClick(objForm) {
var sURL;
sURL = "<%=PATHS.cgiroot%>/tdef.pl?frm=3&tstid=<%=TEST.id%>&lang=<%=SESSION.lang%>";
parent.tsequence.location = sURL;
if (!objForm.seq[1].checked) {
objForm.seq[1].checked = true;
}
}
function profb_onClick(objForm) {
objForm.cbprofa.checked = false;
}
function profa_onClick(objForm) {
objForm.cbprofb.checked = false;
}
<%=SYSTEM.STARTIF?TEST.seq cfa INCLUDE %>
function preview_click(objForm) {
var wdw, objForm1;
reset_autotimer();
objForm1= document.form1;
objForm1.cfa.value = objForm1.cfa.value.replace(/\n/g,"<br>");
objForm1.cfa.value = objForm1.cfa.value.replace(/\&/g,"");
objForm1.cfa.value = objForm1.cfa.value.replace(/\;/g,"");
objForm.cfa.value = objForm1.cfa.value;
wdw=window.open("", "PreviewWindow", "toolbar=no,scrollbars=yes");
wdw.document.write("One Moment Please ...");
objForm.submit();
return false;
}
<%=SYSTEM.ENDIF%>
function save_onClick(objForm) {
var i, j, hours, sAvail, nnq,snq;
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
if (invaliduseravailto(objForm)) {
objForm.pwdprotect.focus();
return false;
}
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std,svy,dmg INCLUDE %>
if (objForm.noq.value == "") {
nnq=0;
} else {
snq=objForm.noq.value;
nnq=parseInt(snq);
}
if (nnq <= 0) {
alert("<%=PHRASE.675%>");
objForm.noq.focus();
return false;
}
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
if (VerifyMatrixComplete() == false) {
return false;
}
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa INCLUDE %>
objForm.cfa.value = objForm.cfa.value.replace(/\n/g,"<br>");
objForm.cfa.value = objForm.cfa.value.replace(/\&/g,"");
objForm.cfa.value = objForm.cfa.value.replace(/\;/g,"");
<%=SYSTEM.ENDIF%>
if ((objForm.id.value == '') || (objForm.desc.value=='')) {
alert("<%=PHRASE.520%>");
objForm.tstid.focus();
return false;
}
<%=SYSTEM.STARTIF?TEST.seq std,adp,dmg INCLUDE %>
objForm.showsubj.value = (objForm.cbshowsubj.checked) ? "Y" : "N";
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq dmg INCLUDE %>
objForm.group.value = (objForm.cbgroup.checked) ? "Y" : "N";
objForm.tpp.value = (objForm.cbtpp.checked) ? "Y" : "N";
<%=SYSTEM.ENDIF%>
objForm.tstalwrotip.value = (objForm.cbtstalwrotip.checked) ? "Y" : "N";
objForm.savechanges.value = "Y";
i = objForm.availonmonth.selectedIndex;
sAvail = objForm.availonmonth.options[i].value + "/";
i = objForm.availonday.selectedIndex;
sAvail += objForm.availonday.options[i].value + "/";
i = objForm.availonyear.selectedIndex;
sAvail += objForm.availonyear.options[i].value;
objForm.availon.value = sAvail;
i = objForm.availthrumonth.selectedIndex;
sAvail = objForm.availthrumonth.options[i].value + "/";
i = objForm.availthruday.selectedIndex;
sAvail += objForm.availthruday.options[i].value + "/";
i = objForm.availthruyear.selectedIndex;
sAvail += objForm.availthruyear.options[i].value;
objForm.availthru.value = sAvail;
objForm.tmd.value = (objForm.cbtmd.checked) ? "Y" : "N";
objForm.tmd.value += (objForm.cbhideclock.checked) ? ".1" : ".0";
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
objForm.sapmtx.value = (objForm.cbsapmtx.checked) ? "Y" : "N";
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa INCLUDE %>
objForm.emlcnd.value = "N.N.N.N";
objForm.tpp.value = "N";
objForm.qsk.value = "N";
objForm.qpv.value = "N";
objForm.rndq.value = "N";
objForm.rnda.value = "N";
<%=SYSTEM.ELSE%>
objForm.emlcnd.value = (objForm.cbemlcnd.checked) ? "Y." : "N.";
if (objForm.cbemlesa.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
if (objForm.cbemlstart.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
if (objForm.cbemlpause.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
if (objForm.cbemlesahtml.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
if (objForm.cbemlcndrvw.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
if (objForm.cbinactive.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
var emlesarval = "N.";
for (var i = 0; i < objForm.cbemlesar.length; i++) {
if (objForm.cbemlesar[i].checked) {
emlesarval = objForm.cbemlesar[i].value+".";
}
}
objForm.emlcnd.value += emlesarval;
if (objForm.cbemlstartr.checked) {
objForm.emlcnd.value += "Y.";
} else {
objForm.emlcnd.value += "N.";
}
if (objForm.cbemlpauser.checked) {
objForm.emlcnd.value += "Y";
} else {
objForm.emlcnd.value += "N";
}
<%=SYSTEM.ENDIF%>
objForm.rnda.value = (objForm.tstrnda.checked) ? "Y" : "N";
<%=SYSTEM.STARTIF?TEST.seq std,svy INCLUDE %>
objForm.rndq.value = (objForm.tstrndq.checked) ? "Y" : "N";
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
objForm.qsk.value = (objForm.cbqsk.checked) ? "Y" : "N";
objForm.qpv.value = (objForm.cbqpv.checked) ? "Y" : "N";
objForm.tpp.value = (objForm.cbtpp.checked) ? "Y" : "N";
<%=SYSTEM.ENDIF%>
return true;
}
<%=SYSTEM.STARTIF?FORM.dbop tnew EXCLUDE %>
function btnTaclClick(oform) {
oform.submit();
return false;
}
function btnSbaClick(oform) {
oform.submit();
return false;
}
function btnQuestionsClick(oform) {
oform.submit();
return false;
}
function btnDeleteClick(oform) {
if (confirm("Are you sure you want to delete this test/survey?")) {
oform.submit();
}
return false;
}
function btnCustomPgClick(oform) {
oform.submit();
return false;
}
function btnUpImagesClick(oform) {
oform.submit();
return false;
}
function btnWorkshtsClick(oform) {
oform.submit();
return false;
}
<%=SYSTEM.ENDIF%>
function preleaseClick(oform) {
var swarn;
if (oform.cbprelease.checked) {
swarn="<%=PHRASE.677%>";
swarn+=unescape("%0D")+unescape("%0A");
swarn+="<%=PHRASE.678%>";
swarn+=unescape("%0D")+unescape("%0A");
swarn+=unescape("%0D")+unescape("%0A");
swarn+="<%=PHRASE.679%>";
if (confirm(swarn)) {
oform.prelease.value="Y";
return true;
} else {
oform.cbprelease.checked=false;
oform.prelease.value="N";
}
} else {
oform.prelease.value="N";
return true;
}
}
window.onload=wdw_onLoad;
// -->
</SCRIPT>
</HEAD>
<BODY BACKGROUND="<%=SYSTEM.BACKGROUND%>" BGCOLOR="<%=SYSTEM.BGCOLOR%>"
TEXT="<%=SYSTEM.TEXT%>" LINK="<%=SYSTEM.LINK%>"
VLINK="<%=SYSTEM.VLINK%>" ALINK="<%=SYSTEM.ALINK%>">
<CENTER>
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/tdef.pl" Name="form1"
enctype="multipart/form-data" onSubmit="return save_onClick(this)">
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
<INPUT NAME="clid" TYPE=HIDDEN VALUE="<%=SESSION.clid%>">
<INPUT NAME="tmd" TYPE=HIDDEN VALUE="<%=TEST.tmd%>">
<INPUT NAME="emlcnd" TYPE=HIDDEN VALUE="<%=TEST.emlcnd%>">
<INPUT NAME="availto" TYPE=HIDDEN VALUE="<%=TEST.availto%>">
<INPUT NAME="availon" TYPE=HIDDEN VALUE="<%=TEST.availon%>">
<INPUT NAME="availthru" TYPE=HIDDEN VALUE="<%=TEST.availthru%>">
<INPUT NAME="savechanges" TYPE=HIDDEN VALUE="N">
<INPUT NAME="sapmtx" TYPE=HIDDEN VALUE="<%=TEST.sapmtx%>">
<INPUT NAME="newtest" TYPE=HIDDEN VALUE="<%=FORM.newtest%>">
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
<INPUT TYPE="HIDDEN" NAME="flags" VALUE="<%=TEST.flags%>">
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
<INPUT TYPE="HIDDEN" NAME="saskmatrix" VALUE="<%=TEST.saskmatrix%>">
<INPUT TYPE="HIDDEN" NAME="sapcts" VALUE="<%=TEST.sapcts%>">
<INPUT TYPE="HIDDEN" NAME="skpcts" VALUE="<%=TEST.skpcts%>">
<INPUT TYPE="HIDDEN" NAME="samtx" VALUE="<%=TEST.samtx%>">
<%=SYSTEM.ENDIF%>
<FONT SIZE=1>
&nbsp;<A HREF="#sbehave"><%=PHRASE.97%></A>&nbsp;
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
&nbsp;<A HREF="#scompose"><%=PHRASE.589%></A>&nbsp;
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
&nbsp;<A HREF="#sevent"><%=PHRASE.204%></A>&nbsp;
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std,adp INCLUDE %>
&nbsp;<A HREF="#sconfid"><%=PHRASE.132%></A>&nbsp;<BR>
<%=SYSTEM.ENDIF%>
</FONT>
<TABLE CELLSPACING=1 CELLPADDING=1 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#stitle">SHIFT</A></FONT>
</TD>
<TD align=center>
<A NAME="#stitle">
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.414%></FONT>
</A>
</TD>
<TD align=right>
<FONT SIZE=1><A HREF="#sbehave"><%=PHRASE.97%></A></FONT>&nbsp;
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=1 width=100%>
<%=SYSTEM.STARTIF?SYSTEM.languagesupport TRUE INCLUDE %>
<TR>
<TD align="right" nowrap>
<FONT SIZE=2>
<%=PHRASE.521%>
</FONT>
</TD>
<TD align="left" nowrap>
<FONT SIZE=2>
<%=CLIENT.userlanguageselect%>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<TR>
<TD ALIGN="left" VALIGN=top NOWRAP>
<FONT SIZE=2>
<%=PHRASE.10%>&nbsp;<BR>
<%=SYSTEM.STARTIF?FORM.dbop tnew INCLUDE %>
<INPUT TYPE=TEXT NAME="id" VALUE="<%=TEST.id%>" SIZE=10 MAXLENGTH="8"><BR>
<%=SYSTEM.ELSE%>
<%=TEST.id%>
<INPUT TYPE=hidden NAME="id" VALUE="<%=TEST.id%>"><BR>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<CENTER>
<%=TEST.logo%>
</CENTER>
&nbsp;<BR>
<%=SYSTEM.STARTIF?FORM.dbop tnew INCLUDE %>
<FONT COLOR="#FF0000"><%=PHRASE.286%></FONT><BR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
<%=PHRASE.394%><BR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq adp INCLUDE %>
<%=PHRASE.59%><BR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq svy INCLUDE %>
<%=PHRASE.394%><BR><%=PHRASE.383%><BR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq dmg INCLUDE %>
<%=PHRASE.59%><BR><%=PHRASE.168%><BR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa INCLUDE %>
<%=PHRASE.129%><BR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?FORM.dbop tnew EXCLUDE %>
<%=TEST.totq%> <%=PHRASE.333%><BR>
<%=TEST.obsq%> <%=PHRASE.265%><BR>
<%=SYSTEM.ENDIF%>
<INPUT TYPE=hidden NAME="seq" VALUE="<%=TEST.seq%>">&nbsp;<BR>
<INPUT TYPE=hidden NAME="prelease" VALUE="<%=TEST.prelease%>">
<INPUT TYPE=CHECKBOX NAME="cbprelease" <%=TEST.preleasechkd%> onClick="return preleaseClick(this.form)"><%=PHRASE.676%><BR>
<INPUT TYPE=CHECKBOX NAME="cbinactive" <%=TEST.emlinactivechk%>><%=PHRASE.767%><BR>
<INPUT TYPE=HIDDEN NAME="tstalwrotip" VALUE="<%=TEST.tstalwrotip%>">
<INPUT TYPE=CHECKBOX NAME="cbtstalwrotip"><%=PHRASE.825%>
</FONT>
</TD>
<TD ALIGN="left" VALIGN=top NOWRAP>
<FONT SIZE=2>
<%=PHRASE.170%>&nbsp;<BR>
<INPUT TYPE=TEXT NAME="desc" VALUE="<%=TEST.desc%>" SIZE=30 MAXLENGTH="30" onKeyPress="languagesupport(this)" onFocus="return tGotFocus(this)" onChange="return onConvert(this)"><BR>
<%=SYSTEM.STARTIF?SESSION.uac cnd INCLUDE %>
<%=PHRASE.88%>&nbsp;<BR>
<%=SESSION.uid%>
<!-- ###wac 1 of 2 1/12/02 changed from grpowner to ownedby so it will be saved and displayed kmo 7/23/01 -->
<INPUT NAME="ownedby" TYPE=HIDDEN VALUE="<%=SESSION.uid%>"><BR>
<!--
<SELECT NAME="availtolist">
<%=CANDIDATE.groups%>
</SELECT>
-->
<%=SYSTEM.ELSE%>
<%=PHRASE.417%>&nbsp;<BR>
<!-- ###wac 2 of 2 1/12/02 changed from grpowner to ownedby so it will be saved and displayed
also added option value = current ownedby so that it displays and is not
replaced by Public inadvertently wac 01/12/02 -->
<SELECT NAME="ownedby">
<OPTION VALUE=""> </OPTION>
<%=CLIENT.grpowners_ownedby%>
<%=CLIENT.registrars_ownedby%>
</SELECT><BR>
<%=SYSTEM.ENDIF%>
<%=PHRASE.85%>&nbsp;(<%=PHRASE.572%>)<BR>
<SELECT NAME="availonmonth">
<OPTION VALUE="<%=TEST.availonmonth%>"><%=TEST.availonmonthname%>
<%=SYSTEM.months%>
</SELECT>
<SELECT NAME="availonday">
<OPTION VALUE="<%=TEST.availonday%>"><%=TEST.availonday%>
<%=SYSTEM.days%>
</SELECT>
<SELECT NAME="availonyear">
<OPTION VALUE="<%=TEST.availonyear%>"><%=TEST.availonyear%>
<%=SYSTEM.years%>
</SELECT>
@
<SELECT NAME="availonhour">
<OPTION VALUE="<%=TEST.availonhour%>"><%=TEST.availonhourui%>
<%=SYSTEM.hours%>
</SELECT>
:
<SELECT NAME="availonminute">
<OPTION VALUE="<%=TEST.availonminute%>"><%=TEST.availonminute%>
<%=SYSTEM.minutes%>
</SELECT>
<SELECT NAME="availonpmoffset">
<OPTION VALUE="<%=TEST.availonpmoffset%>"><%=TEST.availonampm%>
<%=SYSTEM.pmoffset%>
</SELECT>
<BR>
<%=PHRASE.87%>&nbsp;(<%=PHRASE.572%>)<BR>
<SELECT NAME="availthrumonth">
<OPTION VALUE="<%=TEST.availthrumonth%>"><%=TEST.availthrumonthname%>
<%=SYSTEM.months%>
</SELECT>
<SELECT NAME="availthruday">
<OPTION VALUE="<%=TEST.availthruday%>"><%=TEST.availthruday%>
<%=SYSTEM.days%>
</SELECT>
<SELECT NAME="availthruyear">
<OPTION VALUE="<%=TEST.availthruyear%>"><%=TEST.availthruyear%>
<%=SYSTEM.years%>
</SELECT>
@
<SELECT NAME="availthruhour">
<OPTION VALUE="<%=TEST.availthruhour%>"><%=TEST.availthruhourui%>
<%=SYSTEM.hours%>
</SELECT>
:
<SELECT NAME="availthruminute">
<OPTION VALUE="<%=TEST.availthruminute%>"><%=TEST.availthruminute%>
<%=SYSTEM.minutes%>
</SELECT>
<SELECT NAME="availthrupmoffset">
<OPTION VALUE="<%=TEST.availthrupmoffset%>"><%=TEST.availthruampm%>
<%=SYSTEM.pmoffset%>
</SELECT>
<BR>
(<%=PHRASE.573%>&nbsp;<%=FORM.servertime%>)
</FONT>
</TD>
</TR>
<%=SYSTEM.STARTIF?FORM.dbop tnew EXCLUDE %>
<%=SYSTEM.STARTIF?TEST.instance Y EXCLUDE %>
<TR>
<TD>
<FONT SIZE=2>
<input type=checkbox name="instanceit" onChange="reset_autotimer()">
<%=PHRASE.933%>
<input type=text name="instancename" maxlength="8" size="10" onChange="reset_autotimer()">
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=PHRASE.934%>
<INPUT TYPE=TEXT NAME="instancedesc" VALUE="<%=PHRASE.935%> <%=TEST.desc%>" SIZE=30 MAXLENGTH="30" onKeyPress="languagesupport(this)" onFocus="return tGotFocus(this)" onChange="return onConvert(this)">
&nbsp;<BR>
</FONT>
</TD>
<TD>
<FONT SIZE=2>
<input type=checkbox name="cloneit" onChange="reset_autotimer()">
<%=PHRASE.562%>
<input type=text name="clonename" maxlength="8" size="10" onChange="reset_autotimer()">
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=PHRASE.729%>
<INPUT TYPE=TEXT NAME="clonedesc" VALUE="<%=PHRASE.735%> <%=TEST.desc%>" SIZE=30 MAXLENGTH="30" onKeyPress="languagesupport(this)" onFocus="return tGotFocus(this)" onChange="return onConvert(this)">
&nbsp;<BR>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.instance Y INCLUDE %>
<TR>
<TD colspan=2>
<FONT SIZE=2>
<%=PHRASE.942%> "<%=INSTANCE.desc%>" (<%=TEST.instanceof%>).
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
<TR>
<TD valign=top>
<FONT SIZE=2>
<input type=checkbox name="chkpublic" onClick="return publicClick(this.form)"><%=PHRASE.591%><BR>
<input type=checkbox name="chkemlpwd" onClick="return publicClick(this.form)"><%=PHRASE.794%><BR>
<input type=checkbox name="chkanonsubmit" onClick="return publicClick(this.form)"><%=PHRASE.594%><BR>
<input type=checkbox name="chkpubpwd" onClick="return pubpwdClick(this.form)"><%=PHRASE.592%><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=PHRASE.310%>:&nbsp;<input type=text name="pwdprotect" maxlength="50" size="10" onChange="return pwdprotectChange(this.form)"><br>
</TD>
<TD valign=top>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td colspan=3 align=left valign=middle>
<FONT SIZE=2>
<%=PHRASE.849%>:<br>
</FONT>
</td>
</tr>
<tr>
<td colspan=3 align=left valign=middle>
<FONT SIZE=2>
<%=PHRASE.595%>
</FONT>
</td>
</tr>
<tr>
<td align=left valign=middle>
<FONT SIZE=2>
<select name="maxretakes" onChange="return maxretakesChange(this.form)">
<option value="1" selected><%=PHRASE.596%>
<!--
<option value="2"><%=PHRASE.597%>
<option value="3"><%=PHRASE.598%>
<option value="untilpassed"><%=PHRASE.601%>
-->
<option value="unlimited"><%=PHRASE.599%>
</select>
</FONT>
</td>
<td align=left valign=middle>
<!--
<FONT SIZE=2>
<select name="retakecondition" onChange="return retakeconditionChange(this.form)">
<option value="o" selected><%=PHRASE.602%>
<option value="o" selected><%=PHRASE.602%>
<option value="f"><%=PHRASE.603%>
<option value="b"><%=PHRASE.604%>
</select>
</FONT>
-->
</td>
</tr>
<tr>
<td align=left valign=middle>
<FONT SIZE=2>
&nbsp;<br>
</FONT>
</td>
<td align=left valign=middle>
<!--
<FONT SIZE=2>
<select name="afterwaiting" onChange="return afterwaitingChange(this.form)">
<option value="o"><%=PHRASE.602%>
<option value="0"><%=PHRASE.605%>
<option value="1"><%=PHRASE.606%>
</select>
</FONT>
-->
</td>
<td align=left valign=middle>
<!--
<FONT SIZE=2>
<select name="minretakedelay" onChange="return minretakedelayChange(this.form)">
<option value="0" selected><%=PHRASE.602%>
<option value="1h"><%=PHRASE.607%>
<option value="2h"><%=PHRASE.608%>
<option value="4h"><%=PHRASE.609%>
<option value="8h"><%=PHRASE.610%>
<option value="24h"><%=PHRASE.611%>
<option value="2d"><%=PHRASE.612%>
<option value="3d"><%=PHRASE.613%>
<option value="4d"><%=PHRASE.614%>
<option value="5d"><%=PHRASE.615%>
<option value="7d"><%=PHRASE.616%>
<option value="10d"><%=PHRASE.617%>
<option value="14d"><%=PHRASE.618%>
<option value="21d"><%=PHRASE.619%>
<option value="30d"><%=PHRASE.620%>
<option value="45d"><%=PHRASE.621%>
<option value="60d"><%=PHRASE.622%>
<option value="90d"><%=PHRASE.623%>
<option value="120d"><%=PHRASE.624%>
<option value="6m"><%=PHRASE.625%>
<option value="1y"><%=PHRASE.626%>
<option value="2y"><%=PHRASE.627%>
</select>
</FONT>
-->
</td>
</tr>
<input type=hidden name="maxretain" value="">
<!--
<tr>
<td align=left valign=middle>
<FONT SIZE=2><%=PHRASE.628%>
</FONT>
</td>
<td align=left valign=middle>
<FONT SIZE=2>
<select name="maxretain" onChange="return maxretainChange(this.form)">
<option value="1" selected><%=PHRASE.629%>
<option value="2"><%=PHRASE.630%>
<option value="3"><%=PHRASE.631%>
<option value="4"><%=PHRASE.632%>
<option value="5"><%=PHRASE.633%>
<option value="a"><%=PHRASE.634%>
<option value="b"><%=PHRASE.635%>
</select><br>
</FONT>
</td>
<td align=left valign=middle>
<FONT SIZE=2>
&nbsp;<br>
</FONT>
</td>
</tr>
<tr>
<td colspan=3 align=left valign=middle>
<FONT SIZE=2>
<%=PHRASE.636%><br>
<input type=radio name="enableautoretake" value="never" checked="true"> <%=PHRASE.285%>&nbsp;&nbsp;
<input type=radio name="enableautoretake" value="eachtime" onClick="return enableautoretakeClick(this.form)"> <%=PHRASE.847%>&nbsp;&nbsp;
<input type=radio name="enableautoretake" value="onfailure" onClick="return enableautoretakeClick(this.form)"> <%=PHRASE.848%>&nbsp;&nbsp;
</FONT>
</td>
</tr>
-->
</table>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
</TABLE>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#sbehave">SHIFT</A></FONT>
&nbsp;<FONT SIZE=1><A HREF="#stitle"><%=PHRASE.414%></A></FONT>
</TD>
<TD align=center>
<A NAME="#sbehave">
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.97%></FONT>
</A>
</TD>
<TD align=right>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
<FONT SIZE=1><A HREF="#scompose"><%=PHRASE.589%></A></FONT>&nbsp;
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std,cfa EXCLUDE %>
<FONT SIZE=1><A HREF="#sevent"><%=PHRASE.204%></A></FONT>&nbsp;
<%=SYSTEM.ENDIF%>
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=1 width=100%>
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
<TR>
<TD align="center" nowrap>
<TABLE border=0>
<TR>
<TD align=center colspan=5>
<FONT SIZE=2>
<%=PHRASE.415%>
<INPUT TYPE=FILE NAME="testimg" MAXLENGTH=120 SIZE=20>
</FONT>
</TD>
</TR>
<TR>
<TD align=center colspan=5>
<FONT SIZE=2>
<%=PHRASE.522%>
</FONT>
</TD>
</TR>
<TR>
<TD align=center>
<FONT SIZE=2>
<IMG SRC="<%=PATHS.graphurl%>/layout1.gif" border=1><BR>
<INPUT TYPE=RADIO NAME="layout" VALUE="1" <%=TEST.layout1chk%>>
</FONT>
</TD>
<TD align=center>
<FONT SIZE=2>
<IMG SRC="<%=PATHS.graphurl%>/layout2.gif" border=1><BR>
<INPUT TYPE=RADIO NAME="layout" VALUE="2" <%=TEST.layout2chk%>>
</FONT>
</TD>
<TD align=center>
<FONT SIZE=2>
<IMG SRC="<%=PATHS.graphurl%>/layout3.gif" border=1><BR>
<INPUT TYPE=RADIO NAME="layout" VALUE="3" <%=TEST.layout3chk%>>
</FONT>
</TD>
<TD align=center>
<FONT SIZE=2>
<IMG SRC="<%=PATHS.graphurl%>/layout4.gif" border=1><BR>
<INPUT TYPE=RADIO NAME="layout" VALUE="4" <%=TEST.layout4chk%>>
</FONT>
</TD>
<TD align=center>
<FONT SIZE=2>
<IMG SRC="<%=PATHS.graphurl%>/layout5.gif" border=1><BR>
<INPUT TYPE=RADIO NAME="layout" VALUE="5" <%=TEST.layout5chk%>>
</FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
<TR>
<TD align="left" nowrap>
<FONT SIZE=2>
<INPUT TYPE=CHECKBOX NAME="cbtmd" <%=TEST.tmdchk%>>
<%=PHRASE.432%>
<INPUT TYPE=TEXT NAME="maxtm" VALUE="<%=TEST.maxtm%>" SIZE="4" MAXLENGTH="3"> <%=PHRASE.274%>
<INPUT TYPE=CHECKBOX NAME="cbhideclock" <%=TEST.hideclock%>> <%=PHRASE.234%>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<INPUT NAME="qmin" TYPE=HIDDEN VALUE="<%=TEST.qmin%>">
<INPUT NAME="qmax" TYPE=HIDDEN VALUE="<%=TEST.qmax%>">
<INPUT NAME="qent" TYPE=HIDDEN VALUE="<%=TEST.qent%>">
<FONT SIZE=2>
<%=PHRASE.362%>
<SELECT NAME="scr">
<OPTION VALUE="0" <%=TEST.scr0%>><%=PHRASE.312%>
<OPTION VALUE="1" <%=TEST.scr1%>><%=PHRASE.454%>
<OPTION VALUE="2" <%=TEST.scr2%>><%=PHRASE.155%>
<OPTION VALUE="3" <%=TEST.scr3%>><%=PHRASE.291%>
</SELECT>
<%=PHRASE.538%>
<INPUT TYPE=TEXT NAME="minpass" VALUE="<%=TEST.minpass%>" SIZE=5 MAXLENGTH="4"><BR>
</FONT>
</TD>
<TR>
<TD ALIGN="left" NOWRAP>
<FONT SIZE=2>
<%=PHRASE.784%> <INPUT TYPE=TEXT NAME="lblques1" VALUE="<%=TEST.lblques1%>">&nbsp;&nbsp;
<%=PHRASE.785%> <INPUT TYPE=TEXT NAME="lblques2" VALUE="<%=TEST.lblques2%>">
</FONT>
</TD>
</TR>
</TR>
<TR>
<TD ALIGN="left" NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=HIDDEN NAME="showsubj" VALUE="<%=TEST.showsubj%>">
<INPUT NAME="rndq" TYPE=HIDDEN VALUE="<%=TEST.rndq%>">
<INPUT NAME="rnda" TYPE=HIDDEN VALUE="<%=TEST.rnda%>">
<INPUT TYPE=CHECKBOX NAME="cbshowsubj">
<%=PHRASE.381%><BR>
<!--
DED 6/22/04 Can be used to show custom fields during test
Not yet implemented in test code
<INPUT TYPE=CHECKBOX NAME="showques1">
<%=PHRASE.782%><BR>
<INPUT TYPE=CHECKBOX NAME="showques2">
<%=PHRASE.783%><BR>
-->
<INPUT TYPE=CHECKBOX NAME="tstrndq" onClick="return randQuestions(this)" <%=TEST.rndqchk%>>
<%=PHRASE.335%>
<INPUT TYPE=HIDDEN NAME="rndqv" VALUE="10"><BR>
<INPUT TYPE=CHECKBOX NAME="tstrnda" <%=TEST.rndachk%>>
<%=PHRASE.334%>
<INPUT TYPE=HIDDEN NAME="rndav" VALUE="20"><BR>
<INPUT TYPE=CHECKBOX NAME="cbtpp" <%=TEST.tppchk%>>
<INPUT NAME="tpp" TYPE=HIDDEN VALUE="<%=TEST.tpp%>">
<%=PHRASE.75%><BR>
<INPUT TYPE=CHECKBOX NAME="cbqsk" <%=TEST.qskchk%>>
<INPUT NAME="qsk" TYPE=HIDDEN VALUE="<%=TEST.qsk%>">
<%=PHRASE.76%><BR>
<INPUT TYPE=CHECKBOX NAME="cbqpv" <%=TEST.qpvchk%>>
<INPUT NAME="qpv" TYPE=HIDDEN VALUE="<%=TEST.qpv%>">
<%=PHRASE.74%><BR>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.342%><BR>
<SELECT NAME="remt">
<OPTION VALUE="0" <%=TEST.remt0%>><%=PHRASE.285%>
<OPTION VALUE="1" <%=TEST.remt1%>><%=PHRASE.301%>
<OPTION VALUE="2" <%=TEST.remt2%>><%=PHRASE.156%>
<OPTION VALUE="3" <%=TEST.remt3%>><%=PHRASE.458%>
</SELECT>
<SELECT NAME="rema">
<OPTION VALUE="0" <%=TEST.rema0%>><%=PHRASE.290%>
<OPTION VALUE="1" <%=TEST.rema1%>><%=PHRASE.246%>
<OPTION VALUE="2" <%=TEST.rema2%>><%=PHRASE.139%>
<OPTION VALUE="3" <%=TEST.rema3%>><%=PHRASE.98%>
</SELECT>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq svy INCLUDE %>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<INPUT NAME="qmin" TYPE=HIDDEN VALUE="<%=TEST.qmin%>">
<INPUT NAME="qmax" TYPE=HIDDEN VALUE="<%=TEST.qmax%>">
<INPUT NAME="qent" TYPE=HIDDEN VALUE="<%=TEST.qent%>">
<INPUT NAME="scr" TYPE=HIDDEN VALUE="3">
<%=PHRASE.296%>
<INPUT TYPE=TEXT NAME="noq" VALUE="<%=TEST.noq%>" SIZE=4 MAXLENGTH="3"><BR>
<%=PHRASE.362%>: <%=PHRASE.291%><BR>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" NOWRAP>
<INPUT NAME="rndq" TYPE=HIDDEN VALUE="<%=TEST.rndq%>">
<INPUT NAME="rnda" TYPE=HIDDEN VALUE="<%=TEST.rnda%>">
<INPUT TYPE=CHECKBOX NAME="tstrndq" <%=TEST.rndqchk%>>
<FONT SIZE=2>
<INPUT TYPE=HIDDEN NAME="showsubj" VALUE="N">
<%=PHRASE.335%>
<INPUT TYPE=HIDDEN NAME="rndqv" VALUE="10"><BR>
<INPUT TYPE=CHECKBOX NAME="tstrnda" <%=TEST.rndachk%>>
<%=PHRASE.334%>
<INPUT TYPE=HIDDEN NAME="rndav" VALUE="20"><BR>
<!--
<INPUT TYPE=CHECKBOX NAME="cbtpp" <%=TEST.tppchk%>>
<INPUT NAME="tpp" TYPE=HIDDEN VALUE="<%=TEST.tpp%>">
<%=PHRASE.75%><BR>
-->
</FONT>
<INPUT TYPE=HIDDEN NAME="remt" VALUE="0">
<INPUT TYPE=HIDDEN NAME="rema" VALUE="0">
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq adp INCLUDE %>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<INPUT NAME="noq" TYPE=HIDDEN VALUE="<%=TEST.noq%>">
<INPUT NAME="rndq" TYPE=HIDDEN VALUE="<%=TEST.rndq%>">
<INPUT NAME="rndqv" TYPE=HIDDEN VALUE="<%=TEST.rndqv%>">
<INPUT NAME="rnda" TYPE=HIDDEN VALUE="<%=TEST.rnda%>">
<INPUT NAME="rndav" TYPE=HIDDEN VALUE="<%=TEST.rndav%>">
<INPUT NAME="tpp" TYPE=HIDDEN VALUE="<%=TEST.tpp%>">
<INPUT NAME="qpv" TYPE=HIDDEN VALUE="<%=TEST.qpv%>">
<INPUT NAME="qsk" TYPE=HIDDEN VALUE="<%=TEST.qsk%>">
<INPUT NAME="remt" TYPE=HIDDEN VALUE="<%=TEST.remt%>">
<INPUT NAME="rema" TYPE=HIDDEN VALUE="<%=TEST.rema%>">
<FONT SIZE=2>
<%=PHRASE.362%>
<SELECT NAME="scr">
<OPTION VALUE="1" <%=TEST.scr1%>><%=PHRASE.454%>
<OPTION VALUE="2" <%=TEST.scr2%>><%=PHRASE.155%>
<OPTION VALUE="3" <%=TEST.scr3%>><%=PHRASE.291%>
<%=PHRASE.538%>
<INPUT TYPE=TEXT NAME="minpass" VALUE="<%=TEST.minpass%>" SIZE=5 MAXLENGTH="4">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.273%>
</FONT>
<INPUT TYPE=TEXT NAME="qmin" VALUE="<%=TEST.qmin%>" SIZE=4 MAXLENGTH="3">
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.523%>
</FONT>
<INPUT TYPE=TEXT NAME="qmax" VALUE="<%=TEST.qmax%>" SIZE=4 MAXLENGTH="3">
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.198%>
</FONT>
<INPUT TYPE=TEXT NAME="qent" VALUE="<%=TEST.qent%>" SIZE=20 MAXLENGTH="20">
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=HIDDEN NAME="showsubj" VALUE="<%=TEST.showsubj%>">
<INPUT TYPE=CHECKBOX NAME="cbshowsubj">
<%=PHRASE.381%><BR>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq dmg INCLUDE %>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<INPUT NAME="qmin" TYPE=HIDDEN VALUE="<%=TEST.qmin%>">
<INPUT NAME="qmax" TYPE=HIDDEN VALUE="<%=TEST.qmax%>">
<FONT SIZE=2>
<%=PHRASE.362%>: <%=PHRASE.291%>
<INPUT NAME="scr" TYPE=HIDDEN VALUE="3">
<INPUT NAME="rndq" TYPE=HIDDEN VALUE="<%=TEST.rndq%>">
<INPUT NAME="rnda" TYPE=HIDDEN VALUE="<%=TEST.rnda%>">
<INPUT NAME="rndqv" TYPE=HIDDEN VALUE="<%=TEST.rndqv%>">
<INPUT NAME="qpv" TYPE=HIDDEN VALUE="<%=TEST.qpv%>">
<INPUT NAME="qsk" TYPE=HIDDEN VALUE="<%=TEST.qsk%>">
<INPUT NAME="remt" TYPE=HIDDEN VALUE="<%=TEST.remt%>">
<INPUT NAME="rema" TYPE=HIDDEN VALUE="<%=TEST.rema%>">
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.296%>
</FONT>
<INPUT TYPE=TEXT NAME="noq" VALUE="<%=TEST.noq%>" SIZE=4 MAXLENGTH="3">
<!--FONT SIZE=2>
<%=PHRASE.273%>
</FONT>
<INPUT TYPE=TEXT NAME="qmin" VALUE="<%=TEST.qmin%>" SIZE=4 MAXLENGTH="3"-->
</TD>
</TR>
<!-- Just using noq for now, not qmin & qmax DED 9/11/02
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.523%>
</FONT>
<INPUT TYPE=TEXT NAME="qmax" VALUE="<%=TEST.qmax%>" SIZE=4 MAXLENGTH="3">
</TD>
</TR>
-->
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<INPUT TYPE=CHECKBOX NAME="tstrnda" <%=TEST.rndachk%>>
<%=PHRASE.334%>
<INPUT TYPE=HIDDEN NAME="rndav" VALUE="20"><BR>
<INPUT TYPE=HIDDEN NAME="group" VALUE="<%=TEST.group%>">
<INPUT TYPE=CHECKBOX NAME="cbgroup">
Group questions by subject area?<BR>
<INPUT TYPE=HIDDEN NAME="showsubj" VALUE="<%=TEST.showsubj%>">
<INPUT TYPE=CHECKBOX NAME="cbshowsubj">
<%=PHRASE.381%><BR>
<INPUT TYPE=CHECKBOX NAME="cbtpp" <%=TEST.tppchk%>>
<INPUT NAME="tpp" TYPE=HIDDEN VALUE="<%=TEST.tpp%>">
<%=PHRASE.75%><BR>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.199%> 001
</FONT>
<INPUT TYPE=HIDDEN NAME="qent" VALUE="001">
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa INCLUDE %>
<TR>
<TD ALIGN="left" VALIGN=middle NOWRAP>
<FONT SIZE=2>
<%=PHRASE.424%><BR>
</FONT>
<TEXTAREA NAME="cfa" rows=16 cols=50><%=TEST.cfa%></TEXTAREA>
<INPUT NAME="scr" TYPE=HIDDEN VALUE="3">
<INPUT NAME="noq" TYPE=HIDDEN VALUE="1">
<INPUT NAME="rndq" TYPE=HIDDEN VALUE="N">
<INPUT NAME="rndqv" TYPE=HIDDEN VALUE="">
<INPUT NAME="rnda" TYPE=HIDDEN VALUE="N">
<INPUT NAME="rndav" TYPE=HIDDEN VALUE="">
<INPUT NAME="tpp" TYPE=HIDDEN VALUE="N">
<INPUT NAME="qpv" TYPE=HIDDEN VALUE="N">
<INPUT NAME="qsk" TYPE=HIDDEN VALUE="N">
<INPUT NAME="remt" TYPE=HIDDEN VALUE="0">
<INPUT NAME="rema" TYPE=HIDDEN VALUE="0">
<INPUT NAME="qmin" TYPE=HIDDEN VALUE="0">
<INPUT NAME="qmax" TYPE=HIDDEN VALUE="0">
<INPUT NAME="qent" TYPE=HIDDEN VALUE="">
<INPUT NAME="cnl" TYPE=HIDDEN VALUE="0">
<INPUT NAME="qent" TYPE=HIDDEN VALUE="">
<INPUT TYPE=HIDDEN NAME="showsubj" VALUE="N">
</TD>
</TR>
<%=SYSTEM.ENDIF%>
</TABLE>
<!-- v addition for Test construction by subject area composition -->
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#scompose">SHIFT</A></FONT>
&nbsp;<FONT SIZE=1><A HREF="#sbehave"><%=PHRASE.97%></A></FONT>
</TD>
<TD align=center>
<A NAME=scompose><FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.589%></FONT></A>
</TD>
<TD align=right>
<FONT SIZE=1><A HREF="#sevent"><%=PHRASE.204%></A></FONT>&nbsp;
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=1 width=100%>
<TR>
<TD ALIGN="left" NOWRAP>
<TABLE cellpadding="0" cellspacing="0" border="0" "WIDTH=100%">
<TR>
<TD align=right valign=middle>
<FONT SIZE=2><nobr>
<%=PHRASE.296%>
</NOBR></FONT>
</TD>
<TD>
<FONT SIZE=2>
&nbsp;<INPUT TYPE=TEXT NAME="noq" VALUE="<%=TEST.noq%>" onChange="return noqChange(this)" SIZE=4 MAXLENGTH="3"><BR>
</FONT>
</TD>
<TD align=right>
<FONT SIZE=1>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE=CHECKBOX NAME="cbsapmtx" <%=TEST.sapmtxchk%> onClick="return cbsapmtxClick()">&nbsp;<BR>
</FONT>
</TD>
<TD>
<FONT SIZE=1>
<%=PHRASE.584%><BR>
</FONT>
</TD>
</TR>
</TABLE>
<CENTER>
<TABLE cellpadding="0" cellspacing="0" border="1" "WIDTH=100%">
<TR>
<TD NOWRAP valign=top>
<TABLE cellpadding="0" cellspacing="0" border="0">
<TR>
<TD ALIGN=CENTER colspan=2><FONT SIZE=1>&nbsp;<br></FONT></TD>
</TR>
<TR>
<TD ALIGN=CENTER><FONT SIZE=1>%<BR></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1><I>#</I></FONT></TD>
<TD ALIGN=center><FONT SIZE=1><I>(Subject Area)</I></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1>^<BR></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1>(PO)<BR></FONT></TD>
</TR>
<%=SUBJAREA.subjareapit%>
<TR>
<TD ALIGN=left><FONT SIZE=1>&nbsp;<BR></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1><img src="<%=PATHS.graphurl%>/linev.gif"><BR></FONT></TD>
<TD ALIGN=right><FONT SIZE=1><i>(Randomize)</i><br></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1><img src="<%=PATHS.graphurl%>/linedl.gif"><BR></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1><img src="<%=PATHS.graphurl%>/linev.gif"><BR></FONT></TD>
</TR>
<TR>
<TD ALIGN=left><FONT SIZE=1>&nbsp;<BR></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1><img src="<%=PATHS.graphurl%>/linev.gif"><BR></FONT></TD>
<TD ALIGN=right colspan=2><FONT SIZE=1><i>(Presentation Order)</i><br></FONT></TD>
<TD ALIGN=CENTER><FONT SIZE=1><img src="<%=PATHS.graphurl%>/linedl.gif"><BR></FONT></TD>
</TR>
<TR>
<TD ALIGN=left><FONT SIZE=1>&nbsp;<BR></FONT></TD>
<TD ALIGN=left valign=middle><FONT SIZE=1><img src="<%=PATHS.graphurl%>/linedr.gif"></FONT></TD>
<TD ALIGN=left valign=middle colspan=3><FONT SIZE=1><i>(Questions defined)</i></FONT></TD>
</TR>
</TABLE>
</TD>
<TD NOWRAP valign=top>
<TABLE cellpadding="0" cellspacing="0" border="0">
<TR>
<TD ALIGN=CENTER colspan=2><FONT SIZE=1>&nbsp;<br></FONT></TD>
</TR>
<TR>
<TD ALIGN=CENTER><FONT SIZE=1>%<BR></FONT></TD>
<TD ALIGN=CENTER VALIGN=MIDDLE><FONT SIZE=1><I># (Skill Level)</I></FONT></TD>
</TR>
<%=SUBJAREA.skilllvlpit%>
</TABLE>
</TD>
<TD NOWRAP valign=top>
<%=SUBJAREA.subjskillcgt%>
</TD>
</TR>
<TR>
<TD ALIGN="center" colspan=3>
<FONT SIZE=1>
<INPUT TYPE=BUTTON VALUE="COMPUTE COUNTS" onClick="return computecountsClick()">
<INPUT TYPE=BUTTON VALUE="COMPUTE PERCENTAGES" onClick="return computepercentsClick()">
<INPUT TYPE=BUTTON VALUE="UNDO CHANGES" onClick="return SetSAMatrixDefaults()">
</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
</TD>
</TR>
</TABLE>
<%=SYSTEM.ENDIF%>
<!-- ^ addition for Test construction by subject area composition -->
<%=SYSTEM.STARTIF?TEST.seq svy,dmg INCLUDE %>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#sevent">SHIFT</A></FONT>
&nbsp;<FONT SIZE=1><A HREF="#sbehave"><%=PHRASE.97%></A></FONT>
</TD>
<TD align=center>
<A NAME=sevent>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.204%></FONT>
</A>
</TD>
<TD align=right>
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq adp INCLUDE %>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#sevent">SHIFT</A></FONT>
&nbsp;<FONT SIZE=1><A HREF="#sbehave"><%=PHRASE.97%></A></FONT>
</TD>
<TD align=center>
<A NAME=sevent>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.204%></FONT>
</A>
</TD>
<TD align=right>
<FONT SIZE=1><A HREF="#sconfid"><%=PHRASE.132%></A></FONT>&nbsp;
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq std INCLUDE %>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#sevent">SHIFT</A></FONT>
&nbsp;<FONT SIZE=1><A HREF="#scompose"><%=PHRASE.589%></A></FONT>
</TD>
<TD align=center>
<A NAME=sevent>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.204%></FONT>
</A>
</TD>
<TD align=right>
<FONT SIZE=1><A HREF="#sconfid"><%=PHRASE.132%></A></FONT>&nbsp;
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<%=SYSTEM.ENDIF%>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=1 width=100%>
<%=SYSTEM.STARTIF?TEST.seq dmg,svy,cfa EXCLUDE %>
<TR>
<TD align="left" nowrap>
<FONT SIZE=2>
<%=PHRASE.336%>
<SELECT NAME="cnl">
<OPTION VALUE="1" <%=TEST.cnlrst%>><%=PHRASE.350%>
<OPTION VALUE="0" <%=TEST.cnlrsm%>><%=PHRASE.352%>
</SELECT>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
<TR>
<TD align="left" valign="top" nowrap>
<TABLE border=1>
<TR>
<TD>
<FONT SIZE=2>
<%=PHRASE.190%><BR>
<INPUT TYPE=TEXT NAME="ntfy" SIZE="30" maxlength="200" VALUE="<%=TEST.ntfy%>">
</FONT>
</TD>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD nowrap>
<FONT SIZE=2>
<%=PHRASE.892%><BR>
<INPUT TYPE=CHECKBOX NAME="cbemlesa" <%=TEST.emlesachk%>>
<%=PHRASE.189%>
&nbsp;&nbsp;<INPUT TYPE=CHECKBOX NAME="cbemlesahtml" <%=TEST.emlesahtmlchk%>>
<%=PHRASE.722%><BR>
<INPUT TYPE=CHECKBOX NAME="cbemlstart" <%=TEST.emlstartchk%>>
<%=PHRASE.193%><BR>
<INPUT TYPE=CHECKBOX NAME="cbemlpause" <%=TEST.emlpausechk%>>
<%=PHRASE.191%>
&nbsp;<BR>
</FONT>
</TD>
<TD nowrap>
<FONT SIZE=2>
<%=PHRASE.893%><BR>
<INPUT TYPE=RADIO NAME="cbemlesar" value="S" <%=TEST.emlesarschk%>>
<%=PHRASE.894%>
&nbsp;&nbsp;<INPUT TYPE=RADIO NAME="cbemlesar" value="H" <%=TEST.emlesarhchk%>>
<%=PHRASE.189%> (<%=PHRASE.722%>)
&nbsp;&nbsp;<INPUT TYPE=RADIO NAME="cbemlesar" value="N" <%=TEST.emlesarnchk%>>
<%=PHRASE.895%><BR>
<INPUT TYPE=CHECKBOX NAME="cbemlstartr" <%=TEST.emlstartrchk%>>
<%=PHRASE.193%><BR>
<INPUT TYPE=CHECKBOX NAME="cbemlpauser" <%=TEST.emlpauserchk%>>
<%=PHRASE.191%>
&nbsp;<BR>
</FONT>
</TD>
</TR>
</TABLE>
<FONT SIZE=2>
<INPUT TYPE=CHECKBOX NAME="cbemlcnd" <%=TEST.emlcndchk%>>
<%=PHRASE.192%>
&nbsp;&nbsp;<INPUT TYPE=CHECKBOX NAME="cbemlcndrvw" <%=TEST.emlcndrvwchk%>>
<%=PHRASE.756%><BR>
</FONT>
</TD>
</TR>
<%=SYSTEM.ENDIF%>
</TABLE>
<%=SYSTEM.STARTIF?TEST.seq cfa EXCLUDE %>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=0 width=100%>
<TR>
<TD>
<FONT SIZE=1><A HREF="#sconfid">SHIFT</A></FONT>
&nbsp;<FONT SIZE=1><A HREF="#sevent"><%=PHRASE.204%></A></FONT>
</TD>
<TD align=center>
<A NAME=sconfid>
<FONT SIZE=2 COLOR="<%=SYSTEM.HEADERCOLOR%>"><%=PHRASE.132%></FONT>
</A>
</TD>
<TD align=right>
<FONT SIZE=1><A HREF="#top">TOP</A></FONT>
</TD>
</TR>
</TABLE>
<TABLE CELLSPACING=2 CELLPADDING=2 BORDER=1 width=100%>
<TR>
<TD align="left" nowrap>
<FONT SIZE=2>
<%=PHRASE.319%>
</FONT>
</TD>
<TD align="left" nowrap>
<FONT SIZE=2>
<%=PHRASE.130%><BR>
<%=CLIENT.cfas%>
<%=PHRASE.325%><BR>
<%=CLIENT.profbs%>
</FONT>
</TD>
</TR>
<TR>
<TD align="left" nowrap>
<FONT SIZE=2>
<%=PHRASE.317%>
</FONT>
</TD>
<TD align="left" nowrap>
<FONT SIZE=2>
<%=PHRASE.325%><BR>
<%=CLIENT.profas%>
<%=PHRASE.305%><BR>
<%=CLIENT.srvys%>
</FONT>
</TD>
</TR>
</TABLE>
<%=SYSTEM.ENDIF%>
&nbsp;<BR>
<INPUT TYPE=SUBMIT NAME="Save" VALUE="<%=PHRASE.524%>">
</FORM>
<%=SYSTEM.STARTIF?TEST.seq cfa INCLUDE %>
<FORM METHOD=POST ACTION="/cgi-bin/tdef.pl" Name="form4" enctype="multipart/form-data" TARGET="PreviewWindow">
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
<input type=hidden name="tstid" value="<%=TEST.id%>">
<INPUT NAME="cfa" TYPE=HIDDEN VALUE="">
<INPUT NAME="savechanges" TYPE=HIDDEN VALUE="N">
<INPUT NAME="preview" TYPE=HIDDEN VALUE="Preview">
<INPUT TYPE=BUTTON VALUE="Preview" onClick="return preview_click(document.form4)">
</FORM>
<%=SYSTEM.ENDIF%>
<P>
<FONT SIZE=1 COLOR="#8C8C8C"><%=PHRASE.136%></FONT>
</P>
<FORM METHOD=POST ACTION="<%=PATHS.cgiroot%>/sadmin.pl" Name="form3" TARGET="tcore">
<INPUT NAME="tid" TYPE=HIDDEN VALUE="<%=SESSION.tid%>">
<input type=hidden name="tstid" value="<%=TEST.id%>">
<input type=hidden name="dtl" value="21">
<INPUT TYPE="HIDDEN" NAME="lang" VALUE="<%=SESSION.lang%>">
</FORM>
</CENTER>
</BODY>
</HTML>