/**
 *
 * @created on 16/02/2007
 * @author Mike Kelly
 * @contact mikee@whatsthat.co.nz
 *
 **/

function clearValue(clearInput, defaultValue)
{
    if (clearInput.value == defaultValue) clearInput.value = '';

}

function switchFormAction(strFormTarget,strAction)
{
	window.document.getElementById(strFormTarget).action = strAction;
}

function formSubmit(strFormTarget)
{
	window.document.getElementById(strFormTarget).submit();
}

function switchFormActionSubmit(strFormTarget,strAction)
{
	window.document.getElementById(strFormTarget).action = strAction;
	formSubmit(strFormTarget);
}
