function doVotingWindow(url, newurl)
{
        try
        {
                var voterWin = createWindow(url, newurl);
        }
        catch(e)
        {
                return true;
        }

        return false;
}

function createWindow(url, newurl)
{
    var height = screen.availHeight;
    var width = screen.availWidth;

    if ( document.all )
    {
	height = screen.height;
	width = screen.width;
    }

    var voterWin = window.open('','VoterWindow','channelmode=0,directories=0,left=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0');
    voterWin.location.href=url;
    voterWin.resizeTo(width,height);
    voterWin.moveTo(0,0);
    window.location.replace(newurl);
    voterWin.focus();

    return voterWin;
}

