// JavaScript
function setBox(){
	if(document.getElementById("rightBox") && document.getElementById("leftBox")){
	var rightBoxHeight=document.getElementById("rightBox").offsetHeight;
	var leftBoxHeight=document.getElementById("leftBox").offsetHeight;

		if(rightBoxHeight < leftBoxHeight){
			document.getElementById("rightBox").style.height=leftBoxHeight + "px";	
		}
	}
}

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

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

function openWin (URL,Wid,Hei) {
	aWindow = window.open(URL,"OpenWin",
        'toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + openWin.arguments[1] +
        ',height=' + openWin.arguments[2]);
}

function openWinToolbar (URL,Wid,Hei) {
     aWindow = window.open(URL,"_blank",
        'toolbar=yes,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + openWinToolbar.arguments[1] +
        ',height=' + openWinToolbar.arguments[2]);
}

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