function togglevisibility(oID){var e = document.getElementById(oID);if (e) e.style.display = (e.style.display == 'none' ? "block" : "none");}
function toggleAll(parentId){var i = (parentId ? document.getElementById(parentId).getElementsByTagName("input") : document.getElementsByTagName("input"));var n = i.length;for (var k=0;k<n;k++){if (i[k].type == "checkbox") i[k].checked = !(i[k].checked);}}
function faq(id){var w = open(jroot+"/about.php?mode=faq&do=out&fid="+id, "wf1", "width=300,height=400,scrollbars,resizable,status");return false;}
function rateBox(iid, rid){var l = document.getElementById("id_rate_box_" + iid).getElementsByTagName('a');for(i=0;i<rid;i++) l[i].className = "on";for(i=rid;i<5;i++) l[i].className = "off";}
var g_box = null;
function showBox(id){hideBox();g_box = document.getElementById("id_box_" + id);if (g_box){var scrollOffset = (document.all ? document.documentElement.scrollTop : window.pageYOffset);var width = (document.all ? document.documentElement.clientWidth : window.innerWidth);var height = (document.all ? document.documentElement.clientHeight : window.innerHeight);g_box.style.position = "absolute";g_box.style.top = 0 + "px";g_box.style.left = 0 + "px";g_box.style.display = "block";g_box.style.top = (posY > height/2 + scrollOffset ? (posY - g_box.clientHeight - 10) : posY + 10) + "px";g_box.style.left = (posX > width/2 ? (posX - g_box.clientWidth - 10) : posX + 10) + "px";}return false;}
function hideBox(){if (g_box) g_box.style.display = "none";g_box = null;return false;}
function changeBox(id, html){document.getElementById("id_box_"+id).innerHTML = html;}
function limitTxt(t, m, l){m.innerHTML = t.value.length+"/"+l;m.style.color=(t.value.length > l ? "red" : "#444");}
