<!-- hide script from older browsers
// preload rollover images
if (document.images) {
image0 = new Image();
image0.src = "http://www.atlantapetsitting.com/images/btn_sit.gif";

image1 = new Image();
image1.src = "http://www.atlantapetsitting.com/images/btn_clnt.gif";

image2 = new Image();
image2.src = "http://www.atlantapetsitting.com/images/btn_gal.gif";

image3 = new Image();
image3.src = "http://www.atlantapetsitting.com/images/btn_lnks.gif";

image4 = new Image();
image4.src = "http://www.atlantapetsitting.com/images/btn_abt.gif";

image5 = new Image();
image5.src = "http://www.atlantapetsitting.com/images/btn_emp.gif";

image6 = new Image();
image6.src = "http://www.atlantapetsitting.com/images/btn_cont.gif";

image7 = new Image();
image7.src = "http://www.atlantapetsitting.com/images/btn_home.gif";
}
function pressrel (page) {
window.open(page, 'popup', 'scrollbars=yes,resizable=yes,width=546,height=500,left=10,top=10');
}
// exit from any frames
if(top!=self) {
top.location = self.location;
}
// IE, NN6+ & Opera bookmark
function addBookmark(title,url) {
if (window.sidebar)
{
window.sidebar.addPanel(title, url,"");
}
else if(window.external)
{
window.external.AddFavorite(url, title);
}
else alert("Please bookmark us! (Your browser does not support our bookmark feature.)");
}
// validate form entry
function isEmailAddr(fromEmail) {
	var result = false;
	var theStr = new String(fromEmail);
	var index = theStr.indexOf("@");
	if (index > 0) {
		var pindex = theStr.indexOf(".",index);
		if ((pindex > index+1) && (theStr.length > pindex+1))
		result = true;
	}
	return result;
}
function validRequired(formField,fieldLabel) {
	var result = true;
	if (formField.value == "") {
		alert('Please enter your ' + fieldLabel +'.');
		formField.focus();
		result = false;
	}
	return result;
}
function validEmail(formField,fieldLabel,required) {
	var result = true;
	if (required && !validRequired(formField,fieldLabel))
		result = false;
	if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) ) {
		alert("Please enter your E-mail Address in the form:  yourname@yourdomain.com");
		formField.focus();
		result = false;
	}
	return result;
}
function validateForm(fdbk) {
	if (!validRequired(fdbk.fromName,"Name"))
		return false;
	if (!validEmail(fdbk.fromEmail,"E-mail Address",true))
		return false;
	if (!validRequired(fdbk.fromFdbk,"Comments",true))
		return false;
	return true;
}
// privacy policy pop-up
function privpol () {
	window.open('alovpriv.html', 'popup', 'scrollbars=no,resizable=no,width=430,height=210,left=10,top=10');
}
// pet tips pop-up
function tips () {
	window.open('alovtips.html','popup','scrollbars=yes,resizable=no,width=416,height=300,left=10,top=10');
}

// end hiding script from older browsers -->
