// Copyright (c) 1999-2003 Cyber-dynamics Inc. All Rights Reserved

function showH(iName,iShow) {
 var oDiv,oDiz,sCon="#990000", sCoff="#666666"; 
 if(document.layers){oDiz=document.all[iName+"z"].style;oDiv=document.all[iName].style;}
 else{if(document.all){oDiz=document.all[iName+"z"].style;oDiv=document.all[iName].style;}
 else{if(document.getElementById){oDiz=document.getElementById(iName+"z").style;oDiv=document.getElementById(iName).style;}}}
 oDiz.visibility=iShow?"visible":"hidden";oDiv.background=iShow?sCon:sCoff;
}


function submitSub() {
var f=document.newsletterActions,sErr='';
 if ((badEmail(f.Email.value))||(f.Email.value=='you@yourhost.com')){sErr += ', Email'}
 if(sErr){alert('Please check the following entries and resubmit:\n'+sErr.substr(2));
 }else{
  if (popper) {if (! popper.closed) {popper.close();}}
  popUp('BHTTdownload.html',100,100,220,350);
  tellWait();
  f.title.value=document.title;
  f.target="popper";
  f.submit();
  }
  return false;
}


function tellWait() {var s="<html><head><title>Downloading - please wait</title></head><body bgcolor='#f5f9fc'><p style='text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:11px;'><br /><br /><b>D O W N L O A D I NG</b><br /><br />Please Wait</p></body></html>";
popper.document.open;popper.document.write(s);popper.document.close;}


function mSt(s) {window.status=s;document.returnValue=true;}
function homeP(){if (document.all){document.all[0].style.behavior='url(#default#homepage)';document.all[0].setHomePage(self.location.href);}else{alert("Please click OK then View/Options or Parameters and set Current Page as Home Page");}}
function printP(){if (parseInt(navigator.appVersion)>=4){window.print();}else{alert("This action is not supported by your browser\nPlease select File/Print");}}
function pDate() {
var monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var dayNames=new Array("Sun","Mon","Tues","Wednes","Thurs","Fri","Satur");
var now=new Date(),yr = now.getYear();if (yr<1900){yr+=1900;}
document.write(dayNames[now.getDay()]+"day, ");document.write(monthNames[now.getMonth()]+" "+now.getDate()+", "+yr);}
function getTime() {
 var time=new Date(); time.setTime(time.getTime());
 var iHr=time.getHours(),iMin=time.getMinutes(),iSec=time.getSeconds(),
 tp =""+((iHr>12)?iHr-12:iHr); 
 tp+=((iMin<10)?":0":":")+iMin; tp+=((iSec<10)?":0":":")+iSec;tp+=(iHr>=12)?" PM":" AM";
 document.fm.WTclock.value = tp; var i=setTimeout("getTime()",1000);
}
window.defaultStatus=document.title;
function mSt(s) {window.status=s;document.returnValue=true;}