function empty(){
document.preview.salutation.value = "";
}
function backhome()
{
  top.window.location.href="http://www.thecathouse.org/";
}

function validateForm(form)
{
	var thisfield = document.recurring.a3.value;
	var thatlength = thisfield.length;
	var thatfield = document.recurring.srt.value;
	var theotherlength = thatfield.length;
	 if(thatlength == 0)
	{	alert ("You need to specify the amount of your donation");
		return false;
		}
	 if(theotherlength == 0)
	{	alert ("You need to specify many months you would like this to continue.");
		return false;
		}
		if(thatfield == 1)
	{	alert ("If you want to donate for only 1 month please use the above donation!.");
		return false;
		}
   else {
   	return true;
       }
}

function processForm(form)
{
  if (validateForm(form))
   {
       backhome();
       return true;
	   //window.location="http://www.thecathouses.org/";
   }
   else
   {
       return false;
   }
}

function _als () {window.status = 'Add To Lightbox'; return true}
function _sls () {window.status = 'View Image Specs'; return true}
function _dls () {window.status = 'View Details'; return true}
function _pls () {window.status = 'Processing...'; return true}
function _cls () {window.status = ''; return true}

function email(name, domain, suffix, text)
{
   var address = name + "\u0040" + domain + "." + suffix;
   var url = "mailto:" + address;

   if( ! text )
   {
      text = address;
   }

   document.write("<a href=\"" + url + "\">" + text + "</a>");
}