<!--
function redirect(url)
{
	if (url)
	window.location = url;
}

function showTab(tabId)
{
	document.getElementById(tabId).style.display = "block";
}

function doSubmit(formId, url)
{
	document.getElementById('changeUrl').value = url;
	document.getElementById(formId).submit();
}

function confirmDelete(msg)
{
	var confirmation = confirm(msg)
	if (confirmation)
	return true;
	else
	return false;
}

function toggleValue(itm, val, pass) {
    if ($(itm).val() == val) {
        $(itm).val('');
    }
    if (!pass) {
        $(itm).blur(function() {
            if ($(itm).val() == '') {
                $(itm).val(val);
            }
        });
    } else {
        $(itm).blur(function() {
            if($(itm).val() == '') {
                $(itm).val(val).hide();
                $('#' + $(itm).attr('id') + '_mask').show();
            }
        });
    }
}

function reformatPassword(id) {
    $('#' + id).after('<input type="text" value="' + $('#' + id).val() +
        '" class="' + $('#' + id).attr('class') + '" id="' + $('#' + id).attr('id') +
        '_mask' + '" \/>');
    $('#' + id + '_mask').focus(function() {
        $(this).hide();
        $('#' + id).show().focus();
    });
    $('#' + id).hide();
}
//-->

