/* 
 * Javascript used for displaying prefilled value in miniform and removing it when user selects the field. 
 * 
 * These methods are copied from /richmorning/scripts/rms_init.js
 */

function checkInputText(inputObj, defaultValue, color){
    color = color || '#999999';
    if (inputObj.value == "" ) {
	inputObj.value = defaultValue;
	inputObj.style.color = color;
    }
    else
	inputObj.value = inputObj.value;
}

function clearInputText(inputObj, defaultValue){
    if (inputObj.value == defaultValue ) {
	inputObj.value="";
	inputObj.style.color = 'black';
    }
}

