﻿function verifyContact(page) {
	if (page=="index")
	{
		email=document.contactIndex.email.value;
		name=document.contactIndex.name.value;
		 if ((name.length<3)||(name=="שם")||(email.indexOf("@")<3)||(email=='דוא"ל'))
			 alert("הנתונים שמסרת אינם נכונים!\r"+" נסה/י שוב.");
		 else
		 	window.open('result.php?name='+name+'&email='+email,'sendContactLdbiostAts','width=320,height=320,top='+(screen.height-320)/2+',left='+(screen.width-320)/2+',toolbar=false,scrollbars=false');
	}
	else
	{
		email=document.contact.email.value;
		name=document.contact.name.value;
		phone=document.contact.phone.value;
		city=document.contact.city.value;
		 if ((name.length<3)||(name=="שם")||(email.indexOf("@")<3)||(phone.length<7)||(phone=="טלפון")||(city.length<3)||(city=="עיר"))
		 	alert("הנתונים שמסרת אינם נכונים!\r" +" נסה/י שוב.");
		 else
		 	window.open('result.php?name='+name+'&email='+city+'&city='+email+'&phone='+phone,'sendContactLdbiostAts','width=320,height=320,top='+(screen.height-320)/2+',left='+(screen.width-320)/2+',toolbar=false,scrollbars=false');

	}
	return false;
}
function zoom(image) {
 	window.open('details.php?image='+image,'','width=320,height=320,top='+(screen.height-320)/2+',left='+(screen.width-320)/2+',toolbar=false,scrollbars=false');
	}

