function thumbDownClick(a,b){document.getElementById(a).setAttribute("disabled","disabled");document.getElementById(a).removeAttribute("href");document.getElementById(a).removeAttribute("onclick");document.getElementById(a).removeAttribute("onmouseover");document.getElementById(a).removeAttribute("onmouseout");$("#"+a).css("cursor","default");identifier=a.substring(0,a.length-11);document.getElementById(identifier+"ajaxStatus").setAttribute("src","images/ajaxLoading.gif");disableIt(identifier+"ibThumbUp");$(a).click(function(a){a.preventDefault()});$.ajax({type:"POST",url:"default.aspx",data:"ajaxReq=true&ajaxFunc=thumbDown&tabId="+b+"&btnId="+a,success:thumbDownSuccess,error:thumbDownError})}function thumbDownSuccess(a){prefix=new String(a);prefix=prefix.substring(0,prefix.length-11)+"lblAccept";var b=document.getElementById(prefix).innerHTML;b--;document.getElementById(prefix).innerHTML=b;identifier=a.substring(0,a.length-11);document.getElementById(identifier+"ajaxStatus").setAttribute("src","images/pixel.gif")}function thumbDownError(a){identifier=a.substring(0,a.length-11);document.getElementById(identifier+"ajaxStatus").setAttribute("src","images/ajaxdc.gif")}function thumbUpClick(a,b){document.getElementById(a).setAttribute("disabled","disabled");document.getElementById(a).removeAttribute("href");document.getElementById(a).removeAttribute("onclick");document.getElementById(a).removeAttribute("onmouseover");document.getElementById(a).removeAttribute("onmouseout");$("#"+a).css("cursor","default");identifier=a.substring(0,a.length-9);document.getElementById(identifier+"ajaxStatus").setAttribute("src","images/ajaxLoading.gif");disableIt(identifier+"ibThumbDown");$(a).click(function(a){a.preventDefault()});$.ajax({type:"POST",url:"default.aspx",data:"ajaxReq=true&ajaxFunc=thumbUp&tabId="+b+"&btnId="+a,success:thumbUpSuccess,error:thumbUpError})}function thumbUpSuccess(a){prefix=new String(a);prefix=prefix.substring(0,prefix.length-9)+"lblAccept";var b=document.getElementById(prefix).innerHTML;b++;document.getElementById(prefix).innerHTML=b;identifier=a.substring(0,a.length-9);document.getElementById(identifier+"ajaxStatus").setAttribute("src","images/pixel.gif")}function thumbUpError(a){identifier=a.substring(0,a.length-9);document.getElementById(identifier+"ajaxStatus").setAttribute("src","images/ajaxdc.gif")}$(document).ready(function(){$("input:image").each(function(){if($(this).attr("disabled")){$(this).css("cursor","default");$(this).removeAttr("onclick");$(this).removeAttr("onmouseover");$(this).removeAttr("onmouseout")}})});function disableIt(a){$("#"+a).css("cursor","default");document.getElementById(a).removeAttribute("onclick");document.getElementById(a).removeAttribute("href");document.getElementById(a).removeAttribute("onmouseover");document.getElementById(a).removeAttribute("onmouseout");document.getElementById(a).setAttribute("disabled","disabled")}
