function checkcust()
   {
   var cust=(document.comment.Customer_Type.options[document.comment.Customer_Type.selectedIndex].value);
   if (cust == "Home Patient/Family Member")
      {
      alert("Please note that we cannot provide answers to personal medical questions, for these you should contact your physician."); 
      }
   }

function checknature()
   {
   var nature=(document.comment.Nature.options[document.comment.Nature.selectedIndex].value);
   if (nature == "Product Complaint")
      {
      alert("Please note this system is not designed to respond to product complaints. For any product performance issues, please contact The Center for One Baxter at 800-422-9837 for quality assurance contact information.");
      }
   else if (nature == "Quality Assurance")
      {
      alert("Please note this system is not designed to respond to product complaints. For any product performance issues, please contact The Center for One Baxter at 800-422-9837 for quality assurance contact information.");
      }
   }

   var refpage,stitle = "";
   refpage = document.referrer;
   lastidx = refpage.lastIndexOf('/');
   slastidx = refpage.lastIndexOf('/', lastidx - 1);
   if(lastidx > 0 && slastidx > 0)
      {
      stitle = refpage.substring(slastidx+1, lastidx);
      if(stitle == "sub")
         {
         lastidx = refpage.lastIndexOf('/', lastidx - 1);
         slastidx = refpage.lastIndexOf('/', lastidx - 1);
         stitle = refpage.substring(slastidx+1, lastidx);
         }
      stitle = stitle.substring(0,1).toUpperCase() + stitle.substring(1,stitle.length);
      while(stitle.indexOf('_') > 0)
         {
         casechar = stitle.indexOf('_');
         ucaseb = stitle.substring(casechar, casechar+2);
         ucasea = ucaseb.toUpperCase();
         ucasea = ucasea.replace("_", " ");
         stitle = stitle.replace(ucaseb, ucasea)
         }


      if(stitle == "Www.oceania.baxter.com")
         {
         stitle = "";
         }
      else if(stitle == "Pd-patients")
         {
         stitle = "- PD Patient Request Form";
         }      
      else
         {
         stitle = "- " + stitle;
         }
      }
   document.write ("Contact Us " + stitle);