function OpenBigMap()
{
	window.open("big_map.php","logwindow0",'left=100,top=70,width=1024,height=760,toolbar=0,resizable=0,scrollbars=1,addressbar=0');
}
function roll_over(img_name, img_src)
{
	document[img_name].src = img_src;
}
function Validate_Email(Field,AlertTxt)
{
	with( Field )
	{
		apos		=	value.indexOf("@");
		dotpos		=	value.lastIndexOf(".");
		varlength	=	value.length;
		if ( (apos < 1) || (dotpos - apos < 2) )
		{
			alert(AlertTxt);
			return false;
		}
		if ( varlength <= (dotpos + 1) )
		{
			alert("Please enter a suffix of domain.");
			return false;
		}
		else
		{
			return true;
		}
	}
}
function Validation_Contact_Us(thisform)
{
	with( thisform )
	{
		if( (FirstName.value.charAt(0) == " ") || (FirstName.value.charAt(1) == " ") || ((FirstName.value.charAt(0) == " ") && (FirstName.value.charAt(1) == " ") && (FirstName.value.charAt(2) == " ")) || (FirstName.value == "") || (FirstName.value.length <= 2) )
		{
			alert("Please insert the first name correctly.");
			FirstName.focus();
			return false;
		}
		if( (LastName.value.charAt(0) == " ") || (LastName.value.charAt(1) == " ") || ((LastName.value.charAt(0) == " ") && (LastName.value.charAt(1) == " ") && (LastName.value.charAt(2) == " ")) || (LastName.value == "") || (LastName.value.length <= 2) )
		{
			alert("Please insert the last name correctly.");
			LastName.focus();
			return false;
		}
		if( Email.value == "" )
		{
			if( Validate_Email(Email,"Please insert a valid email.") == false )
			{
				Email.focus();
				return false;
			}
		}
		if( Email.value != "" )
		{
			if( Validate_Email(Email,"Please insert a valid email.") == false )
			{
				Email.focus();
				return false;
			}
		}
	}
}
function Validation_Mailing_List(thisform)
{
	with( thisform )
	{
		if( Email.value == "" )
		{
			if( Validate_Email(Email,"Please insert a valid email.") == false )
			{
				Email.focus();
				return false;
			}
		}
		if( Email.value != "" )
		{
			if( Validate_Email(Email,"Please insert a valid email.") == false )
			{
				Email.focus();
				return false;
			}
		}
	}
}
