
function divopen(divid)
{
 // alert(divid);
  $j('#'+divid).fadeIn("slow");

}

function divout(divid)
{
$j('#'+divid).fadeOut("slow");

}

function redirectPage(id,page)
{
   var url = 'languageset.php?lang='+id;
   new Ajax.Request(url,{
   method: 'get',
   onSuccess: function(transport)
   {
  	//var dr = transport.responseText;
	//document.getElementById(galmsg).innerHTML=dr;
	  window.location=page;
	},
		 onFailure: function(transport)
		 {
			 // when the request fails
          alert('The request failed..');

		 },

		 onException: function(err)

		 {

			 // When an exception is encountered while executing the callbacks

			alert('Exception');

		 }

		 }); 

}



function submitForm()
{
  var w=900 ;
  var h=500 ;
  var left = (screen.width/2)-(w/2);
  var top = (screen.height/2)-(h/2);
	window.open('new_booking.php','BookingForm','toolbar=no,scrollbars=yes,resizable=no,width='+w+', height='+h+', top='+top+', left='+left);
	//document.aspnetForm.submit();
}


