function getForm(which){
	var fr = document.getElementById('searchForm');
    var dva = document.getElementById('dva');
    var dfl = document.getElementById('dfl');
    var dhot = document.getElementById('dhotels');
    var dcar = document.getElementById('dcar');
    var schfl = document.getElementById('schfl');
    var chfl = document.getElementById('chfl');
    var tab1 = document.getElementById('tab1');
    var tab2 = document.getElementById('tab2');
    var tab3 = document.getElementById('tab3');
    var tab4 = document.getElementById('tab4');
	if (which == 'fl'){
		fr.src = "http://skyc39.book.openfares.com/";
        dfl.style.background = '#65B4FB';
        dva.style.background = 'none';
        dcar.style.background = 'none';
        chfl.style.background = 'none';
	} else if (which == 'va') {
		fr.src="http://vas.sax.softvoyage.com/cgi-bin/queryforf.cgi?code_ag=vas&alias=B17&language=en";
        tab1.className = 'tab-active1';
        tab2.className = 'tab';
        tab3.className = 'tab';
        tab4.className = 'tab';
	}
	if (which == 'cr'){
		fr.src = "http://cruises.ian.com/default.asp?cid=166655";

	} else if (which == 'hot') {
		fr.height = '375';
		fr.src="http://new.altaircanada.com/frames/hotels.php";
        dhot.style.background = '#65B4FB';
        dva.style.background = 'none';
        dcar.style.background = 'none';
        chfl.style.background = 'none';
	}  else if (which == 'car') {
		fr.src="http://new.altaircanada.com/frames/carrent.php";
        dcar.style.background = '#65B4FB';
        dva.style.background = 'none';
        dfl.style.background = 'none';
        chfl.style.background = 'none';
	} else if (which == 'schflb') {
		fr.src="http://skyc39.book.openfares.com/";
        schfl.style.background = '#65B4FB';
        chfl.style.background = 'none';
	} else if (which == 'chflb') {
		fr.src="http://vas.sax.softvoyage.com/cgi-bin/querylast.cgi?code_ag=vas&alias=B17&language=en";
        tab2.className = 'tab-active1';
        tab1.className = 'tab';
        tab3.className = 'tab';
        tab4.className = 'tab';
	} else if (which == 'chfln') {
		fr.src="http://vas.sax.softvoyage.com/cgi-bin/querycharter.cgi?code_ag=vas&alias=B17&language=en&";
        tab3.className = 'tab-active1';
        tab2.className = 'tab';
        tab1.className = 'tab';
        tab4.className = 'tab';
    } else if (which == 'schfln') {
        fr.src="http://ws.globaltsg.com/TSGWebServicesWebApp/ISearchPanel.aspx?AID=7433915&module=air";
        tab4.className = 'tab-active1';
        tab2.className = 'tab';
        tab3.className = 'tab';
        tab1.className = 'tab';
	}
}

function popstatic()
{
	var newwindow;
	newwindow=window.open('searchmap.htm','name','height=600,width=615,resizable=no,minimize=no,maximize=no');

}
function poptastic(url)
{
	var newwindow;
	newwindow=window.open(url,'name','height=600,width=750,resizable=yes,minimize=no,maximize=no');

}