<!--



function validorder()
{
	if(document.order.deliverydate.value=="")
	{
		alert("נא לרשום תאריך למשלוח");
		document.order.deliverydate.focus();
		return false;
	}
	if(document.order.rfullname.value=="")
	{
		alert("נא לרשום שם ומשפחה (מרקבל המשלוח)");
		document.order.rfullname.focus();
		return false;
	}	
	if(document.order.rstreet.value=="")
	{
		alert("נא לרשום רחוב");
		document.order.rstreet.focus();
		return false;
	}
	if(document.order.rstreetnum.value=="")
	{
		alert("נא לרשום מספר");
		document.order.rstreetnum.focus();
		return false;
	}
	/*
	if(document.order.rapp.value=="")
	{
		alert("נא לרשום קומה/דירה");
		document.order.rapp.focus();
		return false;
	}
	*/
	if(document.order.rcity.value=="")
	{
		alert("נא לרשום עיר");
		document.order.rcity.focus();
		return false;
	}
	if(document.order.rphone.value=="")
	{
		alert("נא לרשום טלפון המקבל");
		document.order.rphone.focus();
		return false;
	}
	if(document.order.fullname.value=="")
	{
		alert("נא לרשום שם פרטי ומשפחה");
		document.order.fullname.focus();
		return false;
	}
	if(!validMail(document.order.email.value))
	{
		alert('נא לרשום דוא"ל');
		document.order.email.focus();
		return false;
	}
	if(document.order.phone.value=="")
	{
		alert("נא לרשום טלפון");
		document.order.phone.focus();
		return false;
	}
	if(document.order.tz.value=="")
	{
		alert("נא לרשום תעודת זהות");
		document.order.tz.focus();
		return false;
	}
	if(isNaN(document.order.tz.value))
	{
		alert("נא לרשום תעודת זהות");
		document.order.tz.select();
		return false;
	}
	if(document.order.cardnum.value=="")
	{
		alert("נא לרשום מס' כרטיס");
		document.order.cardnum.focus();
		return false;
	}
	if(document.order.exp.value=="")
	{
		alert("נא לרשום תוקף הכרטיס");
		document.order.exp.focus();
		return false;
	}
	if(document.order.cvv.value=="")
	{
		alert("נא לרשום 3 ספרות אחרונות");
		document.order.cvv.focus();
		return false;
	}
	/*if(document.order.xxxxxx.value=="")
	{
		alert("נא לרשום xxxxxx");
		document.order.xxxxxx.focus();
		return false;
	}*/
	document.order.submit();
	return true;
}

function setdelivery(id)
{
	window.location.href="setdelivery.asp?id=" + id;
}
function settip(price)
{
	window.location.href="settip.asp?price=" + price;
}

function deleteI(id)
{
	if(window.confirm("אתה בטוח שברצונך למחוק ?"))
		window.location.href = "itemdelete.asp?id=" + id;
}
function updateq(id)
{
	window.location.href = "updateq.asp?id=" + id + "&q=" + document.getElementById("q" + id).value;
}
function xxxxxxxx()
{
	var xmlHttp;
	try
    {    // Firefox, Opera 8.0+, Safari    
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
    {    // Internet Explorer    
		try
			{
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
				try
				{
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e)
				{
					alert("Your browser does not support AJAX!");
					return false;
				}      
		    }
    }
	xmlHttp.onreadystatechange=function()
    {
		if(xmlHttp.readyState==4)
        {
			document.getElementById("wwwwwww").innerHTML = xmlHttp.responseText;			
        }
    }
    xmlHttp.open("GET","xxxxxx.asp",true);
    xmlHttp.send(null); 
}


function validNumber()
{
	if(event.keyCode < 48 || event.keyCode >57) event.keyCode=0;
}

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 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(document.contact.email.value=="")
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}
	
	if(!validMail(document.contact.email.value))
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}	
	
	document.contact.submit();
	return true;
}
function validformS()
{
	if(document.contact.title.value=="")
	{
		alert("נא לרשום שם");
		document.contact.title.focus();
		return false;
	}
	
	if(document.contact.message.value=="")
	{
		alert("נא לרשום תגובה");
		document.contact.message.focus();
		return false;
	}	
	document.contact.submit();
	return true;
}

//-->
