function checkTextbox(myObj, errorMes){
	// check if was filled in
	if (trim(myObj.value).length == 0){
		return errorHandler(myObj,errorMes);
	}else{
		return true;
	}
}

function checkTextBoxVal(myObj){
  // check if was filled in
	if (trim(myObj.value).length == 0){
		return false;
	}else{
		return true;
	}
}

function checkTextboxzero(myObj, errorMes){
	// check if was filled in
	if (parseInt(trim(myObj.value))< 1){
		return errorHandler(myObj,errorMes);
	}else{
		return true;
	}
}

