function changeRatingsState(F,B,H,D,I,A){var E=parseInt(String(F).split(".")[0]);var J=String(F).split(".")[1];var G=0;if(E>0&&E<=5){for(G=1;G<=E;G++){document.getElementById(A+String(G)+I).style.background=B}E=parseInt(E)+1;if(J=="5"){document.getElementById(A+String(E)+I).style.background=H;E=parseInt(E)+1}for(G=E;G<=5;G++){document.getElementById(A+String(G)+I).style.background=D}}else{for(G=1;G<=5;G++){var C=document.getElementById(A+String(G)+I);if(C!=null){C.style.background=D}}}}function changeRatingsStateOnMouseOver(D,A,C){var B=0;for(B=1;B<=D;B++){document.getElementById(String(B)+C).style.background=A}}function changeFontSize(A,C){var D=document.getElementById(A);var F=D.style.fontSize;if(F!=""){F=F.replace("px","")}else{F=11}D.style.fontSize=parseInt(F)+parseInt(C)+"px";var E=D.getElementsByTagName("*");for(var B=0;B<E.length;B++){var F=E[B].style.fontSize;if(F!=""){F=F.replace("px","")}else{F=11}E[B].style.fontSize=parseInt(F)+parseInt(C)+"px"}return true}function xmlhttpPost(C,A,B){if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest()}else{if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}}if(xmlhttp){xmlhttp.open("GET",C,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var F=document.createElement("div");var E=xmlhttp.responseText;var H=/\<script language=\"javascript\"\>([^\<]+)\<\/script\>/gim;var I=E.match(H);F.innerHTML=E;document.body.appendChild(F);if(I){for(var D=0;D<I.length;(function(){H=/\<script language=\"javascript\"\>([^\<]+)\<\/script\>/gim;H.test(I[D++]);var L=RegExp.$1;(new Function(L))()})()){}}F.style.position="absolute";var G=F.offsetHeight;var J=VisualElementManager.getWindowHeight();B=(B+G>J)?B-G:B;F.style.left=A+"px";F.style.top=B+"px"}else{var K="some Problem"}}};if(window.XMLHttpRequest){xmlhttp.send(null)}else{xmlhttp.send()}}}function closePopUp(A,B){A.parentNode.parentNode.parentNode.parentNode.removeNode(true);var C=document.getElementById(B);if(C!=null){C.disabled=false}}function tryDelete(){return confirm("Are you sure you want to remove this?")}if(window.opener&&window.opener.previewInAction){window.opener.previewInAction=false;window.onload=function(){var B=document.body.getElementsByTagName("*");document.body.onmouseup=function(C){if(confirm("The preview window is readonly, do you want to close the window ?")){window.close()}return false};for(var A=0;A<B.length;A++){B[A].onmousedown=function(){return false};B[A].onclick=function(){return false};B[A].onkeydown=function(){return false}}}}function insertURLIntoMngtTag(A,C){var B=document.getElementById(A);if(B!=null){B.innerHTML=C}}