/* ------------------------------------------------------------------------------- +

	File:		core.js
	Author:		Ben Nadel
	Desc:		These are base system functions.

+ ------------------------------------------------------------------------------- */


// This takes a variable, checks to see if it null or undefined
// and if so, then sets the default value
function ParamArgument(objArgument, objDefaultValue){
	// Check to see if the argument is defined
	if (objArgument && (typeof(objArgument).toString() != "undefined")){
		return(objArgument);
	} else {
		// The value has not been set so return the default value
		return(objDefaultValue);
	}
}