/**
 *	Set the enable/diable status of a text input
 *
 *	object: object to be operated on, can be a input or not
 *	args[0]: in case the object is a input box, indicates the desired status
 *
 */
function setTextInputBoxEnabledStatusA(object, args)
{
	setTextInputBoxEnabledStatus(object, args[0])
}

/**
 *	Set the enable/diable status of a checkbox
 *
 *	object: object to be operated on, can be a checkbox or not
 *	status: in case the object is a check box, indicates the desired status
 *
 */
function setTextInputBoxEnabledStatus(object, status)
{
	if(isTextInputBox(object)) object.disabled = !status
}

/**
 *	Set the value of a check box
 *
 *	object: object to be operated on, can be an form input or not
 *	args[0]: the value to be set for the input box
 *
 */
function setTextInputBoxEnabledValueA(object, args)
{
	setTextInputBoxValue(object, args[0])
}

/**
 *	Set the value of a check box
 *
 *	object: object to be operated on, can be an form input or not
 *	value: the value to be set for the input box
 *
 */
function setTextInputBoxValue(object, value)
{
	if(isTextInputBox(object)) object.value = value
}

/**
 *	Clear the information in an text input box
 *	
 *	object: object to be operated on, can be a input or not
 *	
 */
function clearTextInputValue(object)
{
	if(isTextInputBox(object)) object.value = ""
}

/**
 *	Check whether an ojbect is a text input
 *	
 *	object: object to be operated on, can be a text input or not
 *	
 */
function isTextInputBox(object)
{
	return object.type == "text"
}

