

function changeresource(s)
  {
    var d = s.options[s.selectedIndex].value;
    window.parent.location.href = "calendar.asp?resourceid=" + d;
    s.selectedIndex=0;
  }


function changemenu(s)
  {
    var d = s.options[s.selectedIndex].value;
    window.parent.parent.mainbody.location.href = "menu.asp?area=" + d;
    s.selectedIndex=0;
  }

function jumpmenu(s)
  {
    var d = s.options[s.selectedIndex].value;
    window.parent.location.href = "main.asp?area=" + d;
    s.selectedIndex=0;
  }

function pop(urlOl, nameWinOl, widthOl, heightOl)
	{
	w=window.open(urlOl,nameWinOl,'left='+((screen.width/2)-300)+',top='+((screen.height/2)-300)+',screenX='+((screen.width/2)-250)+',screenY='+((screen.height/2)-250)+',width='+widthOl+',height='+heightOl+',alwaysRaised=yes,history=no,resizable=no,status=no,scrollbars=yes,menubar=no')
	w.focus();
	}


function popup(url)
	{
	w=window.open(url,'popup','left='+((screen.width/2)-250)+',top='+((screen.height/2)-250)+',screenX='+((screen.width/2)-250)+',screenY='+((screen.height/2)-250)+',Width=500,height=400,alwaysRaised=yes,history=no,resizable=no,status=no,scrollbars=yes,menubar=no')
	w.focus();
	}

function popupfull(url)
	{
	s = ""
	w=window.open(url,'popupfull','height=" + (screen.height - 40) + ",width=" + (screen.width - 20) + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1')
	w.focus();
	}

function popupresizable(url)
	{
	w=window.open(url,'popupresizable','left='+((screen.width/2)-350)+',top='+((screen.height/2)-250)+',screenX='+((screen.width/2)-250)+',screenY='+((screen.height/2)-250)+',Width=750,height=400,alwaysRaised=yes,history=no,resizable=yes,status=no,scrollbars=yes,menubar=no')
	w.focus();
	}

function popupsmall(url)
	{
	w=window.open(url,'popupsmall','left='+((screen.width/2)-350)+',top='+((screen.height/2)-250)+',screenX='+((screen.width/2)-250)+',screenY='+((screen.height/2)-250)+',width=280,height=80,alwaysRaised=yes,history=no,resizable=no,status=no,scrollbars=no,menubar=no')
	w.focus();
	}


function popupsaveable(url)
	{
	w=window.open(url,'popupsaveable','left='+((screen.width/2)-350)+',top='+((screen.height/2)-250)+',screenX='+((screen.width/2)-250)+',screenY='+((screen.height/2)-250)+',Width=750,height=400,alwaysRaised=yes,history=no,resizable=yes,status=no,scrollbars=yes,menubar=yes')
	//w.focus();
	}

function popupprintable(url)
	{
	w=window.open(url,'popupprintable','left='+((screen.width/2)-250)+',top='+((screen.height/2)-250)+',screenX='+((screen.width/2)-250)+',screenY='+((screen.height/2)-250)+',Width=640,height=800,alwaysRaised=yes,history=no,resizable=no,status=no,scrollbars=yes,menubar=yes')
	w.focus();
	}

function selectoption(s,v)
	{
	for (i=0; i<s.length; i++)
	  {
	     if (s.options[i].value==v)
	     {
	      	s.selectedIndex=i;
	     }
	  } 
	}
