	
// חסימת לחצן ימני
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==1||e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

// שלח לחבר כרטיס העסק
function sendbizlinktofriends(BIZid)
{
newWindowsend = window.open('http://2biz.co.il/sendLinkToFriends.asp/link/http:^^2biz.co.il^bizinfo' + BIZid + '.html', 5, 'toolbar=0,location=0, directories=0, status=0, menubar=0, scrollbars=0,resizable=0, width=360, height=360, left=100, top=100'); 
newWindowsend.focus();
}

// הוספת המלצה לעסק
function addbizreview(BIZid)
{
newWindowagb = window.open('http://2biz.co.il/bizAddReview.asp/BIZ/' + BIZid, 6, 'toolbar=0,location=0, directories=0, status=0, menubar=0, scrollbars=0,resizable=0, width=460, height=500, left=100, top=100'); 
newWindowagb.focus();
}

// בדיקת טופס קשר בדף bizinfo
function checkform(f)
	{
		var bool=false;

			if(f.contact_name.value=='')
			{
				alert('נא למלא שם פרטי ומשפחה');
				f.contact_name.focus();
			}
			else if(!CheckEmail(f.contact_email.value))
			{
				alert('נא למלא כתובת דואר אלקטרוני חוקית');
				f.contact_email.focus();
			}
			else if(f.Prephone.value=='0')
			{
				alert('נא לבחור קידומת טלפון');
				f.Prephone.focus();
			}
			else if(f.contact_phone.value.length < 6)
			{
				alert('נא למלא טלפון');
				f.contact_phone.focus();
			}
			else if(f.contact_message.value=='')
			{
				alert('נא למלא את ההודעה');
				f.contact_message.focus();
			}
			else
			{		
				bool=true
			}
		return bool;
	}