﻿

//-------------------------------------------------------------------------------
function OnLoad()
//-------------------------------------------------------------------------------
{
/*
	try {
		var p = window.parent.frames["Banner"].document;
		var title = p.getElementById("divPageTitle");
		title.innerHTML = "DIF ! Droit individuel à la formation";
    }
    catch(e)
    {
		var title = document.getElementById("divTitle1")
		title.innerHTML = "DIF ! Droit individuel à la formation";
		title = document.getElementById("divTitle")
		//title.style="DISPLAY: block"
		title.style.display = "";
    }
    */
    return true;
}

//-------------------------------------------------------------------------------
function OnSubmit()
//-------------------------------------------------------------------------------
{
    var button = document.elementFromPoint(event.clientX, event.clientY);
    if (!button || button.id == "Cancel") return true;

    if (!Validator.OnSubmit()) return false;
    return true;
}

//-------------------------------------------------------------------------------
function OnFieldClick(FieldID, DataName)
//-------------------------------------------------------------------------------
{
    var field = new Object();
    field.Label = $get('lab' + DataName);
    field.ID = $get(DataName);
    field.FieldID = FieldID;
    //field.DataName = DataName;
    
    DBox.ComplexField = field;
    DBox.Show();

    return false; 
}

//-------------------------------------------------------------------------------
function OnCancel() 
//-------------------------------------------------------------------------------
{
    DBox.OnCancel();
}

//-------------------------------------------------------------------------------
function $get(ID)
//-------------------------------------------------------------------------------
{
    return document.all ? document.all[ID] : document.getElementById(ID);
}

