var mailToName = "" function openURL(sURL,sTarget,sParams,bFocus) { var oWin = window.open(sURL,sTarget,sParams); if (bFocus) { oWin.focus(); } return false; } function openURLOrSendTo(sURL,sTarget,sParams,bFocus) { if (mailToName != ""){ return true; } var oWin = window.open(sURL,sTarget,sParams); if (bFocus) { oWin.focus(); } return false; } function setRec(sName){ mailToName = sName } function mlnk(sName) { var sDomain = "item"; var sIntl = "no"; var sAction = "mailto:"; var sAdr = sName + "@" + sDomain + "." + sIntl; document.write("" + sAdr + ""); } function shiftCSS(obj,css) { if(typeof(obj)=="string") { document.getElementById(obj).className=css; }else{ obj.className=css; } } function setCookie(sName, sValue) { // Creates a session-coookie. document.cookie = sName + "=" + escape(sValue) + ";"; } function getCookie(sName) { var aCookie = document.cookie.split("; "); for (var i=0; i < aCookie.length; i++) { var aCrumb = aCookie[i].split("="); if (sName == aCrumb[0]) { // Return the value when found return unescape(aCrumb[1]); } } // If nothing was found in the loop, null is returned at the end return null; } function clearCookie(sName) { //Note: This function does not delete the cookie, it only clears it's value. //Use deleteCookie to delete it. document.cookie = sName + "=" + ""; } function posterSwitcher(ids, idx){ var prevIdx = 0; var arrID = ids.split(","); var max = arrID.length -1; if (idx > max) { idx = 0; }; if (idx == 0) { prevIdx = max; } else { prevIdx = idx-1; }; shiftCSS(arrID[idx],"posterShow"); shiftCSS(arrID[prevIdx],"posterHide"); return ++idx; } function getRandomBinary() { var nRdm = null; nRdm = Math.random(); return Math.round(nRdm); }