function CheckVote(h,f,g,b,a){var c=0;var e=0;for(var d=0;d<=parseInt(f,10);d++){if(document.getElementById(h+"_"+d).checked){e=document.getElementById(h+"_"+d).value;c=1;}}if(c==0){if(g=="ar"){alert(" . . .الرجاء إختيار احد الاجابات للتصويت");}else{alert("Please select an answer to vote . . .");}return false;}else{var j=Ajax_DoVote(b,a,e,g,1);}return false;}function Ajax_DoVote(c,a,d,e,h){var g=document.getElementById("hdnScrumb").value;var b=strSiteUrl+"AjaxPage.aspx?ControlName=Vote";var f="VoteID="+a+"&AnswerID="+d+"&Lang="+e+"&WithVote="+h+"&crumbId="+g;var i;DoAjax_POST(b,f,c,c,"",i);}function AmwalInvest(a,b,d,c){DoAjax_GET(d+"AmwalInvestHeadlines.aspx?stockid="+a+"&Lang="+c,b);}
