﻿function getc(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}}return""};
function rollover(b,c){var a;for(a=1;a<=5;a++)document.getElementById("lid"+b+"star"+a).src="img/rate_off.png";for(a=1;a<=c;a++)document.getElementById("lid"+b+"star"+a).src="img/rate_on.png"};
function rollout(c){var a,b=document.getElementById("lid"+c+"stars").value,e=b.substring(b.length-b.indexOf("."),b.length),d=b.substring(0,1),f=parseInt(d)+1;for(a=1;a<=5;a++)document.getElementById("lid"+c+"star"+a).src="img/rate_off.png";for(a=1;a<=d;a++)document.getElementById("lid"+c+"star"+a).src="img/rate_on.png";if(b<4.8){if(parseInt(e)>=5)document.getElementById("lid"+c+"star"+f).src="img/rate_half.png"}else document.getElementById("lid"+c+"star5").src="img/rate_on.png"};
function rateme(a,b){var u = getc('alias');if (u!="") {CallServer("rate\u00a4"+a+"\u00a4"+b,"")}else{ $('#hidMess').val('Du måste logga in för att rösta'); }}
function login(a,b,c){CallServer("login\u00a4"+a+"\u00a4"+b+"\u00a4"+c,"")};
function logout() { CallServer("logout", "") };
function Search() { var a = "", b = "", c = "", d = "", e = "", f = ""; a = $("#txtDateFrom").val(); b = $("#txtDateTo").val(); c = $("#txtLinkName").val(); d = $("#chkBronze").attr("checked"); e = $("#chkSilver").attr("checked"); f = $("#chkGold").attr("checked"); a = "search\u00a4" + a + "\u00a4" + b + "\u00a4" + c + "\u00a4" + d + "\u00a4" + e + "\u00a4" + f; $("#divLinkBottom").hide(); $("#divLinkList").html("<h1 class='hnorm'><img src='img/ajax-loader-2.gif' alt='' border='0' height='24' width='24' align='absmiddle' />&nbsp;S\u00f6ker...</h1>"); CallServer(a,"") };



