// ASRC Site level JavaScript

function init()
{
	//placeholder for pages that require an init
}

function openWin(url, name, width, height)
{
	window.open(url,name,'scrollbars=no,width='+width+',height='+height);
}

function showStatus(str)
{
	window.status=str;
}

function clearStatus()
{
	window.status="";
}

function loadPage(url, type)
{
	if (url != "") { 
		if(type == "pdf"){
			window.open(url,'asrc_minutes_pdf');
		}else{
			document.location=url; 
		}
	}
}

function loadDoc(sel,type)
{
	filename = sel.options[sel.options.selectedIndex].value;
	switch (filename)
	{
		case "":
		alert("Document has not yet been published to the server.\nPlease try again at a later date.");
		break;
		case "default":
		alert("Please choose a document first.");
		break;
		default :
		dest = filename + "." + type;
		loadPage(dest, type);
	}
}

