 function showTab(tabId) {
  var tab = document.getElementById('tabStrip').getElementsByTagName('td');
  for(t=0; t<tab.length; t++) {
   if(tab[t].id == ('tab'+tabId)) {
    tab[t].className = 'tabItem1';
    document.getElementById('tabCont'+parseInt(tab[t].id.substr(3, 3))).style.display='block';
   } else {
    tab[t].className = 'tabItem0';
    document.getElementById('tabCont'+parseInt(tab[t].id.substr(3, 3))).style.display='none';
   }
  }
 }
 
 function pop(strPage) { window.open('/pop.php?pg='+strPage, 'strPage', 'WIDTH=840,HEIGHT=500'); }
 
 function mailSend() {
  var mf = document.getElementById('mailform');
  var de = 0;
  if((de==0)&&(mf.name.value.length<4))  { de=1; alert('Please enter your full name.'); mf.name.focus(); }
  if((de==0)&&(!isMail(mf.email.value))) { de=2; alert('Please enter a valid email address.'); mf.email.focus(); }
  if((de==0)&&(mf.comment.value.length<10))  { de=3; alert('Please enter a longer comment.'); mf.comment.focus(); }
  if(de==0) { mf.submit(); }
 }
