
/* General */
function FormSubmit(strFormName) {
    document.getElementById(strFormName).submit()
}

/* CAP Data */
function ShowTab(strTabId) {
    var strTechnicalDsiplay='none';
    var strEquipmentDsiplay='none';
    var strTechnicalTabBG='url(images/cap_tab_off.gif)';
    var strTechnicalTabColor='#666666';
    var strEquipmentTabBG='url(images/cap_tab_off.gif)';
    var strEquipmentTabColor='#666666';
    var objTechnical=document.getElementById(CAPTab.TechnicalId);
    var objTechnicalTab=document.getElementById(CAPTab.TechnicalTabId);
    var objEquipment=document.getElementById(CAPTab.EquipmentId);
    var objEquipmentTab=document.getElementById(CAPTab.EquipmentTabId);
    if (strTabId==CAPTab.TechnicalId) { 
        strTechnicalDsiplay='block';
        strTechnicalTabBG='url(images/cap_tab_on.gif)';
        strTechnicalTabColor='#ffffff';
    }
    else if (strTabId==CAPTab.EquipmentId) { 
        strEquipmentDsiplay='block';
        strEquipmentTabBG='url(images/cap_tab_on.gif)';
        strEquipmentTabColor='#ffffff';
    }
    objTechnical.style.display=strTechnicalDsiplay;
    objEquipment.style.display=strEquipmentDsiplay;
    objTechnicalTab.style.backgroundImage=strTechnicalTabBG;
    objTechnicalTab.style.color=strTechnicalTabColor;
    objEquipmentTab.style.backgroundImage=strEquipmentTabBG;
    objEquipmentTab.style.color=strEquipmentTabColor
}

function ShowTechnicalTab() {
    ShowTab(CAPTab.TechnicalId)
}

function ShowEquipmentTab() {
    ShowTab(CAPTab.EquipmentId)
}

function Tab() {
    this.TechnicalId='Technical';
    this.EquipmentId='Equipment';
    this.TechnicalTabId='TechnicalTab';
    this.EquipmentTabId='EquipmentTab';
    this.ShowTechnical=ShowTechnicalTab;
    this.ShowEquipment=ShowEquipmentTab
}
var CAPTab = new Tab();

/* End */
