function play(x)
{
	window.open(x,'mywindow','height=250,width=400,scrollbars=yes, left=250 top=250');
	return false;
}
function OpenBigPhoto(PhotoName,width,height)
{
	var OpenWindow=window.open("big_photo.php?PhotoName="+PhotoName,"logwindow",'left=100,top=70,width='+width+',height='+height+',toolbar=0,resizable=0,scrollbars=1,addressbar=0');
	OpenWindow.focus();
}
function OpenBigRecentNews(PhotoName,width,height)
{
	var OpenWindow=window.open("big_recent_news.php?PhotoName="+PhotoName,"logwindow",'left=100,top=70,width='+width+',height='+height+',toolbar=0,resizable=0,scrollbars=1,addressbar=0');
	OpenWindow.focus();
}
function OpenEventsDetails(EventsID)
{
	var OpenWindow=window.open('events_details.php?EventsID='+EventsID,'logwindow','left=100,top=70,width=700,height=600,toolbar=0,resizable=0,scrollbars=1,addressbar=0');
	OpenWindow.focus();
	return false;
}
function OpenDealerNetwork(RegionName)
{
	var OpenWindow=window.open('dealer_network_details.php?RegionName='+RegionName,'logwindow','left=100,top=70,width=540,height=415,toolbar=0,resizable=0,scrollbars=1,addressbar=0');
	OpenWindow.focus();
	//return false;
}
function OpenSafetyTips()
{
	var OpenWindow=window.open('safety_tips.php','logwindow1','left=100,top=100,width=775,height=425,toolbar=0,resizable=0,scrollbars=1,addressbar=0');
	OpenWindow.focus();
	//return false;
}
function Validation_Contact_Us()
{
	var Obj    = document.form1;
	var Filter =/^.+@.+..{2,3}$/
	if ( (Obj.FirstName.value.charAt(0) == " ") || (Obj.FirstName.value.charAt(1) == " ") || ((Obj.FirstName.value.charAt(0) == " ") && (Obj.FirstName.value.charAt(1) == " ") && (Obj.FirstName.value.charAt(2) == " ")) || (Obj.FirstName.value == "") || (Obj.FirstName.value.length <= 3) )
	{
		alert("Please insert the first name correctly.");
		Obj.FirstName.focus();
		return false;
	}
	if ( (Obj.LastName.value.charAt(0) == " ") || (Obj.LastName.value.charAt(1) == " ") || ((Obj.LastName.value.charAt(0) == " ") && (Obj.LastName.value.charAt(1) == " ") && (Obj.LastName.value.charAt(2) == " ")) || (Obj.LastName.value == "") || (Obj.LastName.value.length <= 3) )
	{
		alert("Please insert the last name correctly.");
		Obj.LastName.focus();
		return false;
	}
	if ( Obj.Email.value == "" || !Filter.test(Obj.Email.value) )
	{
		alert("Please insert the email correctly.");
		Obj.Email.focus();
		return false;
	}
	else
	{
		return true;
	}
}
function handler(e)
{
	var key = (navigator.appName == "Netscape") ? e.which : e.keyCode;
	//alert(key);
	if (key == 110)
		return false;
	if ( (key > 36 && key < 41) || key == 9 || key == 8 || key == 13 || key == 46 || (key > 47 && key < 58) || (key > 95 && key < 106) )
		return true; 
	else
		return false;
}
function handler1(e)
{
	var key = (navigator.appName == "Netscape") ? e.which : e.keyCode;
	//alert(key);
	if ( (key > 36 && key < 41) || key == 9 || key == 8 || key == 13 || key == 46 || (key > 47 && key < 58) || (key > 95 && key < 106) || (key == 110) || (key == 190) )
		return true; 
	else
		return false;
}
function handler2(e)
{
	var key = (navigator.appName == "Netscape") ? e.which : e.keyCode;
	//alert(key);
	if ( (key > 36 && key < 41) || key == 9 || key == 8 || key == 13 || key == 46 || (key > 47 && key < 58) || (key > 95 && key < 106) || key == 111 )
		return true; 
	else
		return false;
}
