<!--
function s()
{
	document.getElementById("submenu").style.display="block";
}
function h()
{
	document.getElementById("submenu").style.display="none";
}

function validateOrder()
{
	if(document.order1.fname.value=="")
	{
		alert("נא להכניס שם פרטי");
		document.order1.fname.focus();
		return false;
	}
		
	if(document.order1.lname.value=="")
	{
		alert("נא להכניס שם משפחה");
		document.order1.lname.focus();
		return false;
	}	
	if(document.order1.tz.value=="")
	{
		alert("נא להכניס תעודת זהות (רק מספרים)");
		document.order1.tz.focus();
		return false;
	}
	if(isNaN(document.order1.tz.value))
	{
		alert("נא להכניס תעודת זהות (רק מספרים)");
		document.order1.tz.focus();
		return false;
	}
											
	if(document.order1.tz.value.length<9)
	{
		alert("נא להכניס תעודת זהות 9 ספרות בלבד");
		document.order1.tz.focus();
		return false;
	}
	if(document.order1.address.value=="")
	{
		alert("נא להכניס כתובת למשלוח");
		document.order1.address.focus();
		return false;
	}										
	if(document.order1.phone.value=="")
	{
		alert("נא להכניס טלפון");
		document.order1.phone.focus();
		return false;
	}
				
	if(!validMail(document.order1.email.value))
	{
		alert("נא להכניס דוא\"ל לא תקין");
		document.order1.email.focus();
		return false;
	}
							
	var collection;
	collection = document.all["radio2"];
	for (i=0;i<collection.length;i++)
	{
		if (collection[i].checked)
			radiovalue=collection[i].value;
	}
	
	if(radiovalue=="card")
	{
		if(document.order1.cname.value=="")
		{
			alert("נא להכניס שם בעל הכרטיס");
			document.order1.cname.focus();
			return false;
		}
							
		if(document.order1.tzc.value=="")
		{
			alert("נא להכניס תעודת זהות");
			document.order1.tzc.focus();
			return false;
		}
							
		if(document.order1.cnum.value=="")
		{
			alert("נא להכניס מספר כרטיס(ספרות בלבד)");
			document.order1.cnum.focus();
			return false;
		}
							
		if(document.order1.cvv.value=="")
		{
			alert("נא להכניס המספר שמודפס בגב הכרטיס");
			document.order1.cvv.focus();
			return false;
		}
	}
	if(!document.all["tak"].checked)
	{
		alert("נא לסמן תנאי הרשמה");
		document.all["tak"].focus();
		return false;
	}															
	document.order1.submit();
	return true;
}
function cardshow()
{
	document.getElementById("a1").style.display="block";
	document.getElementById("a2").style.display="block";
	document.getElementById("a3").style.display="block";
	document.getElementById("a4").style.display="block";
}
function cardhide()
{
	document.getElementById("a1").style.display="none";
	document.getElementById("a2").style.display="none";
	document.getElementById("a3").style.display="none";
	document.getElementById("a4").style.display="none";
}
///////////////////////////////////////////////////



function del(id){window.location.href="basket_delitem.asp?id=" + id;}

function faq(id,el)
{
	if(document.getElementById(id).style.display=="none")
	{
		document.getElementById(id).style.display="block";
		el.className="faq-title-on";
	}	
	else
	{
		document.getElementById(id).style.display="none";
		el.className="faq-title";
	}	
}

function vieworder(sessionid){window.open("vieworder.asp?sessionid=" + sessionid,null,"width=750, height=550, scrollbars=1");}

function validNumber()
{
	if(event.keyCode < 48 || event.keyCode >57) event.keyCode=0;
}

function addToFavorites(url, sitename)
{
	window.external.AddFavorite(url,sitename);
}

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 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.phone.value=="")
	{
		alert("נא לרשום טלפון");
		document.contact.phone.focus();
		return false;
	}
	
	if(!validMail(document.contact.email.value))
	{
		alert("נא לרשום אי-מייל");
		document.contact.email.focus();
		return false;
	}	
	if(document.contact.note.value=="")
	{
		alert("נא לרשום שאל אותנו");
		document.contact.note.focus();
		return false;
	}	
	document.contact.submit();
	return true;
}
//-->
