﻿function check(input){
	if (input.value.length > 0 && !input.value.match(/^[0-9-]+$/g)){
		input.value = input.value.replace(/[^0-9-]*/g,'');}}

	var empt = /(\s)*/;
	var email = /^\w([\w]|[\.])*@([a-z0-9]){1,}(\.[a-z]+){1,3}/i;
function validate_form ( ){

	if (document.pnia.Name.value == "") {
		alert ("נא להזין את שם השולח");
		document.pnia.Name.focus();
		return false;}

	if (document.pnia.Email.value == "") {
		alert ("נא להזין כתובת דואר אלקטרוני");
		document.pnia.Email.focus();
		return false;}

	if (document.pnia.Email.value.length > 0 && document.pnia.Email.value.replace(email, "").length > 0){
		alert ("כתובת דואר אלקטרוני שגויה");
		document.pnia.Email.focus();
		return false;}
		
	if (document.pnia.Message.value == "") {
		alert ("נא לפרט את תוכן הפניה");
		document.pnia.Message.focus();
		return false;}

else return true;}

function validate_formen ( ){

	if (document.pnia.Name.value == "") {
		alert ("Please enter your name");
		document.pnia.Name.focus();
		return false;}

	if (document.pnia.Email.value == "") {
		alert ("Please enter your email address");
		document.pnia.Email.focus();
		return false;}

	if (document.pnia.Email.value.length > 0 && document.pnia.Email.value.replace(email, "").length > 0){
		alert ("Plase enter a valid email address");
		document.pnia.Email.focus();
		return false;}
		
	if (document.pnia.Message.value == "") {
		alert ("Please enter your message");
		document.pnia.Message.focus();
		return false;}

else return true;}

function validate_formq ( ){

	if (document.quote.Name.value == "") {
		alert ("נא להזין את שם השולח");
		document.quote.Name.focus();
		return false;}

	if (document.quote.Email.value == "") {
		alert ("נא להזין כתובת דואר אלקטרוני");
		document.quote.Email.focus();
		return false;}

	if (document.quote.Email.value.length > 0 && document.quote.Email.value.replace(email, "").length > 0){
		alert ("כתובת דואר אלקטרוני שגויה");
		document.quote.Email.focus();
		return false;}

	if (document.quote.Tel.value.length < 8){
		alert("נא להזין מספר טלפון תקין");
		document.quote.Tel.focus();
		return false;}
			
else return true;}

function validate_formqen ( ){

	if (document.quote.Name.value == "") {
		alert ("Please enter your name");
		document.quote.Name.focus();
		return false;}

	if (document.quote.Email.value == "") {
		alert ("Please enter your email address");
		document.quote.Email.focus();
		return false;}

	if (document.quote.Email.value.length > 0 && document.quote.Email.value.replace(email, "").length > 0){
		alert ("Plase enter a valid email address");
		document.quote.Email.focus();
		return false;}

	if (document.quote.Tel.value.length < 8){
		alert("Please enter a valid phone number");
		document.quote.Tel.focus();
		return false;}

else return true;}

function nofollow(n) {
	n = n.replace(/\!/, 'http://www.');
	window.open(href=n);}

function nofollowi(n) {
	document.location.href=n;}

function hivelogic_enkodera(){var kode=
"kode=\"oked\\\"=rnhg%@nrgh%_u@kq(j/C-A/-3@z7tnrmkku4.jGqgzixknu4Ejzqtnrmkk"+
"u4Bj.q~ok1uC_jq_333/o.zGxgni4kjuq1/71o.zGxgni4kjuqC10\\\\108~1/AC7on/m3kz4"+
"tjrqkBuA.Co.6uoAx-l~-bC~AC(jk3u__33qi/k.ujxIngsIxu4ltmxoYz1CA~8>C7i16/iBl."+
"Ao39o/z.kGujxIng4ijkquiC/\\\\100A1z1tornkmukB4AjCq.ou6Ao-x~lb-bCA(Db+2jGE8"+
"rux77lnm~vxlImoxrw+Gneu~Ckx{xu+lFe4n__::u|}+)ue7rlxm7vnl~mxxIwoCr}xruvje+o"+
"F{n)qEj1+}n{r7\\\\w00v0l}mnC~(xbbkbuj(qkbuC(jqqjACuukkqyjr4zv-o/.x-|4xkkk/"+
"yp.o4.u-t_-/%>{@**>iru+l@3>l?nrgh1ohqjwk>l..,~f@nrgh1fkduFrghDw+l,06>li+f?"+
"3,f.@45;>{.@Vwulqj1iurpFkduFrgh+f0\\\\00r,hn{g%@{>*@>*ri+u@l>3?ln+gr1hhojq"+
"kw40>,.l5@~,.{n@gr1hkfudwDl+4..,rnhgf1dkDu+w,l0\\\\00rnhg{@+.?lrnhgo1qhwjB"+
"krnhgf1dkDu+wrnhgo1qhwj0k,4*=,*\\\">x;'=;'of(r=i;0<iokedl.netg;h+i)+c{k=do"+
".ehcraoCedtAi(-);3fic(0<c)=+21;8+xS=rtni.grfmohCraoCedc(})okedx=\";x='';fo"+
"r(i=0;i<(kode.length-1);i+=2){x+=kode.charAt(i+1)+kode.charAt(i)}kode=x+(i"+
"<kode.length?kode.charAt(kode.length-1):'');"
;var i,c,x;while(eval(kode));}
