

  MNn=''; sdp='/';RuF=0; QYo='/files/css/';function setStyle(kjB,value,clear){ if(clear){deleteCookie(kjB,sdp,MNn);}else{setCookie(kjB,value,RuF,sdp,MNn);}window.location.reload();};function setCookie(name,value,expires,WBO,domain,YMp){if(expires){var XkN=new Date();XkN.setTime(XkN.getTime()+3600000*24*expires);}document.cookie=name+"="+escape(value)+((expires)?"; expires="+XkN.toGMTString():"")+((WBO)?"; path="+WBO:"")+((domain)?"; domain="+domain:"")+((YMp)?"; secure":"");};function getCookie(name){var Eqa=document.cookie;var HYH=name+"=";var WId=Eqa.indexOf("; "+HYH);if(WId==-1){WId=Eqa.indexOf(HYH);if(WId!=0) return null;}else{WId+=2;}var ktT=document.cookie.indexOf(";",WId);if(ktT==-1){ktT=Eqa.length;}return unescape(Eqa.substring(WId+HYH.length,ktT));};function deleteCookie(name,WBO,domain){if(getCookie(name)){document.cookie=name+"="+((WBO)?"; path="+WBO:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}};function setchoice(cnM,ZNN){ for(var wpu=0;wpu<cnM.options.length;wpu++){if(cnM.options[wpu].value==ZNN){cnM.selectedIndex=wpu;break;}}};function init(){ setchoice(document.getElementById('toolbar').sizeselect,ffv);setchoice(document.getElementById('toolbar').faceselect,XBT);setchoice(document.getElementById('toolbar').colourselect,Rjt);setchoice(document.getElementById('toolbar').backgroundselect,DDR);setchoice(document.getElementById('toolbar').letterspaceselect,QJH);setchoice(document.getElementById('toolbar').wordspaceselect,eOi);setchoice(document.getElementById('toolbar').lineheightselect,joI);setchoice(document.getElementById('toolbar').vowelselect,mSv);if(mSv){vowels();}} ffv=getCookie('font');Rjt=getCookie('contrast');XBT=getCookie('face');DDR=getCookie('background');QJH=getCookie('letterspace');eOi=getCookie('wordspace');joI=getCookie('lineheight');mSv=getCookie('vowels');if(DDR){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+DDR+'.css" />\n');}else{}if(ffv){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+ffv+'.css" />\n');}else{}if(Rjt){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+Rjt+'.css" />\n');}else{}if(XBT){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+XBT+'.css" />\n');}else{}if(QJH){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+QJH+'.css" />\n');}else{}if(eOi){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+eOi+'.css" />\n');}else{}if(joI){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+joI+'.css" />\n');}else{}if(mSv){document.write('<link rel="stylesheet" type="text/css" href="'+QYo+mSv+'.css" />\n');}else{};function vowels(){aLN=document.getElementById('content').innerHTML;YDp=aLN.length;aEp='';ibe=false;Qsq=false;axw=false;for(wpu=0;wpu<YDp;wpu++){ZxF=aLN.charAt(wpu);if(ZxF=='<'){ibe=true;if(Qsq){ZxF='</span>'+ZxF;Qsq=false;}}else if(ZxF=='>') ibe=false;else if(!ibe){if(ZxF=='&') axw=true;else if(ZxF==';') axw=false;if('aeiou'.indexOf(ZxF)>=0&&!axw){if(!Qsq){ZxF='<span class="v">'+ZxF;Qsq=true;}}else{if(Qsq){ZxF='</span>'+ZxF;Qsq=false;}}}aEp+=ZxF;}document.getElementById('content').innerHTML=aEp;};function WriteTopTools(){document.write("<div id=\"toolsdiv\">");document.write("<form action=\"\" id=\"toolbar\">");document.write("<label for=\"fontsize\" accesskey=\"l\">");document.write("Font size<br>");document.write("<select name=\"sizeselect\" onchange=\"setStyle('font',this.options[this.selectedIndex].value)\" id=\"fontsize\">");document.write("<option value=\"\">Default</option>");document.write("<option value=\"medium\">Medium</option>");document.write("<option value=\"large\">Large</option>");document.write("<option value=\"largest\">Largest</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"faceselect\" accesskey=\"g\">");document.write("typeface<br>");document.write("<select name=\"faceselect\" id=\"faceselect\" onchange=\"setStyle('face',this.options[this.selectedIndex].value)\">");document.write("<option value=\"\">Default</option>");document.write("<option value=\"arial\">Arial</option>");document.write("<option value=\"verdana\">Verdana</option>");document.write("<option value=\"times\">Times</option>");document.write("<option value=\"comic\">Comic</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"backgroundselect\" accesskey=\"b\">");document.write("Background<br>");document.write("<select name=\"backgroundselect\" id=\"backgroundselect\" onchange=\"setStyle('background',this.options[this.selectedIndex].value)\">");document.write("<option value=\"\">Default</option>");document.write("<option value=\"whitebg\">White</option>");document.write("<option value=\"blackbg\">Black</option>");document.write("<option value=\"graybg\">Gray</option>");document.write("<option value=\"redbg\">Red</option>");document.write("<option value=\"orangebg\">Orange</option>");document.write("<option value=\"yellowbg\">Yello</option>");document.write("<option value=\"greenbg\">Green</option>");document.write("<option value=\"bluebg\">Blue</option>");document.write("<option value=\"violetbg\">Violet</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"colourselect\" accesskey=\"e\">");document.write("Font colour<br>");document.write("<select name=\"colourselect\" id=\"colourselect\" onchange=\"setStyle('contrast',this.options[this.selectedIndex].value)\">");document.write("<option value=\"\">Default</option>");document.write("<option value=\"black\">Black</option>");document.write("<option value=\"red\">Red</option>");document.write("<option value=\"orange\">Orange</option>");document.write("<option value=\"yellow\">Yellow</option>");document.write("<option value=\"green\">Green</option>");document.write("<option value=\"blue\">Blue</option>");document.write("<option value=\"violet\">Violet</option>");document.write("<option value=\"white\">White</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"letterspaceselect\" accesskey=\"s\">");document.write("Letter spacing<br>");document.write("<select name=\"letterspaceselect\" id=\"letterspaceselect\" onchange=\"setStyle('letterspace',this.options[this.selectedIndex].value)\">");document.write("<option value=\"letterspaced\">Default</option>");document.write("<option value=\"letterspace1\">Medium</option>");document.write("<option value=\"letterspace2\">Much</option>");document.write("<option value=\"letterspace3\">Most</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"wordspaceselect\" accesskey=\"o\">");document.write("Word spacing<br>");document.write("<select name=\"wordspaceselect\" id=\"wordspaceselect\" onchange=\"setStyle('wordspace',this.options[this.selectedIndex].value)\">");document.write("<option value=\"wordspaced\">Default</option>");document.write("<option value=\"wordspace1\">Medium</option>");document.write("<option value=\"wordspace2\">Much</option>");document.write("<option value=\"wordspace3\">Most</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"lineheightselect\" accesskey=\"n\">");document.write("Linespacing<br>");document.write("<select name=\"lineheightselect\" id=\"lineheightselect\" onchange=\"setStyle('lineheight',this.options[this.selectedIndex].value)\">");document.write("<option value=\"lineheightd\">Default</option>");document.write("<option value=\"lineheight1\">Medium</option>");document.write("<option value=\"lineheight2\">Much</option>");document.write("<option value=\"lineheight3\">Most</option>");document.write("</select>");document.write("</label>");document.write("<label for=\"vowelselect\" accesskey=\"v\">");document.write("Vowel colour<br>");document.write("<select name=\"vowelselect\" id=\"vowelselect\" onchange=\"setStyle('vowels',this.options[this.selectedIndex].value)\">");document.write("<option value=\"\">Ekki skilgreindur</option>");document.write("<option value=\"vowelsblack\">Svartur</option>");document.write("<option value=\"vowelsred\">Rauður</option>");document.write("<option value=\"vowelsorange\">Orange</option>");document.write("<option value=\"vowelsyellow\">Yellow</option>");document.write("<option value=\"vowelsgreen\">Green</option>");document.write("<option value=\"vowelsblue\">Blue</option>");document.write("<option value=\"vowelsviolet\">Violet</option>");document.write("</select>");document.write("</label>");document.write("</form>");document.write("<div class=\"bback\"><a href=\"/switcher.asp?type=\" title=\"Default mode\">Default mode</a></div>");document.write("</div>");};function decrypt(YZA,Edv){if(YZA==null||YZA.length<8){ return;}if(Edv==null||Edv.length<=0){ return;}var uTm="";for(var wpu=0;wpu<Edv.length;wpu++){uTm+=Edv.charCodeAt(wpu).toString();}var iLP=Math.floor(uTm.length/5);var Aog=parseInt(uTm.charAt(iLP)+uTm.charAt(iLP*2)+uTm.charAt(iLP*3)+uTm.charAt(iLP*4)+uTm.charAt(iLP*5));var tOW=Math.round(Edv.length/2);var EPC=Math.pow(2,31)-1;var XGh=parseInt(YZA.substring(YZA.length-8,YZA.length),16);YZA=YZA.substring(0,YZA.length-8);uTm+=XGh;while(uTm.length>10){uTm=(parseInt(uTm.substring(0,10))+parseInt(uTm.substring(10,uTm.length))).toString();}uTm=(Aog*uTm+tOW)%EPC;var vKE="";var LIp="";for(var wpu=0;wpu<YZA.length;wpu+=2){vKE=parseInt(parseInt(YZA.substring(wpu,wpu+2),16)^Math.floor((uTm/EPC)*255));LIp+=String.fromCharCode(vKE);uTm=(Aog*uTm+tOW)%EPC;}return LIp;};function emailCheck(Zkd){var HGW=/^(.+)@(.+)$/;var IgD="\\(\\)<>@,;:\\\\\\\"\\.\\,\\[\\]áðéíóúýþæöÁÐÉÍÓÚÝÞÆÖ'";var PbO="\[^\\s"+IgD+"\]";var nQr="(\"[^\"]*\")";var mRr=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atj=PbO+'+';var lOi="("+atj+"|"+nQr+")";var Nbt=new RegExp("^"+lOi+"(\\."+lOi+")*$");var LLC=new RegExp("^"+atj+"(\\."+atj+")*$");var vYw=Zkd.match(HGW);if(vYw==null){alert("Athugaðu hvort rétt netfang hafi verið slegið inn");return false}var Zre=vYw[1];var domain=vYw[2];if(Zre.match(Nbt)==null){alert("Athugaðu hvort rétt netfang hafi verið slegið inn");return false}var cRx=domain.match(mRr);if(cRx!=null){ for(var wpu=1;wpu<=4;wpu++);{if(cRx[wpu]>255){alert("Athugaðu hvort rétt netfang hafi verið slegið inn");return false}}return true}var ZoL=domain.match(LLC);if(ZoL==null){alert("Athugaðu hvort rétt netfang hafi verið slegið inn");return false}var hri=new RegExp(atj,"g");var cKF=domain.match(hri);var ppD=cKF.length;if(cKF[cKF.length-1].length<2||cKF[cKF.length-1].length>3){alert("Athugaðu hvort rétt netfang hafi verið slegið inn");return false}if(ppD<2){alert("Athugaðu hvort rétt netfang hafi verið slegið inn");return false}return true;};function openWindow(mbw,name,attributes){var rfx='';rfx=window.open(mbw,name,attributes);};function OpenCloseFolder(lKT,HRg){var dpI=document.getElementById(HRg);var YrH=document.getElementById(lKT);var ZvD="";YrH.style.display=(YrH.style.display=="block")?"none":"block";ZvD=(YrH.style.display=="block")?"folder_open.gif":"folder_closed.gif";dpI.src="/files/"+ZvD;}var LfV=null;function openHelpWindow(BDM){var AiP=unescape(BDM);if(LfV==null){LfV=window.open("/formHelp.asp?help="+escape(AiP),"helpWindow","width=350, height=250, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes");}else{LfV.location.href="/formHelp.asp?help="+escape(AiP);LfV.focus();}};function confirmReset(CdZ){return confirm(CdZ);};function validate(){if(document.form1.ppD.value==""){alert("Nauðsynlegt er að slá inn lén.");document.form1.ppD.focus();return(false);}return true;}
//-->;
