<!--
function MakeArray(n){
this.length = n
return this}
monthNames = new MakeArray(12)
monthNames [1] = "січня"
monthNames [2] = "лютого"
monthNames [3] = "березня"
monthNames [4] = "квітня"
monthNames [5] = "травня"
monthNames [6] = "червня"
monthNames [7] = "липня"
monthNames [8] = "серпня"
monthNames [9] = "вересня"
monthNames [10] = "жовтня"
monthNames [11] = "листопада"
monthNames [12] = "грудня"
dayNames = new MakeArray(7)
dayNames[1] = "неділя"
dayNames[2] = "понеділок"
dayNames[3] = "вівторок"
dayNames[4] = "середа"
dayNames[5] = "четвер"
dayNames[6] = "п'ятниця"
dayNames[7] = "субота"

function DateStr(oneDate){
var theDay = dayNames[oneDate.getDay() + 1]
var theMonth = monthNames[oneDate.getMonth() + 1]
var theYear = oneDate.getYear()
if (theYear<2000) theYear = theYear+1900
return oneDate.getDate() + " " + theMonth + " " + theYear + ", " + theDay
}

//-->

function setHomePage (url)
{
 if (document.all && document.getElementById)
   oHomePage.setHomePage(url);
}

function order_ev(form, type_id)
{
  var select = form.elements["event_id"];
  var event_id = select.options[select.selectedIndex].value;
  if(type_id==1)
    url = "pro_show.php?show=all&event_id="+event_id;
  else  
    url = "pro_show.php?event_id="+event_id;
  window.location.href=url;
}

function order_p(form, type_id)
{
  var select = form.elements["tour_id"];
  var tour_id = select.options[select.selectedIndex].value;
  if(type_id==1)
    url = "pro_table.php?tour_id="+tour_id;
  window.location.href=url;
}

function order_pr(form, user_id)
{
  var select = form.elements["tour_id"];
  var tour_id = select.options[select.selectedIndex].value;
  url = "pro_profile.php?tour_id="+tour_id+"&luser_id="+user_id;
  window.location.href=url;
}


function order_ev2(form, type_id)
{
  var select = form.elements["tour_id"];
  var tour_id = select.options[select.selectedIndex].value;
  var select = form.elements["event_id"];
  var event_id = select.options[select.selectedIndex].value;
  if(type_id==1)
    url = "pro_history.php?show=all&tour_id="+tour_id+"&event_id="+event_id;
  else  
    url = "pro_histiry.php?tour_id="+tour_id+"&event_id="+event_id;
  window.location.href=url;
}


function order_tour(form, type_id)
{
  var select = form.elements["tour_id"];
  var tour_id = select.options[select.selectedIndex].value;
  if(type_id==1)
    url = "pro_history.php?show=all&tour_id="+tour_id;
  else  
    url = "pro_history.php?tour_id="+tour_id;
  window.location.href=url;
}

function order_stage(form)
{
  var select = form.elements["stage"];
  var stage = select.options[select.selectedIndex].value;
  url = "pro_table.php?stage="+stage;
  window.location.href=url;
}

function order_teams(form)
{
  var select = form.elements["teams"];
  var teams_id = select.options[select.selectedIndex].value;
  url = "tour_team2.php?sub_partition=3&team_id="+teams_id;
  window.location.href=url;
}


function order_result(form)
{
  var select = form.elements["stage"];
  var stage = select.options[select.selectedIndex].value;
  var select = form.elements["tour_id"];
  var tour_id = select.options[select.selectedIndex].value;
  url = "pro_table.php?stage="+stage+"&tour_id="+tour_id;
  window.location.href=url;
}