function checkAll(){
			if (document.searchForm.searchWhatWeb.selectedIndex==0){
				document.location="http://www.google.co.il/search?hl=iw&q="+document.searchForm.word.value+"&meta="
				return false;
				//document.searchForm.submit();
			}
			if (document.searchForm.searchWhatWeb.selectedIndex==1){
				document.location="http://images.google.co.il/images?svnum=10&um=1&hl=iw&q="+document.searchForm.word.value
				return false;
				//document.searchForm.submit();
			}
			if (document.searchForm.searchWhatWeb.selectedIndex==2){
				document.location="http://video.search.yahoo.com/search/video?p="+document.searchForm.word.value+"&fr=yfp-t-471&toggle=1&cop=mss&ei=UTF-8"
				return false;
				//document.searchForm.submit();
			}
			//if (document.searchForm.searchWhatWeb.selectedIndex==3 && document.searchForm.searchIn[1].checked){
			//	document.location="	http://search.live.com/results.aspx?q="+document.searchForm.word.value+"&go=&form=QBRE"
			//	return false;
			
			//}
		}
	
		
		
function doInsert(theChar){
	document.searchForm.word.value=document.searchForm.word.value+theChar
	x1.focus()
	}
function doDelete() {
	 se=document.searchForm.word.value
	document.searchForm.word.value=se.slice(0,-1)
	}
	
		
function doInsert2(theChar){
	document.siteSearchForm.word.value=document.siteSearchForm.word.value+theChar
	x1.focus()
	}
function doDelete2() {
	se=document.siteSearchForm.word.value
	document.siteSearchForm.word.value=se.slice(0,-1)
	}
	
	
function chengeDisabled(){
	if (document.searchForm.searchIn[0].checked){
		document.searchForm.searchWhatWeb.disabled=false;
		document.searchForm.searchWhat.disabled=true;
	}else{
		document.searchForm.searchWhatWeb.disabled=true;
		document.searchForm.searchWhat.disabled=false;
	}

}

function switchActionforTsofarSearch(){
	if (document.siteSearchForm.searchWhat.selectedIndex==0){
		document.siteSearchForm.action="http://www.tsofar.com/zofar/searchAll.asp"
	}else{
		document.siteSearchForm.action="http://www.tsofar.com/zofar/search.asp"
	}
return true;
}
			function checkMail(){
		email=document.f3.email.value
		//alert(email)
		var Theflag
		Theflag=1;
		if (email.split("@").length!=2){
			err="כתובת דואר לא חוקית"
			Theflag=0
			
			/*if (email.split("@")[1].length<2){
				err="כתובת דואר לא חוקית"
				Theflag=0
			}*/
		}
		
		if (Theflag==0){
			alert(err)
			return false
		}
		return true
	}
	
	function openHoly(idd){
			o=open("../../zofar/holy_flash.asp?id="+ idd,"","width=450,height=380,top=150,left=200,scrollbars=yes")
	}
	
	////////////////////////////////////////////////////////////////////
	function switchNewsFlash(id,num){
	///alert(document.all("flashIconTd").length)
		codeIframe.document.location="http://www.tsofar.com/zofar/switchNewsFlashes.asp?id=" +id;
		for (i=0;i<=document.all("flashIconTd").length-1;i++){
			document.all("flashIconTd")[i].className="UnselectedNewsflash";
		}
		document.all("flashIconTd")[num].className="selectedNewsflash";
	}
	function changeScroll(num){
		document.all("flashContent").scrollAmount=num
	}
///////////////////////////////////////////////////////////////////////////////////