function regionOverOut(region_id,status) {
	if(status=="over"){
		document.getElementById('reg'+region_id+'picdiv').style.visibility='visible';
		document.getElementById('reg'+region_id+'texttr').style.backgroundColor='#FFFFFF';
	}else{
		document.getElementById('reg'+region_id+'picdiv').style.visibility='hidden';
		document.getElementById('reg'+region_id+'texttr').style.backgroundColor='#DDEAE6';
	}
}

function showHide(id){
	if(document.getElementById("link"+id).style.display == 'block'){
		document.getElementById("box"+id).style.display = 'block';
		document.getElementById("link"+id).style.display = 'none';
	}else{
		document.getElementById("box"+id).style.display = 'none';
		document.getElementById("link"+id).style.display = 'block';
	}
}


// Determine browser.


var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;



// prevent onChange select boxes from submitting null id values (navpages)
function check_select_null_id(in1,in2,thisform) {
        var isOK = false;
        var da_string= 'document.'+in1+'.'+in2+'.selectedIndex';
        var ex=eval(da_string);
        var why='document.'+in1+'.'+in2+'['+ex+'].selected=true';
        var str2='document.'+in1+'.'+in2+'['+ex+'].value';
        var cuz=eval(str2);
        if (cuz == ''){
                isOK=false;
                var why='document.'+in1+'.'+in2+'[0].selected=true';
                eval(why);
				return isOK;
        }       
        else {
                isOK=true;
				var formname='document.'+in1;
				thisform.submit();
        }
        return isOK;
}


function checkselect(in1, in2) {
	var isOK = false;
	var da_string= 'document.'+in1+'.'+in2+'.selectedIndex'
	var ex=eval(da_string);
	var why='document.'+in1+'.'+in2+'['+ex+'].selected=true'
	var str2='document.'+in1+'.'+in2+'['+ex+'].value'
	var cuz=eval(str2)
	if (cuz == ''){
		isOK=false;
		var why='document.'+in1+'.'+in2+'[0].selected=true';
		eval(why);
	}	
	else {
		isOK=true;
	}
	return isOK;
}


function openWin (URL,Wid,Hei) {
	if (isNaN(Wid)) {
		Wid = 550;
	}
	if (isNaN(Hei)) {
		Hei = 750;
	}
	aWindow = window.open(URL,"_blank",
        'toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + Wid +
        ',height=' + Hei);
}


function openWinToolbar (URL,Wid,Hei) {
	if (isNaN(Wid)) {
		Wid = 550;
	}
	if (isNaN(Hei)) {
		Hei = 750;
	}
     aWindow = window.open(URL,"_blank",
        'toolbar=yes,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + Wid +
        ',height=' + Hei);
}


function openWinToolbarS (URL,Wid,Hei) {
	if (isNaN(Wid)) {
		Wid = 550;
	}
	if (isNaN(Hei)) {
		Hei = 750;
	}
     aWindow = window.open(URL,"_blank",
        'toolbar=yes,status=yes,scrollbars=yes,resizable=yes,menubar=no,width=' + Wid +
        ',height=' + Hei);
}

function openWinTravelfrom (URL,Wid,Hei) {
     aWindow = window.open(URL,"_blank",
        'toolbar=no,status=no,scrollbars=no,resizable=no,menubar=no,width=300,height=200');
}


// Create window for Swiss Trips
function createWindow(file) {			
				NewWindow = window.open(file, "schweizreisen", "width="+(screen.availWidth)+",height="+(screen.availHeight)+",scrollbars=yes,menubar=no,status=no,resizable=yes");
				NewWindow.moveTo(0, 0);
				NewWindow.focus();
}
