function OpenBig(id,height,width)
{
	var OpenWindow=window.open("big_image.php?id="+id,"logwindow",'left=350,top=150,height='+height+',width='+width+',toolbar=0,resizable=0,scrollbars=1,addressbar=0');
	OpenWindow.focus();
	return false;
}
function SubmitLogin()
{
	if(!document.form0.UserName.value)
	{
		alert("username required!");
		document.form0.UserName.focus();
		return false;
	}
	if(!document.form0.Password.value)
	{
		alert("password required!");
		document.form0.Password.focus();
		return false;
	}
	else
	{
		return true;
	}
}
function Validation()
{
	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.BusinessType.value.charAt(0) == " ") || (Obj.BusinessType.value.charAt(1) == " ") || ((Obj.BusinessType.value.charAt(0) == " ") && (Obj.BusinessType.value.charAt(1) == " ") && (Obj.BusinessType.value.charAt(2) == " ")) || (Obj.BusinessType.value == "") || (Obj.BusinessType.value.length <= 3) )
	{
		alert("Please insert the Type of business correctly.");
		Obj.BusinessType.focus();
		return false;
	}
	if ( (Obj.Phone.value.charAt(0) == " ") || (Obj.Phone.value.charAt(1) == " ") || ((Obj.Phone.value.charAt(0) == " ") && (Obj.Phone.value.charAt(1) == " ") && (Obj.Phone.value.charAt(2) == " ")) || (Obj.Phone.value == "") || (Obj.Phone.value.length <= 3) )
	{
		alert("Please insert the Contact phone correctly.");
		Obj.Phone.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 Validation1()
{
	var Obj    = document.form1;
	var Filter =/^.+@.+..{2,3}$/
	if ( (Obj.FullName.value.charAt(0) == " ") || (Obj.FullName.value.charAt(1) == " ") || ((Obj.FullName.value.charAt(0) == " ") && (Obj.FullName.value.charAt(1) == " ") && (Obj.FullName.value.charAt(2) == " ")) || (Obj.FullName.value == "") || (Obj.FullName.value.length <= 3) )
	{
		alert("Please insert the Full Name correctly.");
		Obj.FullName.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 Validation2()
{
	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 Validation3()
{
	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.Phone.value.charAt(0) == " ") || (Obj.Phone.value.charAt(1) == " ") || ((Obj.Phone.value.charAt(0) == " ") && (Obj.Phone.value.charAt(1) == " ") && (Obj.Phone.value.charAt(2) == " ")) || (Obj.Phone.value == "") || (Obj.Phone.value.length <= 3) )
	{
		alert("Please insert the Phone correctly.");
		Obj.Phone.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;
	}
	if ( (Obj.City.value.charAt(0) == " ") || (Obj.City.value.charAt(1) == " ") || ((Obj.City.value.charAt(0) == " ") && (Obj.City.value.charAt(1) == " ") && (Obj.City.value.charAt(2) == " ")) || (Obj.City.value == "") || (Obj.City.value.length <= 3) )
	{
		alert("Please select the City correctly.");
		Obj.City.focus();
		return false;
	}
	if ( (Obj.Claim.value.charAt(0) == " ") || (Obj.Claim.value.charAt(1) == " ") || ((Obj.Claim.value.charAt(0) == " ") && (Obj.Claim.value.charAt(1) == " ") && (Obj.Claim.value.charAt(2) == " ")) || (Obj.Claim.value == "") || (Obj.Claim.value.length <= 3) )
	{
		alert("Please insert the Claim correctly.");
		Obj.Claim.focus();
		return false;
	}
	if ( (Obj.Address.value.charAt(0) == " ") || (Obj.Address.value.charAt(1) == " ") || ((Obj.Address.value.charAt(0) == " ") && (Obj.Address.value.charAt(1) == " ") && (Obj.Address.value.charAt(2) == " ")) || (Obj.Address.value == "") || (Obj.Address.value.length <= 3) )
	{
		alert("Please insert the Address correctly.");
		Obj.Address.focus();
		return false;
	}
	else
	{
		return true;
	}
}
function Validation4()
{
	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.Phone.value.charAt(0) == " ") || (Obj.Phone.value.charAt(1) == " ") || ((Obj.Phone.value.charAt(0) == " ") && (Obj.Phone.value.charAt(1) == " ") && (Obj.Phone.value.charAt(2) == " ")) || (Obj.Phone.value == "") || (Obj.Phone.value.length <= 3) )
	{
		alert("Please insert the Phone correctly.");
		Obj.Phone.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;
	}
}
