isIE=document.all; isNN=!document.all&&document.getElementById; isN4=document.layers; isHot=false; // getOffsetTop and getOffsetLeft are functions used to get the absolute coordinate of relative elements function getOffsetTop (el) { var ot = el.offsetTop; while((el = el.offsetParent) != null) ot += el.offsetTop; return ot; } function change(picture) { document.theimg.src = picture } function getOffsetLeft (el) { var ot = el.offsetLeft; while((el = el.offsetParent) != null) ot += el.offsetLeft; return ot; } function ddInit(e){ topDog=isIE ? "BODY" : "HTML"; whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer"); hotDog=isIE ? event.srcElement : e.target; while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){ hotDog=isIE ? hotDog.parentElement : hotDog.parentNode; } if (hotDog.id=="titleBar"){ offsetx=isIE ? event.clientX : e.clientX; offsety=isIE ? event.clientY : e.clientY; nowX=parseInt(whichDog.style.left); nowY=parseInt(whichDog.style.top); ddEnabled=true; document.onmousemove=dd; } } function dd(e){ if (!ddEnabled) return; whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety; return false; } function ddN4(whatDog){ if (!isN4) return; N4=eval(whatDog); N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP); N4.onmousedown=function(e){ N4.captureEvents(Event.MOUSEMOVE); N4x=e.x; N4y=e.y; } N4.onmousemove=function(e){ if (isHot){ N4.moveBy(e.x-N4x,e.y-N4y); return false; } } N4.onmouseup=function(){ N4.releaseEvents(Event.MOUSEMOVE); } } function hideMe(){ if (isIE||isNN) whichDog.style.visibility="hidden"; else if (isN4) document.theLayer.visibility="hide"; } function showMe(){ if (isIE||isNN) whichDog.style.visibility="visible"; else if (isN4) document.theLayer.visibility="show"; } document.onmousedown=ddInit; document.onmouseup=Function("ddEnabled=false"); function telluser() { retval = true; if (document.mailform.Name.value.length < 1) { alert("You have to fill in your name!"); retval = false; } if (document.mailform.Email.value.length < 1) { alert("You have to fill in your email!"); retval = false; } return retval; } function alterMeny(funk,meny,VL) { //funk = mouseOver eller mouseOut //meny = vilken meny? //VL = vilken länk? m = "men" + meny; if(funk==0) { //onMouseOver VL.style.color='000000'; document.all[m].style.backgroundColor='D3D3D3'; } if(funk==1) { //onMouseOver VL.style.color='444444'; if(document.all.activeMeny.value==m) {}else{ document.all[m].style.backgroundColor='c3c3c3';} } } function ML(meny) { //ANVÄNDS FÖR NÄR MAN LADDAR EN SIDA... //EX. about.asp har body onload="ML(1)" för att markera menyn- m = "men" + meny; // markerar menyn document.all[m].style.backgroundColor='D3D3D3'; //visar hiddenfältet vilken meny det är så att färgen inte försvinner vid mouseOut!! document.all.activeMeny.value=m; //moveTheLyr(); } function moveTheLyr() { var X = getOffsetLeft(document.getElementById("logo")) var Y = getOffsetTop(document.getElementById("logo")) movLyr = new samLyr('theLayer','') movLyr.moveTo(X+600,Y+40) } function changeClass(obj) { if (obj.className=='latestNews') { obj.className='latestNewsActive'; } else { obj.className='latestNews'; } } function gotoNews(pid, aid, pagenumber) { parent.location.href= "index.asp?Pid="+pid+"&aid="+ aid +"&pagenumber="+ pagenumber +"" } function funcFbType() { if(window.mailform.fbGf.checked==true){document.all.mrfOnly.style.display='none';info = "Enter your name, your e-mail address and your message. Click on submit when you are done.

Please note that all fields are optional.";} if(window.mailform.fbSs.checked==true){document.all.mrfOnly.style.display='none';info = "Enter your name, your e-mail address and your success story. Click on submit when you are done.

Please note that all fields are optional.";} if(window.mailform.fbMrf.checked==true){document.all.mrfOnly.style.display='block'; info = "The more specific you can be in entering the correct information in the fields below, the easier it is for us to handle this feedback.

Please enter language, category, issue number, page/slide and document name.

Please note that all fields are optional." } document.all.FeedbackInformation.innerHTML = "Instructions
" + info; } // ANVÄNDS PÅ FÖR ATT VALIDERA FEEDBACKEN function validateFB(dom) { if(dom.fbName.value==''){alert('You must fill in your name before you submit the feedback.'); return false;}else{ if(dom.fbEmail.value==''){alert('You must fill in your e-mail before you submit the feedback.'); return false;}else{ if(dom.fbMess.value==''){alert('You must fill in a message before you submit the feedback.'); return false;}else{ return true; }}} } //ANVÄNDS FÖR ATT VALIDERA MATERIAL LANGUAGE SELECT function validateSL(dom) { if(dom.sID.value==''){alert('You must choose a language in order to list materials');return false}else{ return true; } } //ANVÄNDS FÖR ATT VALIDERA SUBSCRIBE function validateSUB(dom) { if(dom.kontakt_namn.value==''){alert('You must enter your name.');return false}else{ if(dom.kontakt_epost.value==''){alert('You must enter your e-mail address.');return false}else{ return true; }} } // skriv ut mess