//  Check the Links Add Page for Errors
function CheckLink()
{
   Name1 = document.LinkExchange["Name"].value;
   if (Name1=="")
   {
      alert("Please enter your Name");
      return false ;
   }

   Name1 = document.LinkExchange["Email"].value;
   if (Name1=="")
   {
      alert("Please enter your Email");
      return false ;
   }

   Name1 = document.LinkExchange["URL"].value;
   if ((Name1=="") || (Name1=="http://"))
   {
      alert("Please enter your Website's URL");
      return false ;
   }

   Name1 = document.LinkExchange["Title"].value;
   if (Name1=="")
   {
      alert("Please enter your Link Title");
      return false ;
   }

   Name1 = document.LinkExchange["Description"].value;
   if (Name1=="")
   {
      alert("Please enter your Link Description");
      return false ;
   }

   Name1 = document.LinkExchange["OurLink"].value;
   if ((Name1=="") || (Name1=="http://"))
   {
      alert("Please enter the URL where we can find our return link");
      return false ;
   }

   return true ;
}


function NewFavorite()    //  Keep This Section
{
   if(window.external)
   {
      var mmurl = 'http://www.Spa-Daddy.com' ;
      var mmtitle = 'Pool and Spa Filters and Chemicals - Crystal Clean Water in Three Easy Steps' ;
      window.external.addFavorite(mmurl,mmtitle);

      self.location = "/bookmark.php?book1=Y&RET="+self.location ;
      return false ;
   }
   else return true ;
}


function Decimal(n) //  Keep This Section
{
   ns=new String(n);
   nsi=ns.indexOf('.');
   if (nsi!=-1) {
      nsil=nsi+3;
      l=ns.charAt(nsil);
      ln=new Number(l);
      if (ln>=5) n=n+.01;
      nr=new String(n);
      n=nr.substring(0,nsil);
      if (n.length<nsil) n+="0"; }
   else {
      n=ns+".00"; }
   return n;
}
function EmptyCart()
{
      if(confirm("Are you sure you want to delete all items from your shopping cart?")) return true ;
      else return false ;
}

