

// Help window
// Help window
// Help window

function helpWindow(titleTX, bodyTX)
{	
	document.writeln('<div class="infowin2">');
			document.writeln('<div class="infowin2_top">');
				document.writeln('<div><span><b>' + titleTX + '</b></span></div>');
			document.writeln('</div>');
			document.writeln('<div class="infowin2_middle">');
				document.writeln('<div><span>'+ bodyTX +'</span></div>');
			document.writeln('</div>');
			document.writeln('<div class="infowin2_bottom">');
				document.writeln('<!-- nothing here -->');
			document.writeln('</div>');
	document.writeln('</div>');	
}

// Help window
// Help window
// Help window


function getLabelValue(orig, targId){
	var selectedOption = orig[orig.selectedIndex];
	var label = selectedOption.firstChild.nodeValue;
	
	document.getElementById(targId).value = label;
}

function get_currency_iframe(val){
	try{
		document.getElementById('find_accommodation').disabled = true;
	}catch(e){}
	
	try{
		document.getElementById('find_traveller').disabled = true;
	}catch(e){}
	
	document.getElementById('country_id').value = val;
	document.getElementById('remocurr').submit();
}

function open_win(theURL,winName,features) {
  window.open(theURL,winName,features);
}


function bubbles_management(bub_id_to_open){
	
	for(i=0;i < bubble_array.length;i++){
		//alert(bubble_array[i]);
		if(bubble_array[i] == bub_id_to_open){
			try{
				document.getElementById(bubble_array[i]).style.display = 'block';
			}catch(E){}
		}else{
			try{
				document.getElementById(bubble_array[i]).style.display = 'none';
			}catch(E){}
		}
	}
}

function openInfo(id, action){
	document.getElementById('mod_' + id).style.display = action;
}

function accommodation_type_extra_info(sel){
	
	for(i = 1; i < 8; i++){
		document.getElementById('accotype_info_' + i).checked = false;
	}

	document.getElementById('accommodation_type_extra_info').style.display = 'none';	
	document.getElementById('hotel_info').style.display = 'none';	
	document.getElementById('self_catering_info').style.display = 'none';			
	
	if(sel == 'hotel'){
		document.getElementById('accommodation_type_extra_info').style.display = 'block';	
		document.getElementById('hotel_info').style.display = 'block';	
	}else if(sel == 'apartment'){
		document.getElementById('accommodation_type_extra_info').style.display = 'block';	
		document.getElementById('self_catering_info').style.display = 'block';	
	}
	
}


