	var urlThumbUp = "http://opinion.showme.co.il/results/global/thumbup/default.asp"
	var TUamcount=0;
	
	function thumbUpForComment(ic, wid, sid, acount){
		if(TUamcount==0){
			getInfo(urlThumbUp + '?ic=' + ic + '&i=' + sid + '&acount=' + acount + '&w=' + wid,"block","thumbup"+ic);
			OpenOptions('i_thisThumbup'+ic);
		}
	//	TUamcount++;
	}
	
	function disapp(dis_id){ 
	dis_id.style.display = "none";
	} 

	function appdiv(dis_id){ 
	dis_id.style.display = "block";
	} 
	

	function AddIcon1(area){
		area.focus();
		area.value += "[הדגש]";
	}

	function AddIcon2(area){
		area.focus();
		area.value += "[סדגש]";
	}

	function FormsAdd(some){
		if (some.value == ""){
				 some.value = "לא חובה למלא שדה זה";
				 some.className="reg_inpt_blur";
				 } else {
				 some.className='reg_inpt_focus';
		}	
	}

	function FormsAdds(some){
		if (some.value == "לא חובה למלא שדה זה"){
		some.value='';
		}
		some.className='reg_inpt_focus';
	}

	function rateValue(id){
		AddForm.rates.value=id;
	}
	

	function disdiv(dis_id){ 
	dis_id.style.display = dis_id.style.display == "none" ? "" : "none" 
	} 

	function commentUnMarkAll(id){
				// reset stars
		for (i=1;i<=5;i++){
			document.getElementById(id.substring(0,id.length-1) + i).src = "http://opinion.showme.co.il/results/includes/_overstar.gif";
		}	
				// make stars
		for (i=1;i<=AddForm.rates.value;i++){
			document.getElementById(id.substring(0,id.length-1) + i).src = "http://opinion.showme.co.il/results/includes/_star.gif";
		}
	}
	
	function markStars(id){
		for (i=1;i<=5;i++){
			document.getElementById(id.substring(0,id.length-1) + i).src = "http://opinion.showme.co.il/results/includes/_overstar.gif";
		}
		
		var basicId = id.substring(0,id.length-1);
		for (i=1;i<=id.substring(id.length-1,id.length);i++){
			document.getElementById(basicId + i).src = "http://opinion.showme.co.il/results/includes/_star.gif";
		}
	}


	function unMarkAlls(id){
				// reset stars
		for (i=1;i<=5;i++){
			document.getElementById(id.substring(0,id.length-1) + i).src = "http://opinion.showme.co.il/results/includes/_overstar.gif";
		}	
	}

			var xmlHttp
			var GlobalNowResponse = 0;

			function getInfo(url,type,name)
			{
				xmlHttp=GetXmlHttpObject()

				if (xmlHttp==null){
					alert ("Browser does not support HTTP Request")
					return
				} 

				xmlHttp.onreadystatechange = function(){updateInfo(type,name);}
				xmlHttp.open("GET",url,true)
				xmlHttp.send(null);
			} 

			function updateInfo(type,name){
				if (xmlHttp.readyState==4){
					if (xmlHttp.status==200){
						if (type == "block"){
							document.getElementById(name).innerHTML = "<span style='font-size: 13px;font-weight: bold;'>Loading</span>";
							
							document.getElementById(name).innerHTML = unescape(xmlHttp.responseText);
							return (null);
						} else if (type == "global"){
							name = unescape(xmlHttp.responseText);
						} else if (type == "variable"){
							
						} else {
							return (null);
						}
					}
				}
			} 

			function GetXmlHttpObject()
			{ 
				var objXMLHttp=null
				if (window.XMLHttpRequest) {
					objXMLHttp=new XMLHttpRequest()
				} else if (window.ActiveXObject) {
					objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
				}
				return objXMLHttp
			}
			
			function CloseResponse(){
				ShowResponse(GlobalNowResponse);
			}
			function ShowResponse(id,url,type,name){

				if (id == GlobalNowResponse){
					document.getElementById("NowResponse").style.display = "none";
					document.getElementById("NowResponseContent").style.display = "none";
					document.getElementById("NowResponseClose").style.display = "none";
					GlobalNowResponse = 0;
				} else {
					GlobalNowResponse = id;
					if (document.getElementById("response_title_" + GlobalNowResponse)){
						getInfo(url,type,name);
						var obj = document.getElementById(name);
						document.getElementById("NowResponse").style.display = "block";
						document.getElementById("NowResponseContent").style.display = "block";
						document.getElementById("NowResponseClose").style.display = "block";
					} else {
						
					}
				}
			}