var gloStrForm;var gloStrButton;var gloStrDefaultVal;function disableForm(strForm,strButton,strDefaultVal,intSeconds){intSeconds=(intSeconds=="undefined"||intSeconds==undefined)?2:intSeconds;gloStrForm=strForm;gloStrButton=strButton;gloStrDefaultVal=strDefaultVal;eval('document.forms["'+strForm+'"].'+strButton+".disabled = true;");eval('document.forms["'+strForm+'"].'+strButton+'.value = "vänta ...";');setTimeout("dfCall();",(intSeconds*1000))}function dfCall(){eval('document.forms["'+gloStrForm+'"].'+gloStrButton+".disabled = false;");eval('document.forms["'+gloStrForm+'"].'+gloStrButton+'.value = "'+gloStrDefaultVal+'";')}$(document).ready(function(){$("a.mainMenu").click(function(){var a=$(this).attr("href");getPage(a);return false})});function schedule__get_online_members(){schedule__run__get_online_members();setInterval("schedule__run__get_online_members()",60000)}function schedule__run__get_online_members(){var b=config.http_root+"schedule__get_online_members.php";var a="";mcmsAjax.loadUrl(b,"get",a,"liveOnlineMembers")}function schedule__get_latest_logins(){schedule___run__get_latest_logins();setInterval("schedule___run__get_latest_logins()",10000)}function schedule___run__get_latest_logins(){var b=config.http_root+"schedule__get_latest_logins.php";var a="";mcmsAjax.loadUrl(b,"get",a,"liveLatestLogins")}function getPage(a){if(frames.appFrame){frames.appFrame.document.location.href=a}else{document.location.href=a}}function expandTextarea(d,b){var c=document.getElementById(d).value;var a=c.split("\n").length;if(a>(b-1)&&a<40){document.getElementById(d).style.height=((a+1)*16)+"px"}if(a<(b-1)){document.getElementById(d).style.height=((b)*16)+"px"}goSetHeight();document.getElementById(d).focus()}function friend_added(b){var a="Din förfrågan har skickats till "+b+".<br/>";a+="Nu får du vänta och hoppas på att din vännerförfrågan blir godkänd.<br/>";a+="<br/>";a+='<input type="button" class="button" onclick="mcmsDivPopup.popup_hide(mcmsDivPopup.old_unique_id);" value="Ok" />';document.getElementById("popupFriendAdd_dynamic").innerHTML=a}self.popup=null;function wino(g,d,c,b,a){a=(a!=undefined&&a!="undefined"&&a=="scrollbars")?"1":"0";try{self.popup=window.open(g,d,"width="+c+",height="+b+",scrollbars="+a+",status=0,toolbar=0")}catch(f){console.log("error while trying to open child window",g)}self.setTimeout(function(){try{if(!self.popup){console.log("couldn't open child window",g)}}catch(h){}},200)}function getIFrameDocument(a){return navigator}function URLEncode(e){var g="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()";var b="0123456789ABCDEF";var f="";for(var c=0;c<e.length;c++){var d=e.charAt(c);if(d==" "){f+="+"}else{if(g.indexOf(d)!=-1){f+=d}else{var a=d.charCodeAt(0);if(a>255){f+="+"}else{f+="%";f+=b.charAt((a>>4)&15);f+=b.charAt(a&15)}}}}return f}function URLDecode(e){var a="0123456789ABCDEFabcdef";var d="";var b=0;while(b<e.length){var c=e.charAt(b);if(c=="+"){d+=" ";b++}else{if(c=="%"){if(b<(e.length-2)&&a.indexOf(e.charAt(b+1))!=-1&&a.indexOf(e.charAt(b+2))!=-1){d+=unescape(e.substr(b,3));b+=3}else{d+="%[ERROR]";b++}}else{d+=c;b++}}}return d}function mcms_div_popup(){this.old_unique_id="";this.popup_hide=function(contentBoxID){if(document.getElementById(contentBoxID)){document.getElementById(contentBoxID).style.display="none"}if(document.getElementById(contentBoxID+"_dynamic")){document.getElementById(contentBoxID+"_dynamic").innerHTML='<img src="'+config.http_root+'inc/gfx/loading.gif"> Loading ...'}if(document.getElementById("lockedLayer")){document.getElementById("lockedLayer").style.display="none"}};this.popup=function(contentBoxID,optionalData){window.scroll(10000,0);if(document.getElementById(contentBoxID)){if(this.old_unique_id!=""){if(document.getElementById(this.old_unique_id)){document.getElementById(this.old_unique_id).style.display="none"}}document.getElementById(contentBoxID).style.display="";if(document.getElementById("lockedLayer")){document.getElementById("lockedLayer").style.display="block";
this.setFadeHeight()}if(optionalData!="undefined"&&optionalData!=undefined){eval(contentBoxID+"('"+optionalData+"');")}this.old_unique_id=contentBoxID}else{alert("Could not locate content holder.")}};this.setFadeHeight=function(){if(document.getElementById("lockedLayer")){var header_height=0;var height=document.body.offsetHeight>(screen.availHeight-header_height)?document.body.offsetHeight:(screen.availHeight-header_height);height=height>document.body.scrollHeight?height:document.body.scrollHeight;var raw_height=height;Opera=navigator.userAgent.indexOf("Opera")>-1;IE=navigator.userAgent.indexOf("MSIE")>-1;height=height-header_height;if(Opera){if(document.getElementById("lockedLayer")){document.getElementById("lockedLayer").style.height=raw_height}}else{if(IE){height=height-12;if(document.getElementById("lockedLayer")){document.getElementById("lockedLayer").style.height=raw_height}}else{height=height+100;if(document.getElementById("lockedLayer")){document.getElementById("lockedLayer").style.height=raw_height}}}}}}var mcmsDivPopup=new mcms_div_popup();function titleAndClose(b,a){document.write('<div style="float: left; width: 150px; padding: 5px 0 5px 0;">');document.write("	&nbsp;&nbsp;&nbsp;<b>"+a+"</b>");document.write("</div>");document.write('<div style="float: right; width: 30px; padding: 5px 0 5px 0;">');document.write('		<a href="#" style="cursor: pointer;" onclick="mcmsDivPopup.popup_hide(\''+b+"'); return false;\">[X]</a>");document.write("</div>");document.write('<div class="clear"></div>')}function popupExample(b){var c=config.http_root+"profile.php";var a="mid="+b;mcmsAjax.loadUrl(c,"get",a,"popupExample_dynamic")}function popupNotes(b){var c=config.http_root+"get_note.php";var a="mid="+b;mcmsAjax.loadUrl(c,"get",a,"popupNotes_dynamic")}function popupFriendAdd(b){var c=config.http_root+"friend_add.php";var a="mid="+b;mcmsAjax.loadUrl(c,"get",a,"popupFriendAdd_dynamic")}function popupGuestbookReply(b){var d=b.split("&");var c=d[0];var f=d[1];var e=d[2];if(document.getElementById("frmReplyTo")&&document.getElementById("frmReplyEntryID")){document.getElementById("frmReplyTo").value=c;document.getElementById("frmReplyEntryID").value=f}var a="mid="+c+"&mid2="+e+"&rand="+URLEncode(Math.random().toString());mcmsAjax.loadUrl(config.http_root+"guestbook_history.php","get",a,"popupGuestbookReply_dynamic")}function html_entity_decode(b){var a=document.createElement("textarea");a.innerHTML=b.replace(/</g,"&lt;").replace(/>/g,"&gt;");return a.value}var mcms_ajaxInstanceName="mcmsAjax";function mcms_ajax(){this.xmlhttp="";this.readystate="";this.seconds=0;this.objInterval=null;this.feedback_type="";this.objPreloader=null;this.initPreloader=function(){if(!eval(mcms_ajaxInstanceName+".objPreloader")){this.createPreloader()}if(eval(mcms_ajaxInstanceName+".objPreloader")){eval(mcms_ajaxInstanceName+".objPreloader.style.display = 'block';");eval(mcms_ajaxInstanceName+'.objPreloader.innerHTML = "<b>Skickar uppgifter</b><br/>";')}else{alert("Could not create preloader object.")}};this.loadUrl=function(url,method,post_data,feedback_type){this.feedback_type=feedback_type;if(method.toLowerCase()=="post"){method="POST"}else{method="GET"}if(method=="GET"){url=url+"?"+post_data}this.xmlhttp=null;if(window.XMLHttpRequest){this.xmlhttp=new XMLHttpRequest()}else{if(window.ActiveXObject){this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}}if(this.xmlhttp!=null){this.xmlhttp.onreadystatechange=this.readyStateChanged;this.xmlhttp.open(method,url,true);this.xmlhttp.setRequestHeader("Method",""+method+"  HTTP/1.1");if(method=="POST"){this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=iso-8859-4")}if(method=="GET"){this.xmlhttp.setRequestHeader("Content-Type","text/html;charset=iso-8859-4")}this.xmlhttp.setRequestHeader("Pragma","no-cache");this.xmlhttp.setRequestHeader("Cache-Control","no-cache, must revalidate");this.xmlhttp.send(this.escapeSpecialChars(post_data))}else{alert("Your browser does not support XMLHTTP.")
}};this.readyStateChanged=function(){if(window.mcms_ajaxInstanceName!=undefined){eval(mcms_ajaxInstanceName+".readystate = "+mcms_ajaxInstanceName+".xmlhttp.readyState;");var live=new Array(5);live[0]="Initialiserar ...";live[1]="Slar upp URL ...";live[2]="Ok";live[3]="Laddar ...";live[4]="Ok ";if(eval(mcms_ajaxInstanceName+".objPreloader")){var preloader_html=eval(mcms_ajaxInstanceName+".objPreloader.innerHTML.toString();")}else{preloader_html=""}if(eval(mcms_ajaxInstanceName+".readystate == 0")){if(eval(mcms_ajaxInstanceName+".objPreloader")&&preloader_html.indexOf(live[0])==-1){eval(mcms_ajaxInstanceName+'.objPreloader.innerHTML = live[0] + "<br/>";')}}else{if(eval(mcms_ajaxInstanceName+".readystate == 1")){if(eval(mcms_ajaxInstanceName+".objPreloader")&&preloader_html.indexOf(live[1])==-1){eval(mcms_ajaxInstanceName+'.objPreloader.innerHTML += live[1] + "";')}}else{if(eval(mcms_ajaxInstanceName+".readystate == 2")){if(eval(mcms_ajaxInstanceName+".objPreloader")&&preloader_html.indexOf(live[2])==-1){eval(mcms_ajaxInstanceName+'.objPreloader.innerHTML += live[2] + "<br/>";')}}else{if(eval(mcms_ajaxInstanceName+".readystate == 3")){if(eval(mcms_ajaxInstanceName+".objPreloader")&&preloader_html.indexOf(live[3])==-1){eval(mcms_ajaxInstanceName+'.objPreloader.innerHTML += live[3] + "";')}}else{if(eval(mcms_ajaxInstanceName+".readystate == 4")){if(eval(mcms_ajaxInstanceName+".xmlhttp.status==200")){if(eval(mcms_ajaxInstanceName+".objPreloader")&&preloader_html.indexOf(live[4])==-1){eval(mcms_ajaxInstanceName+".objPreloader.innerHTML += live[4] + '<br/>';")}if(eval(mcms_ajaxInstanceName+".objPreloader")){if(eval(mcms_ajaxInstanceName+".feedback_type == 'preloader'")){setTimeout(mcms_ajaxInstanceName+'.objPreloader.style.display = "none";',4000)}else{eval(mcms_ajaxInstanceName+'.objPreloader.style.display = "none";')}}eval("var response_text = "+mcms_ajaxInstanceName+".xmlhttp.responseText.toString();");if(response_text.indexOf("<script")!=-1){eval("eval("+mcms_ajaxInstanceName+".strip_tags(response_text));")}else{if(eval(mcms_ajaxInstanceName+".feedback_type == 'alert'")){alert(html_entity_decode(response_text))}else{if(eval(mcms_ajaxInstanceName+".feedback_type == 'preloader'")){if(eval(mcms_ajaxInstanceName+".objPreloader")){eval(mcms_ajaxInstanceName+'.objPreloader.innerHTML += "<br/><b>Meddelande</b><br/>"+html_entity_decode(response_text)+"<br/>";')}}else{if(eval(mcms_ajaxInstanceName+".feedback_type == ''")){alert("No feedback type chosen.")}else{if(eval("document.getElementById("+mcms_ajaxInstanceName+".feedback_type)")){eval("document.getElementById("+mcms_ajaxInstanceName+".feedback_type).innerHTML = html_entity_decode(URLDecode(response_text));")}}}}}}else{}}}}}}}};this.strip_tags=function(htmlString){var strInputCode=htmlString;strInputCode=strInputCode.replace(/&(lt|gt);/g,function(strMatch,p1){return(p1=="lt")?"<":">"});var strTagStrippedText=strInputCode.replace(/<\/?[^>]+(>|$)/g,"");return strTagStrippedText};this.ahref=function(obj){var href=obj.href;var arr=href.split("?");var href=arr[0]?arr[0]:"";var querystring=arr[1]?arr[1]:"";href=href.toString();querystring=querystring.toString();eval(mcms_ajaxInstanceName+".loadUrl(href, 'get', querystring, 'alert');")};this.sendData=function(obj,response_type){if(response_type=="preloader"){this.initPreloader()}var form_action=(obj.action!=""&&obj.action!="undefined"&&obj.action!=undefined)?obj.action:"";var form_method=(obj.method!=""&&obj.method!="undefined"&&obj.method!=undefined)?obj.method:"get";var querystring="";var form_fields=obj.elements;for(i=0;i<form_fields.length;i++){if(form_fields[i].type=="text"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"}if(form_fields[i].type=="hidden"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"}if(form_fields[i].type=="password"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"}if(form_fields[i].type=="textarea"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"
}if(form_fields[i].type=="radio"){var radio_len=eval("obj."+form_fields[i].name+".length");for(var z=0;z<radio_len;z++){if(form_fields[i].checked){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&";z=radio_len}}}if(form_fields[i].type=="select-one"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].options[form_fields[i].selectedIndex].value)+"&"}if(form_fields[i].type=="checkbox"){querystring+=form_fields[i].name+"="+(form_fields[i].checked?URLEncode(form_fields[i].value):"")+"&"}}eval(mcms_ajaxInstanceName+".loadUrl(form_action, form_method, querystring, response_type);")};this.escapeSpecialChars=function(str){str=str.replace(/ç/g,escape("ç"));str=str.replace(/Ç/g,escape("Ç"));str=str.replace(/ð/g,escape("ð"));str=str.replace(/Ð/g,escape("Ð"));str=str.replace(/ý/g,escape("ý"));str=str.replace(/Ý/g,escape("Ý"));str=str.replace(/ö/g,escape("ö"));str=str.replace(/Ö/g,escape("Ö"));str=str.replace(/þ/g,escape("þ"));str=str.replace(/Þ/g,escape("Þ"));str=str.replace(/ü/g,escape("ü"));str=str.replace(/Ü/g,escape("Ü"));return str};this.getSpecialChars=function(str){str=str.replace(/%E7/g,"ç");str=str.replace(/%C7/g,"Ç");str=str.replace(/%F0/g,"ð");str=str.replace(/%D0/g,"Ð");str=str.replace(/%FD/g,"ý");str=str.replace(/%DD/g,"Ý");str=str.replace(/%F6/g,"ö");str=str.replace(/%D6/g,"Ö");str=str.replace(/%FE/g,"þ");str=str.replace(/%DE/g,"Þ");str=str.replace(/%FC/g,"ü");str=str.replace(/%DC/g,"Ü");return unescape(str)};this.preloaderFollowMouse=function(ev){if(eval(mcms_ajaxInstanceName+".objPreloader")){ev=ev||window.event;var x=ev.clientX;var y=ev.clientY;eval("var pl = "+mcms_ajaxInstanceName+".objPreloader;");if(y<=590&&x<=900){pl.style.left=(x+10);pl.style.top=(y+10)}}};this.createPreloader=function(){var unique_id="preloaderContainer";var divElement=document.createElement("div");divElement.setAttribute("id",unique_id);var divParent=document.getElementsByTagName("body");divParent=divParent[0];divParent.appendChild(divElement);this.divParent=divParent;document.getElementById(unique_id).innerHTML="";document.getElementById(unique_id).style.position="absolute";document.getElementById(unique_id).style.overflow="auto";document.getElementById(unique_id).style.width="200px";document.getElementById(unique_id).style.height="100px";document.getElementById(unique_id).style.margin="0px";document.getElementById(unique_id).style.background="white";document.getElementById(unique_id).style.border="1px solid black";document.getElementById(unique_id).style.left="100px";document.getElementById(unique_id).style.top="100px";document.getElementById(unique_id).style.padding="5px";document.getElementById(unique_id).style.zIndex=1;eval(mcms_ajaxInstanceName+".objPreloader = document.getElementById(unique_id);")}}var mcmsAjax=new mcms_ajax();function html_entity_decode(b){var a=document.createElement("textarea");a.innerHTML=b.replace(/</g,"&lt;").replace(/>/g,"&gt;");return a.value}var mcms_ajaxInstanceName2="mcmsAjax2";function mcms_ajax(){this.xmlhttp="";this.readystate="";this.seconds=0;this.objInterval=null;this.feedback_type="";this.objPreloader=null;this.initPreloader=function(){if(!eval(mcms_ajaxInstanceName2+".objPreloader")){this.createPreloader()}if(eval(mcms_ajaxInstanceName2+".objPreloader")){eval(mcms_ajaxInstanceName2+".objPreloader.style.display = 'block';");eval(mcms_ajaxInstanceName2+'.objPreloader.innerHTML = "<b>Skickar uppgifter</b><br/>";')}else{alert("Could not create preloader object.")}};this.loadUrl=function(url,method,post_data,feedback_type){this.feedback_type=feedback_type;if(method.toLowerCase()=="post"){method="POST"}else{method="GET"}if(method=="GET"){url=url+"?"+post_data}this.xmlhttp=null;if(window.XMLHttpRequest){this.xmlhttp=new XMLHttpRequest()}else{if(window.ActiveXObject){this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}}if(this.xmlhttp!=null){this.xmlhttp.onreadystatechange=this.readyStateChanged;this.xmlhttp.open(method,url,true);this.xmlhttp.setRequestHeader("Method",""+method+"  HTTP/1.1");
if(method=="POST"){this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=iso-8859-4")}if(method=="GET"){this.xmlhttp.setRequestHeader("Content-Type","text/html;charset=iso-8859-4")}this.xmlhttp.setRequestHeader("Pragma","no-cache");this.xmlhttp.setRequestHeader("Cache-Control","no-cache, must revalidate");this.xmlhttp.send(this.escapeSpecialChars(post_data))}else{alert("Your browser does not support XMLHTTP.")}};this.readyStateChanged=function(){eval(mcms_ajaxInstanceName2+".readystate = "+mcms_ajaxInstanceName2+".xmlhttp.readyState;");var live=new Array(5);live[0]="Initialiserar ...";live[1]="Slar upp URL ...";live[2]="Ok";live[3]="Laddar ...";live[4]="Ok ";if(eval(mcms_ajaxInstanceName2+".objPreloader")){var preloader_html=eval(mcms_ajaxInstanceName2+".objPreloader.innerHTML.toString();")}else{preloader_html=""}if(eval(mcms_ajaxInstanceName2+".readystate == 0")){if(eval(mcms_ajaxInstanceName2+".objPreloader")&&preloader_html.indexOf(live[0])==-1){eval(mcms_ajaxInstanceName2+'.objPreloader.innerHTML = live[0] + "<br/>";')}}else{if(eval(mcms_ajaxInstanceName2+".readystate == 1")){if(eval(mcms_ajaxInstanceName2+".objPreloader")&&preloader_html.indexOf(live[1])==-1){eval(mcms_ajaxInstanceName2+'.objPreloader.innerHTML += live[1] + "";')}}else{if(eval(mcms_ajaxInstanceName2+".readystate == 2")){if(eval(mcms_ajaxInstanceName2+".objPreloader")&&preloader_html.indexOf(live[2])==-1){eval(mcms_ajaxInstanceName2+'.objPreloader.innerHTML += live[2] + "<br/>";')}}else{if(eval(mcms_ajaxInstanceName2+".readystate == 3")){if(eval(mcms_ajaxInstanceName2+".objPreloader")&&preloader_html.indexOf(live[3])==-1){eval(mcms_ajaxInstanceName2+'.objPreloader.innerHTML += live[3] + "";')}}else{if(eval(mcms_ajaxInstanceName2+".readystate == 4")){if(eval(mcms_ajaxInstanceName2+".xmlhttp.status==200")){if(eval(mcms_ajaxInstanceName2+".objPreloader")&&preloader_html.indexOf(live[4])==-1){eval(mcms_ajaxInstanceName2+".objPreloader.innerHTML += live[4] + '<br/>';")}if(eval(mcms_ajaxInstanceName2+".objPreloader")){if(eval(mcms_ajaxInstanceName2+".feedback_type == 'preloader'")){setTimeout(mcms_ajaxInstanceName2+'.objPreloader.style.display = "none";',4000)}else{eval(mcms_ajaxInstanceName2+'.objPreloader.style.display = "none";')}}eval("var response_text = "+mcms_ajaxInstanceName2+".xmlhttp.responseText.toString();");if(response_text.indexOf("<script")!=-1){eval("eval("+mcms_ajaxInstanceName2+".strip_tags(response_text));")}else{if(eval(mcms_ajaxInstanceName2+".feedback_type == 'alert'")){alert(html_entity_decode(response_text))}else{if(eval(mcms_ajaxInstanceName2+".feedback_type == 'preloader'")){if(eval(mcms_ajaxInstanceName2+".objPreloader")){eval(mcms_ajaxInstanceName2+'.objPreloader.innerHTML += "<br/><b>Meddelande</b><br/>"+html_entity_decode(response_text)+"<br/>";')}}else{if(eval(mcms_ajaxInstanceName2+".feedback_type == ''")){alert("No feedback type chosen.")}else{if(eval("document.getElementById("+mcms_ajaxInstanceName2+".feedback_type)")){document.getElementById(mcmsAjax2.feedback_type).innerHTML="<script>alert(4322);<\/script>"}}}}}}else{}}}}}}};this.strip_tags=function(htmlString){var strInputCode=htmlString;strInputCode=strInputCode.replace(/&(lt|gt);/g,function(strMatch,p1){return(p1=="lt")?"<":">"});var strTagStrippedText=strInputCode.replace(/<\/?[^>]+(>|$)/g,"");return strTagStrippedText};this.ahref=function(obj){var href=obj.href;var arr=href.split("?");var href=arr[0]?arr[0]:"";var querystring=arr[1]?arr[1]:"";href=href.toString();querystring=querystring.toString();eval(mcms_ajaxInstanceName2+".loadUrl(href, 'get', querystring, 'alert');")};this.sendData=function(obj,response_type){if(response_type=="preloader"){this.initPreloader()}var form_action=(obj.action!=""&&obj.action!="undefined"&&obj.action!=undefined)?obj.action:"";var form_method=(obj.method!=""&&obj.method!="undefined"&&obj.method!=undefined)?obj.method:"get";var querystring="";var form_fields=obj.elements;for(i=0;i<form_fields.length;i++){if(form_fields[i].type=="text"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"
}if(form_fields[i].type=="hidden"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"}if(form_fields[i].type=="password"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"}if(form_fields[i].type=="textarea"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&"}if(form_fields[i].type=="radio"){var radio_len=eval("obj."+form_fields[i].name+".length");for(var z=0;z<radio_len;z++){if(form_fields[i].checked){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].value)+"&";z=radio_len}}}if(form_fields[i].type=="select-one"){querystring+=form_fields[i].name+"="+URLEncode(form_fields[i].options[form_fields[i].selectedIndex].value)+"&"}if(form_fields[i].type=="checkbox"){querystring+=form_fields[i].name+"="+(form_fields[i].checked?URLEncode(form_fields[i].value):"")+"&"}}eval(mcms_ajaxInstanceName2+".loadUrl(form_action, form_method, querystring, response_type);")};this.escapeSpecialChars=function(str){str=str.replace(/ç/g,escape("ç"));str=str.replace(/Ç/g,escape("Ç"));str=str.replace(/ð/g,escape("ð"));str=str.replace(/Ð/g,escape("Ð"));str=str.replace(/ý/g,escape("ý"));str=str.replace(/Ý/g,escape("Ý"));str=str.replace(/ö/g,escape("ö"));str=str.replace(/Ö/g,escape("Ö"));str=str.replace(/þ/g,escape("þ"));str=str.replace(/Þ/g,escape("Þ"));str=str.replace(/ü/g,escape("ü"));str=str.replace(/Ü/g,escape("Ü"));return str};this.getSpecialChars=function(str){str=str.replace(/%E7/g,"ç");str=str.replace(/%C7/g,"Ç");str=str.replace(/%F0/g,"ð");str=str.replace(/%D0/g,"Ð");str=str.replace(/%FD/g,"ý");str=str.replace(/%DD/g,"Ý");str=str.replace(/%F6/g,"ö");str=str.replace(/%D6/g,"Ö");str=str.replace(/%FE/g,"þ");str=str.replace(/%DE/g,"Þ");str=str.replace(/%FC/g,"ü");str=str.replace(/%DC/g,"Ü");return unescape(str)};this.preloaderFollowMouse=function(ev){if(eval(mcms_ajaxInstanceName2+".objPreloader")){ev=ev||window.event;var x=ev.clientX;var y=ev.clientY;eval("var pl = "+mcms_ajaxInstanceName2+".objPreloader;");if(y<=590&&x<=900){pl.style.left=(x+10);pl.style.top=(y+10)}}};this.createPreloader=function(){var unique_id="preloaderContainer";var divElement=document.createElement("div");divElement.setAttribute("id",unique_id);var divParent=document.getElementsByTagName("body");divParent=divParent[0];divParent.appendChild(divElement);this.divParent=divParent;document.getElementById(unique_id).innerHTML="";document.getElementById(unique_id).style.position="absolute";document.getElementById(unique_id).style.overflow="auto";document.getElementById(unique_id).style.width="200px";document.getElementById(unique_id).style.height="100px";document.getElementById(unique_id).style.margin="0px";document.getElementById(unique_id).style.background="white";document.getElementById(unique_id).style.border="1px solid black";document.getElementById(unique_id).style.left="100px";document.getElementById(unique_id).style.top="100px";document.getElementById(unique_id).style.padding="5px";document.getElementById(unique_id).style.zIndex=1;eval(mcms_ajaxInstanceName2+".objPreloader = document.getElementById(unique_id);")}}var mcmsAjax2=new mcms_ajax();
