//included in frameset
reloaded = new Date();
old = "normal";
location_id= 0;
member_id=0;
overview_changed=1; //0 iff no changes to overview
overview_type_id=0; //0,1,2,3 (as below)
overview_type="normal"; //normal, member, weekly, special
group_id=0;
res_colour=0; 
group_selected = 0; //both for special and weekly
special_days_ahead = 0;
password = "";
allow_laneadm = 0; //default

function refresh_overview()
//call to update main if needed
{
  if (old != parent.overview_type) {
    //reset laneadm values
	group_selected = 0;
	group_id = 0;
    special_days_ahead = 0;
	password="";
  }
  if (parent.overview_changed) parent.main.location = "overview.asp?location_id="+parent.location_id+"&reservation_id="+parent.reservation_id+"&member_id="+parent.member_id+"&overview_type="+parent.overview_type+"&group_id="+parent.group_id+"&res_colour="+parent.res_colour+"&special_days_ahead="+parent.special_days_ahead;
  if (parent.overview_type=="normal") parent.footer.location="footer.asp";
  else if (parent.overview_type=="weekly") parent.footer.location="laneadm.asp";
  else if (parent.overview_type=="special") parent.footer.location="laneadm.asp";
  else parent.footer.location="footer.asp";
  old = parent.overview_type;
}

