function ChangeToOther(frm)
{	if(frm.Type.selectedIndex == 2)
	{	document.location = "Report.asp?Page=Other"; }
}
function ChangeToDogCat(frm)
{	if(frm.Type.selectedIndex == 0 || frm.Type.selectedIndex == 1)
	{	document.location = "Report.asp";	}
}
function onClick_Save(frm)
{	var strPhone;
	if(typeof(frm.Age) != 'undefined' && frm.Age.value.length > 0)
	{	if(isNaN(frm.Age.value))
		{	alert("Age field must be a whole number.\nIf you\'re not sure of the age, leave the field blank"); return; }
	}
	if(frm.Details.value.length < 12)
	{	alert("Details about this entry are required.");	return;	}
	if(frm.Details.value.length > 255)
	{	alert("Details can not exceed 255 characters.\n\nYou're currently have: " + frm.Details.value.length + " characters."); return;	}
	if(frm.Contact.value.length == 0)
	{	alert("A Contact Name is requried"); return;	}
	if(frm.Phone1.value.length >= 0 && frm.Phone1.value.length < 8)
	{	alert("The phone number is missing or invalid.\nUse a dash to seperate the value."); return;	}
	else
	{	strPhone = frm.Phone1.value;
		if(strPhone.indexOf("-")== -1)
		{	alert("Invalid phone number.  Please use a dash in the number.\nFor example, 555-1212.");	return; }		
	}
	if(frm.Phone2.value.length > 6)
	{	strPhone = frm.Phone2.value;
		if(strPhone.indexOf("-")== -1)
		{	alert("Invalid phone number.  Please use a dash in the number.\nFor example, 555-1212.");	return; }		
	}	
	frm.submit();
}