<!--
function xxxxxxxx(id_)
{
	$.get(
		 "get.asp",
		 {id: id_}, 
		 function(data){$("#example").html(data)}
		 )
}


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;
}
//-->
