function presentdoc()
{
//window.location.reload();
presentimage = window.open( "", "", "width=1200,height=680,scrollbars,resizable,screenX=25,screenY=20,left=25,top=20");
presentimage.document.write("<body bgcolor='#d3eacc'><center><img src='" + URL + "'></center></body>");
presentimage.document.close();
window.location.reload();
}

function presenthtml(url)
{
//window.location.reload();
presentimage = window.open( url, "Committee_Document", "width=1200,height=680,locationbar,menubar,statusbar,toolbar,scrollbars,resizable,screenX=25,screenY=20,left=25,top=20");
//window.location.reload();
}

function selectviewer()
{
if (tab.action.indexOf(".gif") != -1 || tab.action.indexOf(".jpg") != -1)
	presentdoc();
else if (tab.action.indexOf(".pdf") != -1 || tab.action.indexOf(".htm") != -1) 
	tab.submit();
else presenthtml(URL);
}

function commURL()
{
tab=document.comm;
if (tab.select0.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select0.focus();
	return;
}
URL=tab.select0.options[tab.select0.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function PhaseURL()
{
tab=document.Phase1;
if (tab.select9.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select9.focus();
	return;
}
URL=tab.select9.options[tab.select9.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function MTAURL()
{
tab=document.MTA;
if (tab.select1.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select1.focus();
	return;
}
URL=tab.select1.options[tab.select1.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function MBTAURL()
{
tab=document.MBTA;
if (tab.select2.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select2.focus();
	return;
}
URL=tab.select2.options[tab.select2.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function NissanURL()
{
tab=document.Nissan;
if (tab.select3.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select3.focus();
	return;
}
URL=tab.select3.options[tab.select3.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function NStarURL()
{
tab=document.NStar;
if (tab.select4.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select4.focus();
	return;
}
URL=tab.select4.options[tab.select4.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function ProScapeURL()
{
tab=document.Proscape;
if (tab.select5.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select5.focus();
	return;
}
URL=tab.select5.options[tab.select5.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function LuchettiURL()
{
tab=document.Luchetti;
if (tab.select6.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select6.focus();
	return;
}
URL=tab.select6.options[tab.select6.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function TJXURL()
{
tab=document.TJX;
if (tab.select7.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select7.focus();
	return;
}
URL=tab.select7.options[tab.select7.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function MallURL()
{
tab=document.Mall;
if (tab.select8.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select8.focus();
	return;
}
URL=tab.select8.options[tab.select8.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function CumberlandFarmsURL()
{
tab=document.CumberlandFarms;
if (tab.select10.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select10.focus();
	return;
}
URL=tab.select10.options[tab.select10.selectedIndex].value;
tab.action = URL;
selectviewer();
}

function TIPURL()
{
tab=document.TIP;
if (tab.select11.selectedIndex < 1)
{
    alert("Please select again.");
	tab.select11.focus();
	return;
}
URL=tab.select11.options[tab.select11.selectedIndex].value;
tab.action = URL;
selectviewer();
}

