

function fitSize(){
    if((Prototype.Browser.IE)||(Prototype.Browser.Opera)){
        var height;
        if (typeof document.documentElement != 'undefined'
            && typeof document.documentElement.clientWidth != 'undefined'
            && document.documentElement.clientWidth != 0){
            height = document.documentElement.clientHeight
        }
        else{
            height = document.getElementsByTagName('body')[0].clientHeight
        }
        if(document.getElementById('id_mainTableFilter')){
            height-=document.getElementById('id_mainTableFilter').offsetHeight;
        }
        height-=2;
        if(document.getElementById('id_mainTableContent') != null ){
            document.getElementById('id_mainTableContent').style.height=height+'px';
        }
    }
}

function submitSearchAction(form){
    var valid=true;
    if(valid){
        document.getElementById("printAction").style.display="none";
        showLoad();
        form.submit();
    }
}
function copyAndPrintSearchForm(searchForm){
    var searchAction=searchForm.action;
    var printForm = searchForm;
    printForm.action="print";
    printForm.submit();
    
    searchForm.action=searchAction;
}


function showMarkerInfo(index){
    if(window.mapsFrame.markerList){
        if(window.mapsFrame.markerList[index]){
            window.mapsFrame.markerList[index].openInfoWindow(window.mapsFrame.getMarkerText(index));
        }
    }
}

function showRoute(index){
    window.mapsFrame.calcRoute(index);
}


