function winstat(sMsg)
	{
    window.status = sMsg;
    return true;
	}

function IsANumber(entry)
	{
	validChar = '0123456789';				// characters allowed in hex
	strlen = entry.length;					// how long is test string
	if (strlen < 1) { return false;}		// no check!
	entry = entry.toUpperCase();			// in case of lowercase characters

	for (i=0; i < strlen; i++ )
		{
	    if (validChar.indexOf(entry.charAt(i)) < 0)
			{
			return false;
			}
	    } // end scanning loop
	    
	return true;
	}
	
	
function CheckContactUsForm()
	{
	var itemsToEnter
	var formFailed
	var isValidEMail
	var foundAt, foundDot
	var temp
	
	temp = 0;
	formFailed = 0;
	isValidEMail = 0;
	foundAt = 0;
	foundDot = 0;
	itemsToEnter = "";
		
	myContent = document.ContactUs.EMail.value;		
	foundDot = myContent.indexOf(".");
	foundAt = myContent.indexOf("@");

	if ( foundDot < 1 || foundAt < 1)
		{
		isValidEMail = 0;
		formFailed = 1;
		itemsToEnter = itemsToEnter + "A valid email address\n(Such as \'YourName@AOL.com\')\n\n";
		}	
		
	myContent = document.ContactUs.Subject.value;		
	if( myContent.length < 2)
		{
		formFailed = 1;
		itemsToEnter = itemsToEnter + "The subject of your message\n";
		}

	if( formFailed == 1)
		{
		alert('Please enter the following information:\n\n' + itemsToEnter);
		return false;
		}

	document.ContactUs.Submitted.value='1';
	return true;
	}
	
var delayb4scroll = 4000;
var marqueespeed = 1;
var pauseit = 1;

var copyspeed = marqueespeed;
var pausespeed =(pauseit==0)? copyspeed: 0;
var actualheight = 0;
var marqueeheight = '';

function scrollmarquee( )
	{
	if (parseInt(cross_marquee.style.top) > (actualheight * (-1) + 8 ))
		cross_marquee.style.top = parseInt(cross_marquee.style.top) - copyspeed + "px";
	else
		cross_marquee.style.top = parseInt(marqueeheight) + 8 + "px";
	}
	
function initializemarquee( )
	{
	cross_marquee = document.getElementById("vmarquee")
	actualheight = cross_marquee.offsetHeight
	cross_marquee.style.top = 4
	
	marqueeheight = document.getElementById("marqueecontainer").offsetHeight
		
	window.status = actualheight + ' / ' + marqueeheight;

	if (marqueeheight < 1) { marqueeheight = "150px";}
	if (actualheight < 1) { actualheight = 300;}

	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1)
		{
		cross_marquee.style.height = marqueeheight+"px";
		cross_marquee.style.overflow = "scroll";
		return;
		}
		
	setTimeout('lefttime=setInterval("scrollmarquee()",50)', delayb4scroll)
	}

function stopmarquee()
	{
	copyspeed = 0;
	}
function startmarquee()
	{
	copyspeed = marqueespeed;
	}