var allquestions = new Array(



"1. Hvad er kontaktvoldt&aelig;gt?$$  En voldt&aelig;gt hvor offer og gerningsmand aldrig har m&oslash;dt hinanden%% En voldt&aelig;gt hvor offer og gerningsmand kender hinanden^^ En voldt&aelig;gt hvor offer og gerningsmand danner par&&Instruct the user not to press the Return key.",



"2. Omtrent hvor mange voldt&aelig;gter politianmeldes &aring;rligt?$$ Ca. 500%% Ca. 750^^ Ca. 1000&& C ",



"3. Hvad er m&oslash;rketal?$$ Et udtryk man bruger om falske anmeldelser%% Et udtryk man bruger om de overgreb der ikke anmeldes^^ Et udtryk man bruger om sager der ikke kommer for retten&& C ",



"4. Hvad er den h&oslash;jeste strafudm&aring;ling for voldt&aelig;gt?$$  5 &aring;rs f&aelig;ngsel%% 8 &aring;rs f&aelig;ngsel^^ 12 &aring;rs f&aelig;ngsel&& C ",



"5. Er voldt&aelig;gtsfors&oslash;g strafbart?$$ Ja%% Nej^^ Ved ikke&&There is no default setting.",



"Which of the following is true?$$If onKeyDown returns false, the key-press event is cancelled.%%If onKeyPress returns false, the key-down event is cancelled.^^If onKeyDown returns false, the key-up event is cancelled.&&If onKeyPress returns false, the key-up event is canceled.",



"Dette er 3  JavaScript?$$a low-level programming language.%%a scripting language precompiled in the browser.^^a compiled scripting language.&&an object-oriented scripting language.",



"Choose the server-side JavaScript object:$$FileUpLoad%%Function^^File&&Date",



"Choose the client-side JavaScript object:$$Database%%Cursor^^Client&&FileUpLoad",



"Seek the truth about setTimeOut():$$The statement(s) it executes run(s) only once.%%It pauses the script in which it is called.^^clearTimeOut() won't stop its execution.&&The delay is measured in hundredths of a second.",



"Dette er 4 you use to redirect a visitor to another page?$$document.URL%%window.location.href^^.document.location.href&&link.href",



"Which best explains getSelection()?$$Returns the VALUE of a selected OPTION.%%Returns document.URL of the window in focus.^^Returns the value of cursor-selected text.&&Returns the VALUE of a checked radio input.",



"navigator.platform indicates 'Win16', but you are running Win NT. What gives?$$Impossible. This is a sick joke.%%The userAgent property reflects the correct OS.^^The property can be modified.&&navigator.platform shows the OS for which the browser was compiled.",



"You unsuccessfully use navigator.preferences() to alter browser preferences. How come?$$You\'re using export instead of import.%%You\'re using import instead of export.^^That\'s the wrong method.&&You\'re not using a signed script.",



"How do you delete an element from an options array?$$Set it to false.%%Set it to null.^^Set it to undefined.&&Set it to -1.",



"Choose the read-only property:$$images[index].src%%layers[index].right^^layers[index].parentLayer&&links[index].target",



"How do substring() and substr() differ?$$One is not a method of the String object.%%substr() takes three arguments, substring() only two.^^Only one accepts a desired string length as an argument.&&Besides the spelling, nothing.",



"What\'s wrong with this: var charConvert = toCharCode('x');$$toCharCode() is a bogus method.%%Nothing. I use it all the time.^^toCharCode accepts only numbers.&&toCharCode takes no arguments.",



"Choose the external object:$$Date%%Option^^Layer&&Checkbox",



"Choose the built-in object:$$Password%%Math^^Link&&Hidden",



"Which is not a built-in function?$$parseInt()%%exec()^^eval()&&parseFloat()",



"Which would JavaScript assign to an uninitialized array element?$$NaN%%null^^undefined&&false",



"Which would JavaScript assign to an uninitialized variable?$$NaN%%null^^undefined&&false",



"Which is not considered a JavaScript operator?$$new%%this^^delete&&typeof",



"Choose the best pattern for the string: 840-21-3688$$/\\d+-\\d{2,}-?\\d*/%%/\\w+-\\w+-\\w+/^^/\\d+\\d+\\d+/&&/\\d+-\\d?-\\d+/",



"Choose the built-in JavaScript object:$$Image%%mimeType^^Password&&Area",



"Choose the external object:$$Hidden%%Option^^Layer&&Function",



"Dette er 5 add a property to an object class?$$With the prototype() method.%%With the prototype property.^^Sorry. Can\'t be done.&&With the this object.",



"Which property returns the number of arguments expected by a function?$$arguments.length%%Function.caller^^Function.display&&Function.arity",



"Which is not a reserved word?$$interface%%short^^program&&throws",



"Select the property that doesn't hold a Boolean value:$$mimeType.enabledPlugin%%option.defaultSelected^^form.reset.enabled&&image.complete",



"What\'s the default string passed to document.open()?$$application/pdf%%image/gif^^text/html&&text/plain",



"What allows JavaScript to access methods and properties of a Java applet?$$The Java console%%LiveConnect^^LiveWire&&LiveWire Pro",



"Which is not an attribute of the cookie property?$$path%%host^^secure&&domain",



"How do you delete a cookie?$$You can\'t. They\'re valid until they expire.%%Overwrite it with an expiry date in the past.^^escape() the value of the path attribute.&&unescape() the value of the path attribute.",



"Which cookies.txt filesize is too large?$$1K%%3K^^5K&&There is no theoretical limit.",



"What happens to cookies.txt data if the file exceeds the maximum size?$$Your script automatically generates a run-time error.%%Your script automatically generates a load-time error.^^All processes using document.cookie are ignored.&&The file is truncated to the maximum length.",



"You\'ve embedded the document.write() method to write some text within a pair of &lt;TD&gt;&lt;/TD&gt; table tags. Upon loading the file, however, you get some garbled junk on the page where that text should be. What browser are you most likely using?$$MSIE 2.x%%Netscape Navigator 3.x^^Netscape Navigator 4 beta 2&&MSIE 3.02",



"How would you randomly choose an element from an array named myStuff if the number of elements changes dynamically?$$randomElement = myStuff[Math.floor(Math.random() * myStuff.length)];%%randomElement = myStuff[Math.ceil(Math.random() * myStuff.length)];^^randomElement = myStuff[Math.random(myStuff.length)];&&randomElement = Math.random(myStuff.length);",



"With the advent of JavaScript1.2, the String.replace() method facilitates character replacement in strings. How would you remove every \'x\' from the variable myString without the new features of 1.2?$$for(var i = 0; i < myString.length; i++) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(myString.charAt(i) != \'x\') {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myStringCopy += myString.charAt(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myString = myStringCopy;%%var myArray = myString.split(\'x\'); myString = myArray.join(\'\');^^It wasn't possible until now. Thanks JavaScript1.2\!&&The first two both work fine.",



"What HTML attribute allows a Java applet explicit permission to access JavaScript objects and functions?$$MAYSCRIPT%%CODE^^PARAM&&CODEBASE",



"Which is not a package of the Java class hierarchy available in Navigator?$$netscape%%javasoft^^sun&&java",



"Choose the four symbol pairs that represent RegExp properties lastMatch, lastParent, leftContext, and rightContext, respectively:$$$&, $+, $`, $'%%$+, $&, $', $`^^$&, $~, $`, $'&&$+, $&, $`, $'",



"Consider three variables: <BR><BR><BLOCKQUOTE>someText = 'JavaScript1.2';<BR>pattern = /(\\w+)(\\d)\\.(\\d)/i;<BR>outCome = pattern.exec(someText);</BLOCKQUOTE><BR>What does pattern.global contain?$$true%%false^^undefined&&null",



"Consider the same three variables: <BR><BR><BLOCKQUOTE>someText = 'JavaScript1.2';<BR>pattern = /(\\w+)(\\d)\\.(\\d)/i;<BR>outCome = pattern.exec(someText);</BLOCKQUOTE><BR>What does pattern.ignoreCase contain?$$true%%false^^undefined&&null",



"Once agin, consider the same three variables: <BR><BR><BLOCKQUOTE>someText = 'JavaScript1.2';<BR>pattern = /(\\w+)(\\d)\\.(\\d)/i;<BR>outCome = pattern.exec(someText);</BLOCKQUOTE><BR>What does outCome[0] contain?$$true%%false^^JavaScript1.2&&null",



"After clicking on a link, your main browser window spawns a small new window and writes some text to it. However, when viewing both window page sources, the small window page source is identical to that of the large. How can this be?$$The function writing to the new window didn\'t close the document stream.%%Gimme a break. It\'d never happen.^^Windows receive the source code of the window that wrote to them.&&Since the new window has no filename, it receives the source code of its parent.",



"Choose another way to write x ? a = b : a = c$$if (\'x\') { a = b; } else { a = c; }%%if (x) { a = c; } else { a = b; }^^x : a = c ? a = b&&All of these are bogus.",



"Which of these is not a method of the Math object?$$atan()%%atan2()^^eval()&&acos()",



"Choose the object(s) associated with the onFocus event handler:$$Password%%Hidden^^Both&&Neither",



"Choose the object(s) associated with the onMouseOut event handler:$$Layer%%Window^^Both&&Neither",



"Choose the object(s) associated with the onUnLoad event handler:$$Window%%Layer^^Both&&Neither",



"Choose the object(s) associated with the onBlur event handler:$$Image%%Document^^Both&&Neither",



"Choose the object(s) associated with the onKeyPress event handler:$$Document%%Layer^^Both&&Neither"



);







var allanswers = new Array('b','a','b','c','a','a','d','c','d','a','b','c','d','d','b','c','c','a','d','b','b','b','c','b','a','a','a','b','d','c','a','c','b','b','b','c','d','b','a','d','a','b','a','b','a','c','a','d','c','a','a','a','d','a');