// JavaScript Document
// Number box, makes sure only numbers are entered
function keyCheck(eventObj, obj)
{
	var keyCode

	// Check For Browser Type
	if (document.all){ 
		keyCode=eventObj.keyCode
	}
	else{
		keyCode=eventObj.which
	}

	var str=obj.value

	if(keyCode==46){ 
		if (str.indexOf(".")>0){
			return false
		}
	}

	if((keyCode<48 || keyCode >58)){ // Allow only integers
	//if((keyCode<48 || keyCode >58)   &&   (keyCode != 45)){ // replace above line to add numbers and "-" points.
	//if((keyCode<48 || keyCode >58)   &&   (keyCode != 46)){ // replace above line to add numbers and decimal points.


		return false
	}

	return true
}
// in the box put - onKeyPress="return keyCheck(event, this)"
//or
//function check(contents) {
//    if (((contents / contents) != 1) && (contents != 0)) {alert('Please enter only a number into this box')}
//}
// in the box put - onBlur="check(this.value)
//end number check
//------------------------------------------------------------------------------------------------

<!-- Open new window in admin section for help
// Hide script from old browsers
	function Item (url) {newWindow = window.open(url , "newjavapop", "width=650,height=430,resizable=yes,menubar=no,directories=no,toolbar=no,scrollbars=yes,status=no")}
// End hiding script from old browsers
// end admin window open-->
<!-- Open new window on the bank page
// Hide script from old browsers
	function BankItem (url) {newWindow = window.open(url , "winBank", "width=650,height=230,resizable=yes,menubar=no,directories=no,toolbar=no,scrollbars=yes,status=no")}
// End hiding script from old browsers
// end admin window open-->
//------------------------------------------------------------------------------------------------

//Admin size alert button for images
function AlertButton()
{window.alert("Image size must be less than 200kb");}
// end alert
//------------------------------------------------------------------------------------------------

// Compare user passwords.
function CheckPasswords(CheckForm)
{

if (CheckForm.txtPassword.value != CheckForm.txtPassword2.value)
  {
   alert("Passwords do not match, please re-enter.")
   return false
  }
else
return true
}
//------------------------------------------------------------------------------------------------

//*** remove the dotted outline from links
function RemoveDot()
{
for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}
if (document.all)
{
document.onmousedown = RemoveDot;
}
file://-->
//------------------------------------------------------------------------------------------------
// Check and UnCheck Box Functions
function checkAll(theForm) {
    for (i=0,n=theForm.elements.length;i<n;i++)
        if (theForm.elements[i].name.indexOf('chkplayer') !=-1)
            theForm.elements[i].checked = true;
}

function uncheckAll(theForm) {
    for (i=0,n=theForm.elements.length;i<n;i++)
        if (theForm.elements[i].name.indexOf('chkplayer') !=-1)
            theForm.elements[i].checked = false;
}
//---
//------------------------------------------------------------------------------------------------
// delte confirmation message
function confirmDelete(cMsg)
	{
		if(confirm(cMsg)){
		return true;
	}
	else
	{
		return false;
	}
}
// call with -  onclick="return (confirmDelete('Are you sure you wish to delete!'));"
//------------------------------------------------------------------------------------------------
<!--
function showhideQuickLinks(strName){
	
	if (document.getElementById(strName).style.display == "none") {
		document.getElementById(strName).style.display = "";
	} else {
		document.getElementById(strName).style.display = "none";
	}
}
//-->
//------------------------------------------------------------------------------------------------

