function giveanswer(qn)
{
qn.style.display=qn.style.display == "none" ? "" : "none"
}

function popIt()
{
openWin = window.open("login.asp","myWindow","top=200,left=100, width=225, height=110, buttons=no,scrollbars=no,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
openWin.focus();
}

function checkItems(formobj)
{
	var quant = formobj.quantity.value
	if (isNaN(quant) == true || quant < 1 || quant > 20)
	{
		alert("Quantity has not been entered. ");
		formobj.quantity.focus();
		return false
	}else
	{
		return true;
	}
}

function validate(theForm){
	
	if (theForm.fname.value == "" || theForm.fname.value.length < 2){
		alert(". אנא מלא את שמך הפרטי");
		theForm.fname.focus();
		return false;
	}
	if (theForm.lname.value == "" || theForm.lname.value.length < 2){
		alert(". אנא מלא את שם משפחתך");
		theForm.lname.focus();
		return false;
	}
	if (theForm.address.value == "" || theForm.address.value.length < 3){
		alert(". אנא מלא את כתובתך");
		theForm.address.focus();
		return false;
	}
	if (theForm.town.value == "" || theForm.town.value.length < 2){
		alert(". אנא מלא את שמה המלא של עירך");
		theForm.town.focus();
		return false;
	}
	if (theForm.phone.value == "" || theForm.phone.value.length < 6){
		alert(". אנא מלא את הטלפון כולל קידומת");
		theForm.phone.focus();
		return false;
	}
	if (theForm.email.value == "" || theForm.email.value.indexOf('@',1)== -1 || theForm.email.value.indexOf('.',2)==-1){
		alert("אנא מלא את כתובת הדואר האלקטרוני");
		theForm.email.focus();
		return false;
	}
	if (theForm.pass.value == "" || theForm.pass.value.length < 5){
		alert(". אנא הכנס סיסמא בעלת חמש אותיות או ספרות");
		theForm.pass.focus();
		return false;
	}
theForm.SubmitNb.disabled=true;
theForm.SubmitNb.value='...אנא המתן';
return true;
}

function validateLogIn(theForm){
	if (theForm.email.value == ""){
		alert("אנא הכנס את כתובת האימייל");
		theForm.email.focus();
		return false;
	}

	if (theForm.strPassword.value == ""){
		alert(". אנא הכנס את הסיסמא");
		theForm.strPassword.focus();
		return false;
	}
	return true;
}

function validateSearch(theForm){
	if (theForm.str_Search.value == ""){
		alert("אנא הכנס את מילת החיפוש");
		theForm.str_Search.focus();
		return false;
	}
	return true;
}


var bookmarkurl="http://www.cyborg.co.il"
var bookmarktitle="סייבורג מחשבים"

function addbookmark()
{
	if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}