function getCookieVal(offset) { var endstr = document.cookie.indexOf(";",offset); if (endstr == -1) { endstr = document.cookie.length; } return unescape(document.cookie.substring(offset, endstr)); }
function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { return getCookieVal(j); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) { break; } } return null; }
function ShowHide(id1, id2, id3) { var res = expMenu(id1); if (id2 != '') { expMenu(id2); } if (id3 != '') { SetCookie(id3, res, exp); } }
function expMenu(id) { var itm = null; if (document.getElementById) { itm = document.getElementById(id); } else if (document.all) { itm = document.all[id]; } else if (document.layers) { itm = document.layers[id]; } if (!itm) { // do nothing } else if (itm.style) { if (itm.style.display == "none") { itm.style.display = ""; return 1; } else { itm.style.display = "none"; return 2; } } else { itm.visibility = "show"; return 1; } }
function showMenu(id) { var itm = null; if (document.getElementById) { itm = document.getElementById(id); } else if (document.all) { itm = document.all[id]; } else if (document.layers) { itm = document.layers[id]; } if (!itm) { // do nothing } else if (itm.style) { if (itm.style.display == "none") { itm.style.display = ""; return true; } else { // itm.style.display = "none"; return true; } } else { itm.visibility = "show"; return true; } }
function hideMenu(id) { var itm = null; if (document.getElementById) { itm = document.getElementById(id); } else if (document.all) { itm = document.all[id]; } else if (document.layers) { itm = document.layers[id]; } if (!itm) { // do nothing } else if (itm.style) { if (itm.style.display == "none") { // itm.style.display = ""; return true; } else { itm.style.display = "none"; return true; } } else { itm.visibility = "hide"; return true; } }
function IsIEMac() { // Any better way to detect IEMac? var ua = String(navigator.userAgent).toLowerCase(); if( document.all && ua.indexOf("mac") >= 0 ) { return true; } return false; }
function select_text(obj) { var o = document.getElementById(obj) if( !o ) return; var r, s; if( document.selection && !IsIEMac() ) { // Works on: IE5+ // To be confirmed: IE4? / IEMac fails? r = document.body.createTextRange(); r.moveToElementText(o); r.select(); } else if( document.createRange && (document.getSelection || window.getSelection) ) { // Works on: Netscape/Mozilla/Konqueror/Safari // To be confirmed: Konqueror/Safari use window.getSelection ? r = document.createRange(); r.selectNodeContents(o); s = window.getSelection ? window.getSelection() : document.getSelection(); s.removeAllRanges(); s.addRange(r); } }
Uploadati-l in prosilver/template/ ! Deschideti prosilver/template/overall_header.html: Cautati:
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum