function eumnaloga1() {return '<form onSubmit=\"return false;\" id=\"eumform1\">  <div id=\'id_naloga1\'></div>  <div> </div><div id=\'id_rezultat1\'></div>  </form> <div id=\'balloon1\' class=\'balloonstyle\' style=\'width: 350px; background-color: lightyellow\'>Ulomek vpišemo na naslednji način:<br><b>a b/c </b>, kjer je <br>a ... celi del<br>b ... števec<br>c ... imenovalec<br><i>Med a in b naredimo presledek.</i><br><i>Znak <b>\'-\'</b> zapišemo na začetku izraza.</i></div><script type=\'text/javascript\'>           loop_counter = 0;                    napakaSpremenljivka = \'\';          do {            error_counter = 0;            var counter = 0;            do {s1klow = -3;s1kupper = 3;s1k  = EumRandom(EumComma2Dot(s1klow),EumComma2Dot(s1kupper),0); 				counter++;				if (counter > 1000) {				  	napakaSpremenljivka = \'s1k\';				  	s1k = \'Napaka\';				  				  	break;				  				 }				 else error_counter++;				} while (s1k==0);s1alow = -5;s1aupper = 5;s1a  = EumRandom(EumComma2Dot(s1alow),EumComma2Dot(s1aupper),0); s1blow = -5;s1bupper = 5;s1b  = EumRandom(EumComma2Dot(s1blow),EumComma2Dot(s1bupper),0); s1nlow = 1;s1nupper = 4;s1n  = EumRandom(EumComma2Dot(s1nlow),EumComma2Dot(s1nupper),0); s1l = s1k*(s1n+1); s1m = s1n+1; s1eks = (s1n==1)?(\'\'):(s1n); s1q = s1k*(Math.pow(s1b,s1m)-Math.pow(s1a,s1m)); 		    loop_counter++;	       }          while (error_counter != 1 && loop_counter<50);var r1rez = s1q; document.getElementById(\'id_naloga1\').innerHTML =  \"<p>IzraÄŤunaj: $\\\\displaystyle\\\\int_{\" + EumDot2Comma(s1a.toString()) + \"}^{\" + EumDot2Comma(s1b.toString()) + \"} \" + EumDot2Comma(s1l.toString()) + \"x^{\" + EumDot2Comma(s1eks.toString()) + \"}dx$  </p>\";document.getElementById(\'id_rezultat1\').innerHTML  = \"Vrednost doloÄŤenega integrala je &nbsp;<input type=text size=\'\"+(r1rez.toString().length).toString() +\"\' name=\'inputr1rez\' id=\'inputr1rez\'>\";function checkResult1(){  var _f=document.getElementById(\'eumform1\'); 		      if ( EumIsNaN(r1rez)){        var userr1rez = _f.inputr1rez.value;    }    else {        if (_f.inputr1rez.value.length > 0){            var userr1rez = EumRound(parseFloat(EumComma2Dot(_f.inputr1rez.value)),10);        }        else {            var userr1rez = \'\';        }    }    scormVseh++;    odg_uporabnik[odgovori] = userr1rez;    odg_pravilni[odgovori] = r1rez;    odg_elementi[odgovori] = \'inputr1rez\';              if (EumCompareResult(userr1rez,r1rez)){        _f.inputr1rez.style.backgroundColor=\'#90EE90\';        scormPrav++;        odg_status[odgovori] = 1;    }    else {      _f.inputr1rez.style.backgroundColor=\'#FF6347\';      odg_status[odgovori] = 0;    }    odgovori++;    }</script>';}

function eumnaloga2() {return '<form onSubmit=\"return false;\" id=\"eumform2\">  <div id=\'id_naloga2\'></div>  <div> </div><div id=\'id_rezultat2\'></div>  </form> <div id=\'balloon1\' class=\'balloonstyle\' style=\'width: 350px; background-color: lightyellow\'>Ulomek vpišemo na naslednji način:<br><b>a b/c </b>, kjer je <br>a ... celi del<br>b ... števec<br>c ... imenovalec<br><i>Med a in b naredimo presledek.</i><br><i>Znak <b>\'-\'</b> zapišemo na začetku izraza.</i></div><script type=\'text/javascript\'>           loop_counter = 0;                    napakaSpremenljivka = \'\';          do {            error_counter = 0;            var counter = 0;            do {s2klow = -3;s2kupper = 3;s2k  = EumRandom(EumComma2Dot(s2klow),EumComma2Dot(s2kupper),0); 				counter++;				if (counter > 1000) {				  	napakaSpremenljivka = \'s2k\';				  	s2k = \'Napaka\';				  				  	break;				  				 }				 else error_counter++;				} while (s2k==0);s2alow = -5;s2aupper = 5;s2a  = EumRandom(EumComma2Dot(s2alow),EumComma2Dot(s2aupper),0); s2blow = -5;s2bupper = 5;s2b  = EumRandom(EumComma2Dot(s2blow),EumComma2Dot(s2bupper),0); var counter = 0;            do {s2nlow = 1;s2nupper = 9;s2n  = EumRandom(EumComma2Dot(s2nlow),EumComma2Dot(s2nupper),0); 				counter++;				if (counter > 1000) {				  	napakaSpremenljivka = \'s2n\';				  	s2n = \'Napaka\';				  				  	break;				  				 }				 else error_counter++;				} while (s2n%2!=0);s2l = s2k*(s2n+1); s2m = s2n+1; s2eks = (s2n==1)?(\'\'):(s2n); s2q = s2k*Math.pow(s2b,s2m)-s2k*Math.pow(s2a,s2m); 		    loop_counter++;	       }          while (error_counter != 2 && loop_counter<50);var r2rez = s2b; document.getElementById(\'id_naloga2\').innerHTML =  \"DoloÄŤi takj $a$, da bo $\\\\int_{\" + EumDot2Comma(s2a.toString()) + \"}^{a} \" + EumDot2Comma(s2l.toString()) + \" x^{\" + EumDot2Comma(s2eks.toString()) + \"}dx=\" + EumDot2Comma(s2q.toString()) + \"$.\";document.getElementById(\'id_rezultat2\').innerHTML  = \"$a=$ &nbsp;<input type=text size=\'\"+(r2rez.toString().length).toString() +\"\' name=\'inputr2rez\' id=\'inputr2rez\'>\";function checkResult2(){  var _f=document.getElementById(\'eumform2\'); 		      if ( EumIsNaN(r2rez)){        var userr2rez = _f.inputr2rez.value;    }    else {        if (_f.inputr2rez.value.length > 0){            var userr2rez = EumRound(parseFloat(EumComma2Dot(_f.inputr2rez.value)),10);        }        else {            var userr2rez = \'\';        }    }    scormVseh++;    odg_uporabnik[odgovori] = userr2rez;    odg_pravilni[odgovori] = r2rez;    odg_elementi[odgovori] = \'inputr2rez\';              if (EumCompareResult(userr2rez,r2rez)){        _f.inputr2rez.style.backgroundColor=\'#90EE90\';        scormPrav++;        odg_status[odgovori] = 1;    }    else {      _f.inputr2rez.style.backgroundColor=\'#FF6347\';      odg_status[odgovori] = 0;    }    odgovori++;    }</script>';}

