# DHTML sleep sommetje
# letop $a niet 1
# line 1 is functie
# line 2 is Domein string : voor nakijken
# line 3 is latex1 Domein
# line 4 is latex2 Domein
# line 5 is Bereik string : voor nakijken
# line 6 is latex1 Bereik
# line 7 is latex2 Bereik

n=$counter
mathview=0
# we need two inputfields
# reply$n= "input1","input2"
image=0
checkfile=exos/checkfile1.proc
inputs=0
XSIZE=800
rows=1
math=0
questiontype=7
javascript=js/exo10.js
a=!randitem 2,3,4,5,6,7,8,9
b=!randitem 1,2,3,4,5,6,7,8,9
lijst=lijst$subject.def


aantal_records=!recordcnt exos/$lijst
num=!randint 1,$aantal_records
vraag=!record $num of exos/$lijst
functie=!line 1 of $vraag

dingen=!record 51 of lang/remarks.$taal
#@ Domein ,Bereik
keuze=!randitem 1,2
ding=!item $keuze of $dingen
!if $keuze=1
    # ding = domein 
    ds=!line 2 of $vraag
    dl1=!line 4 of $vraag
    dl2=!line 4 of $vraag
    answer$n=$ds
    img=<img src="$module_dir/gifs/Df.gif">
    texanswer$n=$(formula$n) \rightarrow \left[\begin{array}{lll} D_f & : & $dl1 \\ \\ D_f & : & $dl2 \end{array} 
!else
    # ding = bereik
    bs=!line 5 of $vraag
    bl1=!line 6 of $vraag
    bl2=!line 7 of $vraag
    answer$n=$bs
    img=<img src="$module_dir/gifs/Bf.gif">
    texanswer$n=$(formula$n) \rightarrow \left[\begin{array}{lll} B_f & : & $bl1 \\ \\ B_f & : & $bl2 \end{array} 
!endif
formula$n=!texmath f(x) = $functie
ss=!record 52 of lang/remarks.$taal
sometext=!record 53 of lang/remarks.$taal

question$n=$ss
exotext=$empty
helptext=<a onmouseover="return escape('<img src=$module_dir/gifs/help.exo$subject.jpg>')">$sometext</a>
    
plusinfty=<img src="$module_dir/gifs/plusinfty.gif" name="plusinfty" height="50" width="50">
mininfty=<img src="$module_dir/gifs/mininfty.gif" name="mininfty" height="50" width="50">
langle=<img src="$module_dir/gifs/langle.gif" name="langle" height="50" width="50">
rangle=<img src="$module_dir/gifs/rangle.gif" name="rangle" height="50" width="50">
lbracket=<img src="$module_dir/gifs/lbracket.gif" name="lbracket" height="50" width="50">
rbracket=<img src="$module_dir/gifs/rbracket.gif" name="rbracket" height="50" width="50">
S=<img src="$module_dir/gifs/S.gif" name="S" height="50" width="50">
U=<img src="$module_dir/gifs/U.gif" name="U" height="50" width="50">
invul1=<div id="div1" name="div1" style="position:relative;height:50px;width:60px"><input style="text-align:center;font-size:40px;height:50px;width:50px;border:1px solid #111111"  size="3" name="reply1" value=""></div>
invul2=<div id="div2" name="div2" style="position:relative;height:50px;width:60px"><input style="text-align:center;font-size:40px;height:50px;width:50px;border:1px solid #111111"  size="3" name="reply2" value=""></div>
invul3=<div id="div3" name="div3" style="position:relative;height:50px;width:60px"><input style="text-align:center;font-size:40px;height:50px;width:50px;border:1px solid #111111"  size="3" name="reply3" value=""></div>
invul4=<div id="div4" name="div4" style="position:relative;height:50px;width:60px"><input style="text-align:center;font-size:40px;height:50px;width:50px;border:1px solid #111111"  size="3" name="reply4" value=""></div>
DHTML=$empty
options=4
DHTML=!append item "mininfty" + COPY + $options  to $DHTML
DHTML=!append item "plusinfty" + COPY + $options  to $DHTML
DHTML=!append item "langle" + COPY + $options  to $DHTML
DHTML=!append item "rangle" + COPY + $options  to $DHTML
DHTML=!append item "lbracket" + COPY + $options  to $DHTML
DHTML=!append item "rbracket" + COPY + $options  to $DHTML
DHTML=!append item "S" + COPY + $options  to $DHTML
DHTML=!append item "U" + COPY + $options  to $DHTML
DHTML=!append item "div0" + NO_DRAG  to $DHTML
DHTML=!append item "div1" to $DHTML
DHTML=!append item "div2" to $DHTML
DHTML=!append item "div3" to $DHTML
DHTML=!append item "div4" to $DHTML

dhtml=<script type="text/javascript">SET_DHTML( CURSOR_MOVE , $DHTML);</script>

!if $subject=9
    EXO10=&nbsp;
!else
    EXO10=$U
!endif
exotext=<form name=myform>\
<table border=1 bgcolor=mistyrose>\
<th><table><th>$img</th>\
<th><div id="div0" name="div0" style="position:relative;height:60px;width:720px;background-color:white"></div></th></table></th><tr>\
<th><table border=1 cellpadding=10  width=100%>\
<th>$plusinfty</th>\
<th>$mininfty</th>\
<th>$langle</th>\
<th>$rangle</th><tr>\
<th>$lbracket</th>\
<th>$rbracket</th>\
<th>$S</th><th>$EXO10</th></table>\
</th><tr><th>\
<table><th>$invul1 </th><th> $invul2</th><th> $invul3 </th><th>$invul4</th></table></th>\
</table></form>$exotext

