<!--
var boxText = "לפי שם המוצר";


function setPayments(id,flag)
{
	window.location.href="setPayments.asp?id=" + id + "&flag=" + flag;
}

function hideText(obj) {
      if (obj.value == boxText) {
            obj.value = "";
      }
}



function requery(currentpage,category)
{
	document.form13.currentpage.value=currentpage;
	document.form13.category.lenght=category;
	document.form13.submit();
}
function openclose(id)
{
	if(document.getElementById(id).style.display=="none")
		document.getElementById(id).style.display="";
	else
		document.getElementById(id).style.display="none";	
}
function vieworder(id){window.open("vieworder.asp?id=" + id,null,"width=800, height=600, scrollbars=1");}

function enlarge(id){window.open("users.asp?category=" + id,null,"width=511, height=160, scrollbars=0");}

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 addtocart1()
{
	document.formadd1.submit();
}
function addtocart()
{
	document.formadd.submit();
}
function validform()
{
	if(document.contact.fname.value=="")
	{
		alert("נא לרשום שם");
		document.contact.fname.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;
}
function cardshow()
{
for(var i=0;document.getElementsByName("tdcard").length > i ;i++)
	document.getElementsByName("tdcard").item(i).style.display="";
}
function cardhide()
{
for(var i=0;document.getElementsByName("tdcard").length > i ;i++)
	document.getElementsByName("tdcard").item(i).style.display="none";
}

function deleteItem(id)
{
	if(window.confirm("?אתה בטוח שברצונך למחוק"))
		window.location.href="deleteItem.asp?id=" + id;
}

function plus(id)
{
	var collection="quantity" + id;
	document.all[collection].value=parseInt(document.all[collection].value) + 1;
}
					
function minus(id)
{
	var collection="quantity" + id;
	if(parseInt(document.all[collection].value)>1)
		document.all[collection].value=parseInt(document.all[collection].value) - 1;
}

function updateQ(id,name)
{
	var collection="quantity" + name;
	if(document.all[collection].value!="")
		window.location.href="basketUpdateQ.asp?id=" + id + "&quantity=" + document.all[collection].value;
}

//////////////////
function validenter()
{
	if(document.form11.uname.value=="" || document.form11.uname.value=="הכנס שם")
	{
	alert("נא לרשום שם");
	document.form11.uname.focus();
	return false;
	}
	if(document.form11.pass.value=="")
	{
	alert("נא לרשום סיסמא");
	document.form11.pass.focus();
	return false;
	}
	
	document.form11.submit();
	return true;
}

function validuser()
{
	
	document.contact.submit();
	return true;
}
//-->