function passval(tf){
   var msg = "There were problems with your submission:<br/><br/>";       
   submitok = true;   

   if(tf.username.value.length == 0){
      msg += "- Enter your username.<br/>";
      submitok = false;
   }

   if(tf.pass.value.length == 0){
      msg += "- Enter your password.<br/>";
      submitok = false;
   }

   
   if(!submitok){
      document.getElementById(errormsg).innerHTML = msg;
   }

   return submitok;
}

function val_renew(tf){
   var msg = "There were problems with your submission:<br/>";       
   submitok = true;   

   if(tf.reusername.value.length == 0){
      msg += "- Enter your username.<br/>";
      submitok = false;
   }

   if(tf.repassword.value.length == 0){
      msg += "- Enter your password.<br/>";
      submitok = false;
   }

   
   if(!submitok){
      document.getElementById(errormsg10).innerHTML = msg;
   }

   return submitok;
}

function val_add_cart(tf){
   var msg = "There were problems with your submission:<br/><br/>";       
   submitok = true;   

   if(tf.quantity.value.length == 0){
      msg += "- Please enter the quantity of the item you have selected.<br/>";
      submitok = false;
   }

   if(tf.quantity.value.length != 0){
      if(isNaN(tf.quantity.value)){
         msg += "- Please enter a valid quantity.<br/>";
         submitok = false;
      }
      if(tf.quantity.value <= 0){
         msg += "- Please enter a valid quantity.<br/>";
         submitok = false;
      }         
   }
     
   if(!submitok){
      document.getElementById(errormsg8).innerHTML = msg;
   }

   return submitok;
}
/*
function goto(){
   window.location = "helpus.php";
}
*/
function newAdopt(){

   window.open("form_adopt.php","adoptForm","width=960,height=650,scrollbars=yes,toolbar=yes,status=yes");

}

function renew(){

   window.open("smalllogin.php","logForm","width=960,height=640,scrollbars=yes,status=yes");

}

function donate(){

   window.open("form_donate.php","donateForm","width=960,height=650,scrollbars=yes,toolbar=yes,status=yes");

}

function resighting(){

   window.open("form_resighting.php","resightingForm","width=960,height=650,scrollbars=yes");

}

function contact(){

   window.open("form_contact.php","contactForm","width=960,height=650,scrollbars=yes");

}

function contacttest(){

   window.open("form_contact-test.php","contactForm","width=960,height=650,scrollbars=yes");

}function privacy(){

   window.open("privacy.php","privacy","width=960,height=650,scrollbars=yes");

}

function puzzle(){

   window.open("Puzzle1.swf","puzzle","width=860,height=650,scrollbars=yes");

}

function missmatch(){

   window.open("d.swf","puzzle","width=860,height=650,scrollbars=yes");

}

function dolphins(){

   window.open("gallery/dolphins/dolphins.html","dolphins","width=960,height=650,scrollbars=yes");

}
function birds(){

   window.open("gallery/birds/birds.html","birds","width=960,height=650,scrollbars=yes");

}
function seals(){

   window.open("gallery/seals/seals.html","seals","width=960,height=650,scrollbars=yes");

}
function whales(){

   window.open("gallery/whales/whales.html","whales","width=960,height=650,scrollbars=yes");

}
function people(){

   window.open("gallery/people/people.html","people","width=960,height=650,scrollbars=yes");

}
function videos(){

   window.open("gallery/videos/gallery-vid.html","videos","width=960,height=650,scrollbars=yes");

}
function ambvideos(){

   window.open("ambassador-tv/atv-vid.html","videos","width=960,height=750,scrollbars=yes");

}
function ambtvbig(){

   window.open("ambassador-tv/atv-vid-high-bw.html","videos","width=960,height=750,scrollbars=yes");

}
function ambtvsmall(){

   window.open("ambassador-tv/atv-vid-low-bw.html","videos","width=960,height=750,scrollbars=yes");

}
