

function WindowOnload(f) {
    var prev=window.onload;
    window.onload=function(){ if(prev)prev(); f(); }
  }

//WindowOnload(initMenu);

function pm_gotoSelection(inObject)
{
	newLocation = document.quick_links_form.quick_links_select.options[document.quick_links_form.quick_links_select.selectedIndex].value;
	if (newLocation)
	{
		location.href = newLocation;
	}
}

function pm_elementForId(inId)
{
        if (document.getElementById)
        {
                return document.getElementById(inId);
        }
}

function gotoSelection(select)
{
//	newLocation = (select.options[select.selectedIndex].value);
	newLocation = document.quick_links_form.quick_links_select.options[document.quick_links_form.quick_links_select.selectedIndex].value;
	alert(document.quick_links_form.quick_links_select.options);
	alert(document.quick_links_form.quick_links_select.selectedIndex);
	alert(document.quick_links_form.quick_links_select.options[document.quick_links_form.quick_links_select.selectedIndex]);
	alert(document.quick_links_form.quick_links_select.options[document.quick_links_form.quick_links_select.selectedIndex].value);
	if (newLocation)
	{
		location.href = newLocation;
	}

}

function initMenu()
{
	var linksDiv = pm_elementForId("quick_links");

	newForm = document.createElement("form");
	newForm.setAttribute("name", "quick_links_form");

	newSelect = document.createElement("select");
	newSelect.setAttribute("onChange", "pm_gotoSelection(this)");
	newSelect.setAttribute("name", "quick_links_select");

	newForm.appendChild(newSelect);
	linksDiv.appendChild(newForm);
}



