// JavaScript Functions by Bevisions

function set_image(current_image)
{
	document.images["main_image"].src = current_image.src;
}

function checkUncheckAll(theElement) 
{
     var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++)
	 {
     	if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall')
		{
	  		theForm[z].checked = theElement.checked;
	  	}
	}
}

function get_tour(tour_name)
{
	document.getElementById(tour-detail).innerHTML="<img src='/includes/ajaxtabs/loading.gif' /> Requesting content..."; 
	new Ajax.Updater('tour-detail', '/index.php?module=tours&function=show&request=ajax&name=' && tour_name, { method: 'get' });	
}
