<!-- // Hide from older Browsers ...
// ==========================================================================
// Popup Window
// Version 2.0
// Last Updated: May 7, 1999
// Code maintained at: http://www.moock.org/webdesign/javascript/
// Copy permission granted for non-commercial uses. Written by Colin Moock.
// winfeatures is a comma separated list in quotes.
//      <A HREF="javascript:launchwin('yourpage.html' , 'newwindow' ,
//         'width=300,height=150')">Your Link Goes Here</A> 
//  example of other window features:
//  eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=0,location=0,
//       status=1,menubar=0,resizable=0,width=400,height=200,left = 440,top = 380');");
// ==========================================================================
var newwin;

function launchwin(winurl,winname,winfeatures)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
	if(javascript_version > 1.0)
	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
 		setTimeout('newwin.focus();',250);
	}
}

// ==========================================================================
// A lot of this JavaScript was obtained from JavaScript Source http://javascript.internet.com
// ==========================================================================
// ==========================================================================
// ==========================================================================
function RLPopUp(URL) {
    var day = new Date();
    var id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=200,left = 440,top = 380');");
}
// ==========================================================================
// ==========================================================================
// This will display the time and date in a form button on the page where it
// is included. Clock must be started ... usually in onload of body. This is
// my own version of two others from http://javascript.internet.com/
// button_time and current_time
// In the actual time variable, the day of the week and the month are only
// numbers... and the count starts at 0 not 1. So, they can be used as indexes
// into arrays of names.
// ==========================================================================
var timerID = null;
var timerRunning = false;
var Months = ["January","Febuary","March","April","May","June","July","August","September","October","November","December"];
var Weekday = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var	dayin = new Date();
var inVisit = dayin.getTime();

function stopclock()
{
 // cannot directly test timerID on DEC OSF/1 in beta 4.
 if(timerRunning)
     clearTimeout(timerID);
 timerRunning = false;
}

function startclock()
{
  // Make sure the clock is stopped
  stopclock();
  showtime();
}

function showtime()
{
 var now = new Date();
 var hours = now.getHours();
 var minutes = now.getMinutes();
 var seconds = now.getSeconds();
    var year = now.getYear();
    var month = now.getMonth();
    var monthday = now.getDate();
    var day = now.getDay();
 var timeValue = " " + ((hours > 12) ? hours - 12 : hours);
 timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
 timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
 timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    timeValue  += "    " + Weekday[day];
    timeValue  += "  " + Months[month];
    timeValue  += " " + monthday;
    if (year < 2000) year += 1900;
    timeValue  += ", " + year;
 document.clock.face.value = timeValue;
 timerID = setTimeout("showtime()",1000);
 timerRunning = true;
}

function timeInfo() {
    var future = new Date("January 1, 2037");
    var endDate = future.getTime();
    
    var now = new Date();
    var tiNow = now.getTime();
    var milliSince = tiNow;
    
    var milliNow = tiNow - inVisit;
    var secsVisit = Math.floor(milliNow / 1000);
    
    var minsVisit = Math.floor(secsVisit / 60);
    secsVisit -= minsVisit * 60;
    var hrsVisit = Math.floor(minsVisit / 60);
    minsVisit -= hrsVisit * 60;
    
    if (hrsVisit > 0)
        alert("You have spent " + hrsVisit + " Hours, " + minsVisit
        + " minutes, and " + secsVisit + " seconds on this page.");
    else if (minsVisit > 0)
        alert("You have spent " + minsVisit + " minutes, and "
         + secsVisit + " seconds on this page.");
    else alert("You have spent " + secsVisit + "seconds on this page.");
}

// === end clock =====

// ==========================================================================
// Display an email link on your webpage while avoiding the risk of 
// your address being harvested by spammers robots.
// Thanks to: http://www.ssi-developer.net/design/avoid-spam-email.shtml 
// ==========================================================================
function protectmail() {
    var name = "TR";
    var address = "trcompu.com";
    var link = "Chuck Taylor";
    var subject = "From%20My%20WebSite";
    document.write('<a class="email" href=mailto:' + name + '@' + address + '?subject=' + subject + '>' + link + '</a>');
}
// ==========================================================================
// ==========================================================================
// * Couldn't get this to work in Netscape. Will have to investigate further
// * on handling events in both.
// * Check out http://www.quirksmode.org/js/events_properties.html
// ==========================================================================
clr=new Array('yellow','white','silver');
function highlight(e) {
	var targ;
    var state = 2;
	if (!e) var e = window.event;   // if no e then it is MSie
	if (e.target) targ = e.target;  // it is Netscape??
	else if (e.srcElement)          //    or
       targ = e.srcElement;         // it is MS
	if (targ.nodeType == 3)         // defeat Safari bug
		targ = targ.parentNode;

    if (targ.tagName=='INPUT') {
        etype=targ.type;
        if (etype=='SUBMIT' || etype=='RESET') return;
        targ.style.backgroundColor=clr[state];
        targ.focus();
    }
}
// ==========================================================================
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.
// Functions:  Use this script to launch a popup window that
//             automatically loads an image and resizes itself
//             to fit neatly around that image. The script also
//             places a title you set in the titlebar of the 
//             popup window. Any number of images can be launched
//             from a single instance of the script.
// ==========================================================================
// SETUPS:
// ===============================
// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 1070;
defaultHeight = 400;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}
// ==========================================================================

// ==========================================================================
// ==========================================================================
// ==========================================================================
// ...End Hide from older Browsers -->

