//**************************************************
// 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 jsErrorDeleteCheckConfirm(str){
	return confirm("Are you sure you want to delete this " + str + "?") 
}

function jsErrorBlankAlert(str){
	alert(str + " cannot be Blank!")
}

function jsErrorEmail(str){
	alert(str + " is an Invalid Email Address!")
}


function jsErrorDigitLengthAlert(str,len){
	alert(str + " must be " + len + " digits long!")
}

function jsErrorBlankAlertList(str){
	alert("The Following cannot be Blank:\n" + str);
}

function jsErrorNumericAlert(str){
	alert(str + " must be a Numeric Value!");
}

function jsErrorIntegerAlert(str){
	alert(str + " must be an Integer Value!");
}

function jsErrorPositiveNumericAlert(str){
	alert(str + " must be a Positive Numeric Value!");
}

function jsErrorPositiveIntegerAlert(str){
	alert(str + " must be a Positive Integer Value!");
}

function jsErrorZipCodeAlert(str){
	alert(str + " must be a Valid Zip Code!");
}

function jsErrorFaxAlert(str){
	alert(str + " must be a valid Fax Number!");
}

function jsErrorPhoneAlert(str){
	alert(str + " must be a valid Phone Number!");
}

function jsErrorDateAlert(str){
	alert(str + " must be a valid Date (mm/dd/yyyy)!");
}

function jsErrorDateGreaterThanTodayAlert(str){
	alert(str + " must be a greater than Today's Date!");
}


function jsErrorSelectAlert(){
	alert("Please select a value!");
}

function jsErrorSelectRowAlert(){
	alert("Please select atleast one Row!");
}

function jsErrorSelectOneRowAlert(){
	alert("Please select a only one Row!");
}

function jsErrorMustEqualAlert(str,str2){
	alert(str + " must be equal to " + str2 + "!");
}

function jsErrorCannotEqualAlert(str,str2){
	alert(str + " cannot be equal to " + str2 + "!");
}

function jsErrorMustGreaterAlert(str,str2){
	alert(str + " must be greater than " + str2 + "!");
}

function jsErrorMustLessAlert(str,str2){
	alert(str + " must be less than " + str2 + "!");
}

function jsErrorMustSelectAlert(str){
	alert("Please Select a " + str + "!");
}

function jsErrorNoScriptAlert(str){
	alert("Script tags are not allowed in " + str + "!");
}

function jsErrorNoScriptAlertList(str){
	alert("The Following cannot have Script Tags:\r" + str);
}

function jsErrorMoneyAlert(str){
	alert( str + " must be a monetary value!");
}

function jsErrorVINAlert(str){
	alert( str + " must be a valid VIN number!");
}


function jsErrorCriticalErrorObjectAlert(str){
	alert("Critical Error: " + str + " doesn't exist or is Undefined. End Function")
}
