function QbDcTEST(s){var d=s.options[s.selectedIndex].value;if(d==''){alert('Please select Section to view videos');return}else{location.href=d}}var imgPreload=new Array();var StarTitle=new Array();var star=new Array();var OrigClass=new Array();var AddRateAction=0;var ResetStarsTime;var StarText,OrigStarText;StarTitle[1]='ضعيف';StarTitle[2]='مقبول';StarTitle[3]='متوسط';StarTitle[4]='جيد';StarTitle[5]='ممتاز';for(i=1;i<=5;i++){star[i]=document.getElementById('star'+i);OrigClass[i]=star[i].className}OrigStarText=document.getElementById('StarText').innerHTML;function showstars(a){if(AddRateAction==0){for(i=1;i<=a;i++){star[i].className='activestar'}for(i=a+1;i<=5;i++){star[i].className='inactivestar'}clearTimeout(ResetStarsTime);document.getElementById('StarText').innerHTML=StarTitle[a]}}function clearstars(){if(AddRateAction==0){ResetStarsTime=setTimeout('Reststars()',300)}}function Reststars(){for(i=1;i<=5;i++){star[i].className=OrigClass[i]}document.getElementById('StarText').innerHTML=OrigStarText}function AddPhotoRate(a,b,c){if(AddRateAction==0){if(document.images){(new Image()).src='//galileosm.galileosolutions.net/galileosm/videos/add_rate.asp?Rate='+a+'&ID='+b+'&t='+c+''}for(i=1;i<=a;i++){star[i].className='activestar'}for(i=a+1;i<=5;i++){star[i].className='inactivestar'}document.getElementById('StarText').innerHTML='شكراً لترشيحك';AddRateAction=1;return false}}