﻿<!--
function cvv()
{
	window.open("cvv.htm", "mywindow","location=0,status=0,scrollbars=0,width=480,height=250");
}
function showInfo(id)
{
	window.location = "cooking_item.asp?id="+ id +"";
}

function nextm(dd) 
{ 
	jQuery.get( "ajax/calendar.asp", {d: dd}, 
				function(data){jQuery("#divACTIONS").html(data);}
			   ) 
} 


function xxxxxxxx(id_)
{
	$.get(
		 "get.asp",
		 {id: id_}, 
		 function(data){$("#example").html(data)}
		 )
}

// onkeypress="return validNumber(event)"
function validNumber(e)
{
	var ie = false;
	if(e.keyCode) ie = !ie;
	e	= window.event || e;
	key	= e.which || e.keyCode;
	if(key < 48 || key >57) 
	{
		if(ie)
			return false;
		else
			 return false;
	}
}

function addToFavorites(url, title) 
{ 

	if(window.sidebar) 
	{ 
		// Mozilla Firefox Bookmark		
		window.sidebar.addPanel(title, url,"");	
	} 
	else 
	{
		if(window.external) 
			{ 
				// IE Favorite		
				window.external.AddFavorite(url,title); 
			}	
		else 
			if(window.opera && window.print) 
			{ 
				// Opera Hotlist		
				return true; 
			} 
	}		
}

function validMail(strEmail) //if valid mail - return true
{
	var r, re;
	var email = new String(strEmail);
	re = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/ig;
	if(email.search(re)==0) 
		return true;
	else
		return false;	
}

function printflash(src, w, h)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" VIEWASTEXT>');
	document.write('<param name="movie" value="'+src+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="transparent">');
	document.write('</object>');	
}

function openclose(id)
{
	if(document.getElementById("_" + id).style.display=="none")
		document.getElementById("_" + id).style.display = "block";
	else
		document.getElementById("_" + id).style.display = "none";	
}
function sendpayment()
{
	if(document.pay.fname.value=="")
	{
		alert("נא להכניס שם פרטי");
		document.pay.fname.focus();
		return false;
	}
	
	if(document.pay.lname.value=="")
	{
		alert("נא להכניס שם משפחה");
		document.pay.lname.focus();
		return false;
	}
	if(document.pay.address.value=="")
	{
		alert("נא להניס כתובת");
		document.pay.address.focus();
		return false;
	}
		
	if(document.pay.cityname.value=="")
	{
		alert("נא להכניס עיר");
		document.pay.cityname.focus();
		return false;
	}
	
	if(document.pay.phone1.value=="")
	{
		alert("נא להכניס מספר טלפון");
		document.pay.phone1.focus();
		return false;
	}
	if(document.pay.email.value=="")
	{
		alert("נא להכניס אימייל");
		document.pay.email.focus();
		return false;
	}
	
	if(!validMail(document.pay.email.value))
	{
		alert("אימייל שגוי");
		document.pay.email.focus();
		return false;
	}	
	
	document.pay.action = "send_payment.asp"
	document.pay.submit();
	return true;
}
function paynow()
{
	if(document.pay.fname.value=="")
	{
		alert("נא להכניס שם פרטי");
		document.pay.fname.focus();
		return false;
	}
	
	if(document.pay.lname.value=="")
	{
		alert("נא להכניס שם משפחה");
		document.pay.lname.focus();
		return false;
	}
	if(document.pay.address.value=="")
	{
		alert("נא להניס כתובת");
		document.pay.address.focus();
		return false;
	}
		
	if(document.pay.cityname.value=="")
	{
		alert("נא להכניס עיר");
		document.pay.cityname.focus();
		return false;
	}
	
	if(document.pay.phone1.value=="")
	{
		alert("נא להכניס מספר טלפון");
		document.pay.phone1.focus();
		return false;
	}
	if(document.pay.email.value=="")
	{
		alert("נא להכניס אימייל");
		document.pay.email.focus();
		return false;
	}
	
	if(!validMail(document.pay.email.value))
	{
		alert("אימייל שגוי");
		document.pay.email.focus();
		return false;
	}
	document.pay.submit();
	return true;
}
function validform()
{
	if(document.contact.fname.value=="")
	{
		alert("נא להכניס שם פרטי");
		document.contact.fname.focus();
		return false;
	}
	
	if(document.contact.lname.value=="")
	{
		alert("נא להכניס שם משפחה");
		document.contact.lname.focus();
		return false;
	}
	
	if(document.contact.id.value=="")
	{
		alert("נא להכניס ת.ז.");
		document.contact.id.focus();
		return false;
	}
	
	if(document.contact.email.value=="")
	{
		alert("נא להכניס אימייל");
		document.contact.email.focus();
		return false;
	}
	
	if(!validMail(document.contact.email.value))
	{
		alert("אימייל שגוי");
		document.contact.email.focus();
		return false;
	}	
	
	if(document.contact.city.value=="")
	{
		alert("נא להכניס עיר");
		document.contact.city.focus();
		return false;
	}
	
	if(document.contact.phone.value=="")
	{
		alert("נא להכניס מספר טלפון");
		document.contact.phone.focus();
		return false;
	}
	
	document.contact.submit();
	return true;
}
function searchrecipes()
{
	document.searchr.submit();
	return true;
}
function searchallr()
{
	document.search_allr.submit();
	return true;
}

function validform()
{
	if(document.contact.fullname.value=="")
	{
		alert("נא הכנס שם מלא");
		document.contact.fullname.focus();
		return false;
	}
	
	if(document.contact.phone.value=="")
	{
		alert("נא להכניס מספר טלפון");
		document.contact.phone.focus();
		return false;
	}
	
	if(!validMail(document.contact.email.value))
	{
		alert("אימייל שגוי");
		document.contact.email.focus();
		return false;
	}	
	
	document.contact.submit();
	return true;
}

//-->
