function isEmptyString(strValue)
{
    var strTestString = new String(strValue);
    if ( strValue == null || strTestString.length == 0 )
        return true;
    for (i = 0; i < strTestString.length; i++)
        if ( strTestString.charAt(i) != ' '  && strTestString.charAt(i) != '\t' &&
             strTestString.charAt(i) != '\n' && strTestString.charAt(i) != '\r' )
            return false;
    return true;
}

function swapImage(image_id, image_file)
{
    var image;

    image = document.getElementById(image_id);
    image.src = image_file;
}

function openWindow(url, width, height, scroll)
{
    var hWnd;

    hWnd = window.open(url,"Window","resizable=no,scrollbars=" + ( scroll == true ? "yes" : "no" ) + ",width=" + width + ",height=" + height);
}

