//document.location="http://www.haza.co.il/";




var curlight

// preload 
var pica = new Array();
var picb  = new Array();
for(i=1;i<=12;i++) {
	pica[i] = new Image();
	picb[i] = new Image();
	pica[i].src = "images/navs/nav"+i+".gif";
	picb[i].src = "images/navs/nav"+i+"on.gif";
}
	
function over(which) {
theImage = eval("document.nav" + which);
if (which!=curlight) theImage.src = "images/navs/nav"+which+"on.gif";
}

function out(which) {
theImage = eval("document.nav" + which);
if (which!=curlight) theImage.src = "images/navs/nav"+which+".gif";
else theImage.src = "images/navs/nav"+which+"on.gif"; 
}

function light(which) {
theImage = eval("document.nav" + which);
theImage.src = "images/navs/nav"+which+"on.gif";
curlight = which;
}



function validate(theForm) {
if (theForm.name.value == "") {
	alert("נא למלא שם");
	theForm.name.focus();
	return (false);
	}
if (theForm.email.value == "") {
	alert("נא למלא כתובת אימייל");
	theForm.email.focus();
	return (false);
	}
if (theForm.email.value.indexOf("@")<1 || theForm.email.value.indexOf(".")<1) {
	alert("נא למלא כתובת אימייל תקינה");
	theForm.email.focus();
	return (false);
	}
if (theForm.comments.value == "") {
	alert("נא למלא הודעתך");
	theForm.comments.focus();
	return (false);
	}
return (true);
}



function openVideo(which) {
window.open("videoPlayer.asp?file="+which,"videoPlayer","width=500,height=560,top=50,left=50,resizable=no");
}

function openAudio(which,desc) {
window.open("audioPlayer.asp?file="+which+"&desc="+desc,"audioPlayer","width=300,height=200,top=50,left=50,resizable=no");
}

function openRadio(which,desc) {
window.open("radioPlayer.asp?file="+which+"&desc="+desc,"audioPlayer","width=300,height=240,top=50,left=50,resizable=no");
}