function moove(num){
	self.location="pictures.php?daf=" + num + "";	
	
}

function showVid(im){
	
	document.getElementById("videoEkran").innerHTML='<object id="vidPlay" style="border:double 4px brown;float:right;margin:5px 1px 5px 2px;" width="350" height="300" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="FileName" value="upload/' + im + '" /></object>';
}

function validValue(){

	if(document.myform.prname.value==""){
	alert("חובה למלא שדה עם שם");
	document.myform.prname.focus();
	return false;
	}
	
	if(document.myform.mobtel.value==""){
	alert("חובה למלא שדה עם נייד");
	document.myform.mobtel.focus();
	return false;
	}

	if(document.myform.email.value==""){
	alert("חובה למלא שדה עם דוא''ל");
	document.myform.email.focus();
	return false;
	}

	var ml=document.myform.email.value;
	if(ml.indexOf("@")==-1){
	alert("דוא''ל לא תקין");
	document.myform.email.focus();
	return false;
	}

	if(ml.indexOf(".")==-1){
	alert("דוא''ל לא תקין");
	document.myform.email.focus();
	return false;
	}
return true;
}

////////////////////////////////////////////////
function openClose(hez,ido){
	obj=document.getElementById(ido);
	obj.style.display=(obj.style.display=='none')? 'block':'none';
	
	objh=document.getElementById(hez);
	src=objh.src;
	asrc=src.split("/");
	nsrs=asrc[3]+ "/"+asrc[4];
	objh.src=(nsrs=='images/hez.gif')? 'images/hez_up.gif':'images/hez.gif';
}
/////////////////////////////////////////////////
var stoped=0;
function handleMusik(){
	if(document.getElementById("oPlay")){
		if(stoped==0){
			document.getElementById("oPlay").stop();
			stoped=1;
		}else{
			document.getElementById("oPlay").play();
			stoped=0;
		}
	}
}
///////////////////////////////////////////////////
//document.onkeydown=keyHit;
//function keyHit(evt){
//	thisKey=window.event.type;
//	alert("onkeydown:" +thisKey);
//	return false;
//}
///////////////////////////////////////////
document.onmousedown=mhandler;
	function mhandler(evt){
		
	if(window.event.button==2){
		alert("גישה לקליק ימני חסומה");
		event.returnValue= false;
		return false;
	}else{
		return true;
	}
}
////////////////////////////////
//document.onclick=keyEvent;

//function keyEvent(){
//	alert("onclickt: " + window.event.type);
//}
///////////////////////////////////////
//window.onclick=keyWindow;
//function keyWindow(){
//	alert("keyWindow: " + window.event.type);
//}
