//-------------Delete Confirm----------------------------------------

function ConfirmDelete(theMessage){
Varresult = confirm(theMessage);

if (Varresult == true){
return true
}else{
return false
}
}
//--------Update Validate--------------------------------------------

function UpdateValidate(which){
	


if (document.getElementById(which).value == "" ) {
alert("Quality cannot be a blank value.") 
return false;
}else{

		var checkOK = "01234 56789";
		var checkStr = document.getElementById(which).value;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++)
		{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
		break;
		if (j == checkOK.length)
		{
		allValid = false;
		break;
		}
		}
		if (!allValid)
		{
      alert("Please use Numbers Only") 
		return false;
		}
}
}


