﻿function showError(message)
{
    var errorMessage = document.getElementById('errorMessage');
    errorMessage.innerHTML = message;
    GB_show('errorWindow', 155, 300);
}

function showWindow(windowId, height, width)
{
    GB_show(windowId, height, width);
}

function swapImage(elementId, imageSrc)
{
    var element = document.getElementById(elementId);
    element.src = imageSrc;
}

function setCursor(elementId, cursorType)
{
    var element = document.getElementById(elementId);
    element.style.cursor=cursorType;
}

function setAddressIndex(elementId, txtElementId)
{
    var addressList = document.getElementById(elementId);
    var txtElement = document.getElementById(txtElementId);
    txtElement.value = addressList.selectedIndex;
}