function showHideTable(menuId){
	var obj=document.getElementById(menuId)
    obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}


function checkEmailist()
{
	var name = document.emailist.name.value;
	var email = document.emailist.email.value;
	var valid_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if(name.length == 0){
		alert("אנא הכנס את שמך הפרטי");
		return false;
	}
	if(email.length == 0 || !valid_mail.test(email)){
		alert("אנא הכנס אימייל תקין");
		return false;
	}
	return true;
}


var timer=new Array();
var browser = navigator.appName;
var ver=0;
if(browser=="Netscape")
	ver=1;
function scroller(asd,updown,aaa){
	var thediv=document.getElementById(asd);
	if(updown==1){
		var thehight=thediv.childNodes[ver].offsetHeight-parseInt(thediv.style.height);
		if(aaa==1)
			thediv.scrollTop=thehight;
		aaa=0;
		if(thediv.scrollTop==0)
			thediv.scrollTop=thehight;
		thediv.scrollTop=thediv.scrollTop-1;
	}else{
		if(aaa==document.getElementById(asd).scrollTop)
			thediv.scrollTop=0;
		aaa=thediv.scrollTop;
		thediv.scrollTop=thediv.scrollTop+1;
	}
		timer[asd]=setTimeout("scroller('"+asd+"',"+updown+","+aaa+")",35);
}
function stopscroller(asd2){
			clearTimeout(timer[asd2]);
}

