//**************************************************
// JScript Error Alerts Standarsization Functions
//
//Purpose: Standardize all error messages via alert
//popups in order that all wording is simular.
//
//Written by: Tim Dennis
//LastUpdated: 05/13/03
//
//****************************************************

function ErrorAlrt(){
	this.jsErrorDeleteCheckConfirm = function(str){
		return confirm("Are you sure you want to delete this " + str + "?") 
	};
	
	this.jsErrorBlankAlert = function(str){
		alert(str + " cannot be Blank!")
	};
	
	this.jsErrorEmail = function(str){
		alert(str + " is an Invalid Email Address!")
	};
	
	this.jsErrorDigitLengthAlert = function(str,len){
		alert(str + " must be " + len + " digits long!")
	};
	
	this.jsErrorBlankAlertList = function(str){
		alert("The Following cannot be Blank:\n" + str);
	};
	
	this.jsErrorNumericAlert = function(str){
		alert(str + " must be a Numeric Value!");
	};
	
	this.jsErrorIntegerAlert = function(str){
		alert(str + " must be an Integer Value!");
	};
	
	this.jsErrorPositiveNumericAlert = function(str){
		alert(str + " must be a Positive Numeric Value!");
	};
	
	this.jsErrorPositiveIntegerAlert = function(str){
		alert(str + " must be a Positive Integer Value!");
	};
	
	this.jsErrorZipCodeAlert = function(str){
		alert(str + " must be a Valid Zip Code!");
	};
	
	this.jsErrorFaxAlert = function(str){
		alert(str + " must be a valid Fax Number!");
	};
	
	this.jsErrorPhoneAlert = function(str){
		alert(str + " must be a valid Phone Number!");
	};
	
	this.jsErrorDateAlert = function(str){
		alert(str + " must be a valid Date (mm/dd/yyyy)!");
	};
	
	this.jsErrorDateGreaterThanTodayAlert = function(str){
		alert(str + " must be a greater than Today's Date!");
	};
	
	this.jsErrorSelectAlert = function(){
		alert("Please select a value!");
	};
	
	this.jsErrorSelectRowAlert = function(){
		alert("Please select atleast one Row!");
	};
	
	this.jsErrorSelectOneRowAlert = function(){
		alert("Please select a only one Row!");
	};
	
	this.jsErrorMustEqualAlert = function(str,str2){
		alert(str + " must be equal to " + str2 + "!");
	};
	
	this.jsErrorCannotEqualAlert = function(str,str2){
		alert(str + " cannot be equal to " + str2 + "!");
	};
	
	this.jsErrorMustGreaterAlert = function(str,str2){
		alert(str + " must be greater than " + str2 + "!");
	};
	
	this.jsErrorMustLessAlert = function(str,str2){
		alert(str + " must be less than " + str2 + "!");
	};
	
	this.jsErrorMustSelectAlert = function(str){
		alert("Please Select a " + str + "!");
	};
	
	this.jsErrorNoScriptAlert = function(str){
		alert("Script tags are not allowed in " + str + "!");
	};
	
	this.jsErrorNoScriptAlertList = function(str){
		alert("The Following cannot have Script Tags:\r" + str);
	};
	
	this.jsErrorMoneyAlert = function(str){
		alert( str + " must be a monetary value!");
	};
	
	this.jsErrorCriticalErrorObjectAlert = function(str){
		alert("Critical Error: " + str + " doesn't exist or is Undefined.")
	};
};

var ErrorAlert = new ErrorAlrt();