function MM_openBrWindow(theURL,winName,features)
{
  window.open(theURL,winName,features);
}

function JSOpenWindow(theURL,winName,w,h,scroll,resizable)
{
    window.open(theURL,winName,'height=' + h + ',width=' + w + ',scrollbars=' + scroll + ',resizable=' + resizable);
}

function NewWindow(mypage, myname, w, h, scroll)
{
    var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) 
	{
	    win.window.focus();
    }
}

function Redirect(URL)
{
    window.location = URL;
}

function RegionOnMouseColl(collindex, rowcount, oddcolor, evencolor)
{
    for (i=1; i<=rowcount; i++)
    {
        if (i % 2 == 0)
            document.getElementById('cell_' + collindex + '_' + i).bgColor = evencolor;
        else
            document.getElementById('cell_' + collindex + '_' + i).bgColor = oddcolor;
    }
}

function RegionOnMouseRow(rowindex, color)
{
    for (i=1; i<=4; i++)
    {
        document.getElementById('cell_' + i + '_' + rowindex).bgColor = color;
    }
}

function RegionOnMouseAll(rowcount, oddcolor, evencolor)
{
    for (i=1; i<=rowcount; i++)
    {
        for (j=1; j<=4; j++)
        {
            if (i % 2 == 0)
                document.getElementById('cell_' + j + '_' + i).bgColor = evencolor;
            else
                document.getElementById('cell_' + j + '_' + i).bgColor = oddcolor;
        }
    }
}

