/*  
	location:	\\Laura\Bob\Websites\Robertm\Scripts 
	filename:	radiks.js	
	date:		2003Dec26
        update:         2004Jan16

	Definitions of an external javascript file
	for using in HTML scripting.


*/

// radiks.js variables


function openDollars() {
  window.open("http://www.dollars-for-you.com/plan1/index.php?ref=2570","Dollars",
              "width=400,height=200,resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,status=yes");
}// end openDollars()

function departPage() {
  window.open("http://904700957.freestoreclub.com","FSC",
              "width=600,height=400,resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,status=yes");
}// end departPage()

function showText() {
  document.writeln("This is the showText function writing.");
}// end showText

function noRightClick() {

  // Put your message for the alert box between the quotes.
  var message="Sorry, we don't allow that on this site!.";

  // Don't edit below!

  function click(e) {
    if (document.all) {
      if (event.button == 2) {
        alert(message);
        return false;
      }
    }
    if (document.layers) {
      if (e.which == 3) {
        alert(message);
        return false;
      }
    }
  }
  if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
  }
  document.onmousedown=click;
}// end noRightClick()

function scrollMessageButton() {

  //Put Your Message Here	
  var message=" Click here to try our new JavaScripts ";

  //Put URL of File or Web Page Here
  function ButtonURL(){
    window.location="test.html"
  }

  function scroll(){
    message = message.substring(1,message.length) + message.substring(0,1);
    document.bs.bs.value = message;
    setTimeout("scroll()",140);
  } 

  window.onload=scroll;
  document.write('<style type="text/css">');
  document.write('.select{background:blue;border-color:"yellow";color:"white";font-family:Arial,Helvetica,Verdana;font-size:10pt;font-weight:bold;}');
  document.write('</STYLE>'); 
  document.write('<form name=bs><INPUT class="select" TYPE="button" NAME="bs" value=" " onclick="ButtonURL()"></FORM>');
}// end scrollMessageButton()

function displayBasicHtml() {
  // Display an alert dialog to show the text to type

  alert("<HTML>\n<BODY>\n<H2>Happy Nude Year!</H2>\n</BODY></HTML>\n");

}// end displayBasicHtml()

// Bob's homepage
function getIndex() {
  // Writes the homepage index into the various documents
  document.writeln("<p align='center'><a href='../index.html' style='font-size:12.0pt; font-family:courier new; font-weight:600; text-decoration:none'>Index</a>");
} // end getIndex()

// Underconstruction notice
function underConstruction() {
  // Notice
  document.writeln("<p style='font-size:24.0pt'>This site is currently under construction.");

}// end underConstruction()

function getHome() {
  // Writes the homepage index into the various documents
  document.writeln("<p align='center'><a href='index.html' style='font-size:12.0pt; font-family:courier new; font-weight:600; text-decoration:none'>Index</a>");
} // end getHome()

function timeStamp() {
  var Stamp = new Date();
  document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + '</B></font><BR>');
  var Hours;
  var Mins;
  var Time;
  Hours = Stamp.getHours();
    if (Hours >= 12) {
      Time = " P.M.";
    }
    else {
      Time = " A.M.";
    }
    if (Hours > 12) {
      Hours -= 12;
    }
    if (Hours == 0) {
      Hours = 12;
    }
  Mins = Stamp.getMinutes();
    if (Mins < 10) {
      Mins = "0" + Mins;
    }	
  document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');
} // End timeStamp()
