function restrictInput(e, allowedChars)
{
//"abcdefghijklmnopqrstuvwxyz0123456789"
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);


// control keys
if ((key==null) || (key==0) || (key==8) ||
    (key==9) || (key==13) || (key==27) )
   return true;

// alphas and numbers
else if (((allowedChars).indexOf(keychar) > -1))
   return true;
else
   return false;
}


function BBSRedirect(Category)
{
	document.frmBBS1.Cat.value=Category;
	document.frmBBS1.submit();
}

	function Test1()
		{
			//alert (document.frmTest.Test123.value)
			location.href=document.fitness1.choose[document.fitness1.choose.selectedIndex].value;
			//return false;
		}
		
			function Test2()
		{
			//alert (document.frmTest.Test123.value)
			location.href=document.fitness2.choose[document.fitness2.choose.selectedIndex].value;
			//return false;
		}
		
		function GetDay(nDay)
{
	var Days = new Array("Sunday","Monday","Tuesday","Wednesday",
	                     "Thursday","Friday","Saturday");
	return Days[nDay]
}

function GetMonth(nMonth)
{
	var Months = new Array("January","February","March","April","May","June",
	                       "July","August","September","October","November","December");
	return Months[nMonth] 	  	 
}

function DateString()
{
	var Today = new Date();

	var strDate = GetDay(Today.getDay());
	strDate +=  ", " + GetMonth(Today.getMonth())+ " " + Today.getDate() + ", " + Today.getFullYear();
	return strDate
}

function openreview(theURL,winName,width,height) { //v2.0
/*  window.open (theURL,winName,features);

*/
  var w = 480, h = 340;

if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
}
//var width=480;
//var height = 340;
var popW = width, popH = height;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;
 

window.open(theURL,winName,'scrollbars=yes,resizable=yes,width=' + popW + ',height=' + popH + ',top=' + topPos + ',' + 'left=' + leftPos);

}