function setTab(i) {

  for(j = 1; j < 5; j++)
	if(j == i)
		document.getElementById('lap' + j).src = '/site_media/img/tabs/' + j + 'b.jpg';
	else
		document.getElementById('lap' + j).src = '/site_media/img/tabs/' + j + 'a.jpg';
  //~ document.getElementById('bookingTypeValue').value = i;  
}

function get_val(id) {
    if(!document.getElementById(id))
	return 0;
    return document.getElementById(id).value;
}

function set_val(id, val) {
    if(document.getElementById(id))
	document.getElementById(id).value = val;
}


function copy_address (to, from) {
    if(($(to).value != "") && ($(from).value != ""))
	$(to).value = $(from).value;
}

function copy_country (to, from) {
    if((to.selectedIndex > 0) && ($(from).selectedIndex > 0))
	to.selectedIndex == $(from).selectedIndex;
}



function paypal_process() {
    document.getElementById('paypalForm').submit();
}


function login() {
	document.getElementById('menuLogout').style.visibility = 'visible';
    document.getElementById('menuAccount').style.visibility = 'visible';
	
	var responseText = "window.alert('Hello World!');";
	eval(responseText);
	}

window.onload = function() {
		login();
	}

