// JavaScript Document
//-----------------------------------------------------------------	
//sets the focus on an element
function setFocus(elm) {
	elm.focus();
}
//-----------------------------------------------------------------
//checks that an element is not empty or null
function isFilled(elm) {
//checks that an element is not empty or null
	if (elm.value == "" || elm.value == null)
		return false;
	else
		return true;
}

//-----------------------------------------------------------------
//checks that all elements in the form are filled
function isReady(theForm) {	
	if (isFilled(theForm.ID) == false) {
 		alert("Please enter your card ID.");
		setFocus(theForm.ID);
		return false;		
	}
	return true;
}
//-->
