function copy(a,b) {
	b.value = removeSigns(a.value);
}
function removeSigns(str){
	str = str.replace(/ę/g, 'e');
	str = str.replace(/Ę/g, 'e');
	str = str.replace(/ó/g, 'o');
	str = str.replace(/Ó/g, 'o');
	str = str.replace(/ą/g, 'a');
	str = str.replace(/Ą/g, 'a');
	str = str.replace(/Ś/g, 's');
	str = str.replace(/ś/g, 's');
	str = str.replace(/Ł/g, 'l');
	str = str.replace(/ł/g, 'l');
	str = str.replace(/Ż/g, 'z');
	str = str.replace(/ż/g, 'z');
	str = str.replace(/Ź/g, 'z');
	str = str.replace(/ź/g, 'z');
	str = str.replace(/Ć/g, 'c');
	str = str.replace(/ć/g, 'c');
	str = str.replace(/Ń/g, 'n');
	str = str.replace(/ń/g, 'n');
	str = str.replace(/-/g, '_');
	str = str.replace(/\,/g, '');
	str = str.replace(/\./g, '');
	str = str.replace(/ /g, '_');
	str = str.toLowerCase();
	return str;	
}
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}
function setVisibility(obj_name, flag)
{
	var x = new getObj(obj_name);
	x.style.visibility = (flag) ? 'hidden' : 'visible';
}
function bannerFormButtons( selected_button )
{
	if( selected_button == 'right' ){
		var x = new getObj('banner_button_left');
		x.style.background = 'none';
		x.style.color = '#e6be9f';
		
		var x = new getObj('banner_button_right');
		x.style.background = '#cc5d06';
		x.style.color = '#ffffff';
		document.forms['fast_reserve'].reservation_type.value = 'conf';
	}else if( selected_button == 'left' ){
		var x = new getObj('banner_button_right');
		x.style.background = 'none';
		x.style.color = '#e6be9f';
		
		var x = new getObj('banner_button_left');
		x.style.background = '#cc5d06';
		x.style.color = '#ffffff';
		
		document.forms['fast_reserve'].reservation_type.value = 'room';		
	}
}
function showHide(obj) {
	obj = document.getElementById(obj);
	obj.style.display == 'none' ? obj.style.display = '' : obj.style.display = 'none';
}
function showAll(objgroup, amount) {
	for( i = 1 ; i <= amount ; i++ ){
		
		obj = objgroup + '_' + i.toString();
		obj = document.getElementById(obj);
		obj.style.display == 'none' ? obj.style.display = '' : obj.style.display = 'none';
	}
}
function expandProgram(group1name,group1amount, group2name,group2amount){
	showAll(group1name, group1amount)
	showAll(group2name, group2amount);
}
