function changeDiv(the_div, the_change) {
	var the_style = getStyleObject(the_div);

	if (the_style != false) {
		the_style.display = the_change;
	}
}

function hideAll() {
	changeDiv("Credit","none");
	changeDiv("Paypal","none");
	changeDiv("Telephone","none");
}

function getStyleObject(objectId) {
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId).style;
	} else if (document.all && document.all(objectId)) {
		return document.all(objectId).style;
	} else {
		return false;
	}
}

function resize(thePage) {
	if (thePage.firebird == null) {
		return;
	}
	if (screen.width == 800 && screen.height == 600) {
		thePage.firebird.width = 450;
		thePage.firebird.height = 279;
	} else if ((screen.width > 800 && screen.width <= 1024) && (screen.height > 600 && screen.height <= 768)) {
		thePage.firebird.width = 600;
		thePage.firebird.height = 372;
	} else {
		thePage.firebird.width = 677;
		thePage.firebird.height = 420;
	}
}

function IsNumeric(str) {
   var validChars = "0123456789.-";
   var char;
   var result = true;

   if (str.length == 0) return false;

   for (i = 0; i < str.length && result == true; i++)
      {
      char = str.charAt(i);
      if (validChars.indexOf(char) == -1)
         {
         result = false;
         }
      }
   return result;
   }
