//jco; gets users input from a text box.  The entered text
//is the disired web page which we had the html extension
//
function GetUserInput()
{
  //users input is concatenated as a folder, then the index.html is called
  window.location.href= "http://www.need-tarrant.com/" +
    document.getPassword.txtPasswordName.value +
    "/index.html";
  return false;

//  automatically goes to folder webstats, then takes users input as the html file
//  window.location.href= "http://www.CudaDiveTX.com/webstats/" +
//    document.getPassword.txtPasswordName.value + '.html';
//  return false;
}
//
//jco; sets cursor in the textbox to save time
//
function setFocus()
{ document.frmPassword.txtInput.focus();
  document.frmPassword.txtInput.select();
}
//
//
//
function sf()
{ document.getPassword.txtPasswordName.focus();
  document.getPassword.txtPasswordName.select();
}
//
//Simply displays date if called
//
function displayDate()
{ document.write(Date()+".") }
//
//
function onEnter()
{
 if(event.keyCode==13)
  document.frmPassword.btnEnter.click();
}
//
//validates a text field for the specific (hard coded) password
//
function valForm()
{
 if( document.frmPassword.txtInput.value == "enter" )
  document.location.href="Private.htm";
 else
  document.location.href="NoAccessPage.htm";
}
//
//sets the focus on this input field
//
//function setFocus()
//{document.frmPassword.txtInput.focus()}
//
//
//<SCRIPT LANGUAGE="JavaScript">
//2-functions; rightclick() and trap() will prevent folks from copying photos.
//<!--
function rightclick(e)
{
   var msg="Please Note: These images are copyrighted by the photographer and cannot be downloaded.";
   if (navigator.appName == 'Netscape' && e.which == 3)
   {
      alert (msg);
      return false;
   }

   if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2 )
   {
      alert (msg);
      return false;
   }
   else
   return true;
}

function trap()
{
   if (document.images)
   {
      for (i=0;i<document.images.length;i++)
      {
         document.images[i].onmousedown = rightclick;
         document.images[i].onmouseup   = rightclick;
      }
	}
}
//-->
//
//</SCRIPT>
//
//
//Displays clock as the browser title bar
//
function doTheClock()
{
   window.setTimeout( "doTheClock()", 1000 );
   t = new Date();
   if(document.all || document.getElementById)
   {
      document.title = t.toString();
   }else{   
      self.status = t.toString();
   }
}  // <SCRIPT> doTheClock() </SCRIPT>
//
//Displays current time
//
function getTime()
{
  var vTime = new Date()
  return vTime.toLocaleTimeString()
}  // <SCRIPT> getTime() </SCRIPT>
//
//Suround the word with <samp> <\samp> to make it blink
//
function doBlink()
{
  var b = document.all.tags("samp")

  for( i=0; i < b.length; i++)
    b[i].style.visibility = (b[i].style.visibility == "" ) ? "hidden" : ""
}

function startBlink()
{
  if( document.all )
    setInterval( "doBlink()", 1500 )
}
//window.onload = startBlink; Or add to onload()
//body onload="startBlink()"
////
///
//
//Suround the word with <samp> <\samp> to make it blink
//
//<script type="text/javascript" language="javascript">
//
/////////////////////////////////////////////////////////////////
///* Auto center window script */
var win = null;
function PopupWindow(mypage, myname, w, h, scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  //newWindow = window.open(mypage, myname, settings);
  //newWindow.focus();
  win = window.open(mypage, myname, settings);
}
//example
// spawnJimcoPopup('http://need-tarrant.com/tmp.html','Name','0','450','300', 'center');
/////////////////////////////////////////////////////////////////

