   <!--   
   var emptyString = /^\s*$/

	// -----------------------------------------
	//  Trim leading/trailing whitespace off string
	// -----------------------------------------
	function trim(str)
	{
	return str.replace(/^\s+|\s+$/g, '')
	};
	
	String.prototype.trim = function()
	{
		// Use a regular expression to replace leading and trailing 
		// spaces with the empty string
		return this.replace(/(^\s*)|(\s*$)/g, "");
	}	
	
	function chkEmail(field_name, ifld)
	{
		if (window.document.getElementById(field_name).value != "")
		{
			var reemail = new RegExp(/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/);
			var m = reemail.exec(window.document.getElementById(field_name).value);
			if (!m)
			{
				document.getElementById(ifld).innerText = "אנא מלא/' כתובת דואר אלקטרוני חוקית"
				window.document.getElementById(ifld).style.display = "inline";
				return false;				
			}
			else
			{
				document.getElementById(ifld).innerText = "";
				window.document.getElementById(ifld).style.display = "none";
				return true;
			}
		}
		return false;
	}

	function chkReqField(field_name, ifld)
	{
		if (window.document.getElementById(field_name).value == "" && !window.document.getElementById(field_name).disabled)
		{
			document.getElementById(ifld).innerHTML = "שדה חובה";
			window.document.getElementById(ifld).style.display = "";
			document.getElementById(field_name).focus();
			return false;				
		}
		else
		{
			document.getElementById(ifld).innerText = "";
			window.document.getElementById(ifld).style.display = "none";
			return true;
		}	
	}
	
	function chkRadioField(field_name, ifld)
	{
			var is_checked = false;
			var arr_radio = document.getElementsByName(field_name);
			if(arr_radio)
			{
				for(i=0;i<arr_radio.length;i++)
				{					
					if(arr_radio.item(i).checked == true)
					{
						is_checked = true;
						break;
					}
				}					
			}
			
			if(is_checked)
				window.document.getElementById(ifld).style.display = "none";
			else
				window.document.getElementById(ifld).style.display = "block";	
			
			return is_checked;
		}	

	function createXMLHttp() {

		if(window.XMLHttpRequest) 
		{
			try { return new XMLHttpRequest();
			} catch(e) { return false; }
		} else if(window.ActiveXObject) {
			try { return new ActiveXObject('Msxml2.XMLHTTP');
			} catch(e) {
			try { return new ActiveXObject('Microsoft.XMLHTTP');
			} catch(e) { return false; }
		} 
		}
	}

	
function chkPhoneNum(field_name, ifld) 
{
		var vfld = window.document.getElementById(field_name);
		var tfld = trim(vfld.value);  // value of field with whitespace trimmed off
		document.getElementById(ifld).style.display="none";
		
		var telnr = /^\+?[0-9 ()-]+[0-9]$/
		if (!telnr.test(tfld)) 
		{
			document.getElementById(ifld).style.display="block";
			document.getElementById(ifld).innerText = "ERROR: not a valid telephone number. Characters permitted are digits, space ()- and leading +";
			vfld.focus();
			return false;
		}

		var numdigits = 0;
		for (var j=0; j<tfld.length; j++)
			if (tfld.charAt(j)>='0' && tfld.charAt(j)<='9') numdigits++;

		if (numdigits<5) {
			document.getElementById(ifld).style.display="block";
			document.getElementById(ifld).innerText = "ERROR: " + numdigits + " digits - too short";
			vfld.focus();
			return false;
		}

		if (numdigits>14)
		{
			document.getElementById(ifld).style.display="block";
			document.getElementById(ifld).innerText = numdigits + " digits - check if correct";
		}	
		else { 
			if (numdigits<5)
			{
				document.getElementById(ifld).style.display="block";
				document.getElementById(ifld).innerText = "Only " + numdigits + " digits - check if correct";
			}	
			else
			{
				document.getElementById(ifld).style.display="block";
				document.getElementById(ifld).innerText = "check if correct";
			}	
  }
  return true;
};

function getNumbers(e)
{
	if( typeof( e ) == "undefined" && typeof( window.event ) != "undefined" )
		e = window.event;
	
	var ch = e.keyCode? e.keyCode : e.charCode;
	
	//window.alert(ch)

	if( typeof( e.preventDefault ) == "undefined")
		e.returnValue = ((ch >= 48 && ch <= 57) || ch ==46 || ch ==8);
	else if (((ch >= 48 && ch <= 57) || ch ==46 || ch ==8) == false)
		e.preventDefault();
}

function GetNumbersAndLetters(e)
{
	if( typeof( e ) == "undefined" && typeof( window.event ) != "undefined" )
		e = window.event;
	
	var ch = e.keyCode? e.keyCode : e.charCode;

	if( typeof( e.preventDefault ) == "undefined")
		e.returnValue = ((ch >= 45 && ch <= 57) || (ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122));
	else if (((ch >= 45 && ch <= 57) || (ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122)) == false)
		e.preventDefault();
}

function GetNumbersAndLettersHeb(e)
{
	if( typeof( e ) == "undefined" && typeof( window.event ) != "undefined" )
		e = window.event;
	
	var ch = e.keyCode? e.keyCode : e.charCode;

	if( typeof( e.preventDefault ) == "undefined")
		e.returnValue = ((ch >= 45 && ch <= 57) || (ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122));
	else if (((ch >= 45 && ch <= 57) || (ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122)) == false)
		e.preventDefault();
}

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
//var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
//alert(message);
showCopyRight();
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
//alert(message);
showCopyRight();
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu = new Function("showCopyRight();return false")

document.ondragstart = function(e) {  
  
return false;  
  
}  
  
// Mozilla/Firefox  
  
document.onmousedown = function(e) {  
  
if (e && e.preventDefault) {  
  
var t = e.target;  
  
var nName = t.nodeName.toLowerCase();  
  
if (nName == "img") {  
  
e.preventDefault();  
  
return false;  
  
}  
  
while (t) {  
  
if (t.nodeName == "a") {  
  
e.preventDefault();  
  
return false;  
  
}  
  
t = t.parentNode;  
  
}  
  
}  
  
}  


function hideCopyRight()
{
	document.getElementById("CopyRight").style.display="none";
}

function showCopyRight(e)
{
	if( typeof( e ) == "undefined" && typeof( window.event ) != "undefined" )
		e = window.event;

	document.getElementById("CopyRight").style.left= (window.screen.availWidth - 780 - 20) / 2 + 390 - 150;
	if( typeof( e ) == "undefined")
		document.getElementById("CopyRight").style.top= document.body.scrollTop + 100;
	else
		document.getElementById("CopyRight").style.top= e.y+document.body.scrollTop - 100;	
	//window.event.y+document.body.scrollTop - 100
	document.getElementById("CopyRight").style.display="block";
	///window.alert(document.getElementById("CopyRight").style.top)
	return true;
}

function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.round(num).toString();
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + num );
}

//-->
