//Code JavaScript concernant l'interface Web du projet 
//Auteurs
//	Paul Peltier
//Date de création
//	28/11/2000

//--------------------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------------------
//Table d'information (no applet) - Projet INRS
//--------------------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------------------

//Accède à un ensemble d'informations pour une notions
//Paramètre
//	strForm - le type de données
//	iType - le type d'informations demandées
//Liste de valeurs pour iType
//	0 - table des champs obligatoires
//	1 - table des noms explicites pour ces champs
//	2 - table des champs de type numérique
//	3 - table des champs adresse mail
//	4 - doit-on fermer le document quand il est validé (pas de message de validation)
//	5 - message de confirmations
//Auteur
//	Paul Peltier
//Date de création
//	13/12/2001
function getSystemInfo(
	strNotion,
	strType)
{
	var tblRETURNS;
	var strRETURN;
	var boolVALUE;
	var boolRETURN;
	var i;

	if (strNotion == "")
		return(null);

	//On switch sur les différentes valeurs de form
	switch(strNotion)
	{
	case "abon_lettre":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["abon_lettre_nom", "abon_lettre_prenom", "abon_lettre_mail", "abon_lettre_interet"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
	case "abon_revue":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["abon_revue_nom", "abon_revue_nbre", "abon_revue_mail", 
			"abon_revue_exp_no", "abon_revue_exp_rue", "abon_revue_exp_cp", "abon_revue_exp_ville", "abon_revue_exp_pays", 
			"abon_revue_fact_nom", "abon_revue_fact_no", "abon_revue_fact_rue", "abon_revue_fact_cp", "abon_revue_fact_ville", "abon_revue_fact_pays"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_NUMERIC_FIELD_NAMES)
		{
			tblReturns = ["abon_revue_nbre"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abon_revue_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		if (strType == CONST_PTY_ADRESS_CORRESPS)
		{
			tblReturns = [
				["abon_revue_dest_nom", 	"abon_revue_fact_nom"],
				["abon_revue_exp_no", 		"abon_revue_fact_no"],
				["abon_revue_exp_rue", 		"abon_revue_fact_rue"],
				["abon_revue_exp_cp", 		"abon_revue_fact_cp"],
				["abon_revue_exp_ville", 	"abon_revue_fact_ville"],
				["abon_revue_exp_pays", 	"abon_revue_fact_pays"]];
			return(tblReturns);
		}
		return(null);
	case "com_cat":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["com_cat_contact", "com_cat_mail", 
			"com_cat_exp_no", "com_cat_exp_rue", "com_cat_exp_cp", "com_cat_exp_ville", "com_cat_exp_pays", 
			"com_cat_fact_nom", "com_cat_fact_no", "com_cat_fact_rue", "com_cat_fact_cp", "com_cat_fact_ville", "com_cat_fact_pays"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["com_cat_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Votre commande a été transmise au service compétent. L'INRS vous remercie.";
			return(strReturn);
		}
		if (strType == CONST_PTY_ADRESS_CORRESPS)
		{
			tblReturns = [
				["com_cat_contact", 		"com_cat_fact_nom"],
				["com_cat_exp_no", 			"com_cat_fact_no"],
				["com_cat_exp_rue", 		"com_cat_fact_rue"],
				["com_cat_exp_cp", 			"com_cat_fact_cp"],
				["com_cat_exp_ville", 		"com_cat_fact_ville"],
				["com_cat_exp_pays", 		"com_cat_fact_pays"]];
			return(tblReturns);
		}
		return(null);
	case "command_revue":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["command_revue_num_1", "command_revue_qte_1", "command_revue_contact", "command_revue_mail", 
			"command_revue_exp_no", "command_revue_exp_rue", "command_revue_exp_cp", "command_revue_exp_ville", "command_revue_exp_pays", 
			"command_revue_fact_nom", "command_revue_fact_no", "command_revue_fact_rue", "command_revue_fact_cp", "command_revue_fact_ville", "command_revue_fact_pays"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_NUMERIC_FIELD_NAMES)
		{
			tblReturns = ["command_revue_qte_1", "command_revue_qte_2", "command_revue_qte_3", "command_revue_qte_4", "command_revue_qte_5"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["command_revue_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette commande est validée. Merci...";
			return(strReturn);
		}
		if (strType == CONST_PTY_ADRESS_CORRESPS)
		{
			tblReturns = [
				["command_revue_contact", 	"command_revue_fact_nom"],
				["command_revue_exp_no", 	"command_revue_fact_no"],
				["command_revue_exp_rue", 	"command_revue_fact_rue"],
				["command_revue_exp_cp", 	"command_revue_fact_cp"],
				["command_revue_exp_ville",	"command_revue_fact_ville"],
				["command_revue_exp_pays", 	"command_revue_fact_pays"]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_ASSOCIATE_FIELD_NAMES)
		{
			//Attention à 3 dimensions
			tblReturns = [
				["command_revue_num_2", ["command_revue_qte_2"]],
				["command_revue_num_3", ["command_revue_qte_3"]],
				["command_revue_num_4", ["command_revue_qte_4"]],
				["command_revue_num_5", ["command_revue_qte_5"]]];
			return(tblReturns);
		}
		return(null);
		
// ** Intervention Cosmosbay du 06/05/2004 **
// ** Livraison de la DI16-2ème partie, version TS du formulaire "commande de revue" **
case "command_revue_ts":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["cde_num_1", "cde_qte_1", "cde_nom", "cde_email", 
			"cde_telephone", "cde_nom_dest", "cde_prenom_dest", "cde_adresse_dest", "cde_cp_dest",
			"cde_ville_dest", "cde_nom_fact", "cde_prenom_fact", "cde_adresse_fact", "cde_cp_fact", "cde_ville_fact"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_NUMERIC_FIELD_NAMES)
		{
			tblReturns = ["cde_qte_1", "cde_qte_2", "cde_qte_3", "cde_qte_4"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["cde_email"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette commande est validée. Merci...";
			return(strReturn);
		}
		if (strType == CONST_PTY_ADRESS_CORRESPS)
		{
			tblReturns = [
				["cde_nom_dest", 	"cde_nom_fact"],
				["cde_prenom_dest", 	"cde_prenom_fact"],
				["cde_societe_dest", 	"cde_societe_fact"],
				["cde_adresse_dest", 	"cde_adresse_fact"],
				["cde_cp_dest",		"cde_cp_fact"],
				["cde_ville_dest", 	"cde_ville_fact"],
				["cde_pays_dest", 	"cde_pays_fact"]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_ASSOCIATE_FIELD_NAMES)
		{
			//Attention à 3 dimensions
			tblReturns = [
				["cde_num_2", ["cde_qte_2"]],
				["cde_num_3", ["cde_qte_3"]],
				["cde_num_4", ["cde_qte_4"]]];
			return(tblReturns);
		}
		return(null);		
// ** Intervention Cosmosbay du 06/05/2004 **
		
	case "contact":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["contact_nom", "contact_prenom", "contact_tel", "abon_lettre_mail", "contact_no", "contact_cp", "contact_ville", "contact_object", "contact_contexte"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
		
// ** Intervention YDI / HLR du 03/02/2006 **
		
	case "contactJAM":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["contact_nom", "contact_prenom", "contact_tel", "abon_lettre_mail", "contact_no", "contact_cp", "contact_ville", "contact_object", "contact_contexte"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande JAM est validée. Merci...";
			return(strReturn);
		}
		return(null);



// ** Intervention Cosmosbay du 30/12/2003 ** 
// ** Modification suite à la DI16-1er partie, version anglaise du formulaire contact **
	case "contact_en":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["contact_nom", "contact_prenom", "contact_tel", "abon_lettre_mail", "contact_no", "contact_cp", "contact_ville", "contact_object", "contact_contexte"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "This request was validated. Thanks...";
			return(strReturn);
		}
		return(null);
// *** Fin intervention Cosmosbay du 30/12/2003 **

// ** Intervention Cosmosbay du 06/05/2004 **
// ** Modification suite à la DI16-2ème partie, version TS du formulaire contact **
	case "contact_ts":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["contact_nom", "contact_prenom", "contact_tel", "abon_lettre_mail", "contact_no", "contact_cp", "contact_ville", "contact_object", "contact_contexte"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
// ** Intervention Cosmosbay du 06/05/2004 **		
		
	case "desabon_lettre":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["desabon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["desabon_lettre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
	case "envoi_ami":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["envoi_ami_exp_mail", "envoi_ami_dest_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["envoi_ami_exp_mail", "envoi_ami_dest_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = false;
			return(boolReturn);
		}
		return(null);
		
// ** Intervention Cosmosbay du 30/12/2003 **
// ** Modification suite à la DI16-1er partie, version anglaise du formulaire envoi_ami **
	case "envoi_en_ami":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["envoi_ami_exp_mail", "envoi_ami_dest_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["envoi_ami_exp_mail", "envoi_ami_dest_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = false;
			return(boolReturn);
		}
		return(null);
// *** Fin intervention Cosmosbay du 30/12/2003 **
		
	case "inscript_manif":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["inscript_manif_nom", "inscript_manif_prenom", "inscript_manif_ste", "inscript_manif_fonction", "inscript_manif_tel", "inscript_manif_fax", "inscript_manif_mail", 
			"inscript_manif_no", "inscript_manif_rue", "inscript_manif_cp", "inscript_manif_ville", "inscript_manif_pays"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["inscript_manif_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette inscription est validée. Merci...";
			return(strReturn);
		}
		return(null);
	case "resp_offre":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["resp_offre_nom", "resp_offre_prenom", "resp_offre_mail", "naissance", "resp_offre_age", "resp_offre_motivation", "resp_offre_formation", "resp_offre_diplome", "resp_offre_discipline", "resp_offre_etablissement", "resp_offre_experience"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["resp_offre_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_NUMERIC_FIELD_NAMES)
		{
			tblReturns = ["resp_offre_experience"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_DATE_FIELD_NAMES)
		{
			tblReturns = ["naissance"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette candidature est validée. Merci...";
			return(strReturn);
		}
		return(null);


	case "inrs_global_search":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]]];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Version anglaise : recherche simple **
	case "inrs_global_en_search":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]]];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search_en";
			return(strRETURN);
		}
		return(null);


	case "inrs_local_search":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblReturns = [
				["Form", ["IntranetObject:Document"]]];
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strReturn = "inrs-pub/inrs01.nsf";
			return(strReturn);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strReturn = "inrs01_search";
			return(strReturn);
		}
		return(null);

	case "global_search":
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strReturn = "inrs/save_inrs.nsf";
			return(strReturn);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strReturn = "save_inrs_search";
			return(strReturn);
		}
		return(null);

	case "local_search":
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblReturns = [
				["search_doc_info", "doc_info"]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strReturn = "inrs/save_inrs.nsf";
			return(strReturn);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strReturn = "save_inrs_search";
			return(strReturn);
		}
		return(null);

	case "inrs_search_affiches":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblReturns = [
				["Form", ["IntranetObject:Document"]]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblReturns = [
				["local_search_reference", "reference"],
				["local_search_format_faa", "c_formatAA"],
				["local_search_format_fab", "c_formatAB"],
				["local_search_format_fad", "c_formatAD"],
				["local_search_format_faz", "c_formatAZ"],
				["local_search_format_far", "c_formatAR"],
				["local_search_format_tak", "c_tailleAK"],
				["local_search_format_fak", "c_formatAK"]];
		
			return(tblReturns);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strReturn = "inrs-pub/inrs01.nsf";
			return(strReturn);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strReturn = "inrs01_search";
			return(strReturn);
		}
		return(null);

//**** Paramétres pour le formulaire de recherche avancée ****
	case "inrs_recherche_avancee":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblReturns = [
				["Form", ["IntranetObject:Document"]]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblReturns = [
				["field_1", ""],
				["field_2", ""],
				["field_3", ""],			
				["rubriques_chkbx", "rubriques"],
				["caractere_chkbx", "caractere"]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strReturn = "inrs-pub/inrs01.nsf";
			return(strReturn);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strReturn = "inrs01_search";
			return(strReturn);
		}
		return(null);
	
//**** Advanced search : recherche avancée en anglais ****//
	case "inrs_advanced_search":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblReturns = [
				["Form", ["IntranetObject:Document"]]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblReturns = [
				["field_1", ""],
				["field_2", ""],
				["field_3", ""],			
				["rubriques_chkbx", "rubriques"],
				["caractere_chkbx", "caractere"]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strReturn = "inrs-pub/inrs01.nsf";
			return(strReturn);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strReturn = "inrs01_search";
			return(strReturn);
		}
		return(null);
	
	
	case "recherche_inor":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["Inor"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["org_orig", "titre"],
				["sigle", "c_sigle"],
				["pays_fr", "c_pays"],
				["activ_fr", "c_activites"],
				["theme_fr", "c_themes"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inor_search";
			return(strRETURN);
		}
		return(null);

// Etudes PER - Version française //
	case "recherche_etudes":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["Etudes"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["theme_rech_cache", "c_totRech"],
				["nom_cher", "c_totAut"],
				["nom_dpt", "c_departement"],
				["type_etude", "c_statut"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Etudes PER en Anglais //
	case "recherche_etudes_en":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["EnEtudes"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["theme_rech_cache", "c_totRech"],
				["nom_cher", "c_totAut"],
				["nom_dpt", "c_departement"],
				["type_etude", "c_statut"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


	case "recherche_orgagr":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["OrganismeAgree"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["type_agr", "c_typeAgrement"],
				["nom_orgagr", "titre"],
				["nom_region", "c_region"]];
				
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);

	case "recherche_congres":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["Congres"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["theme_cong", "c_totRech"],
				["mois_cong", "c_mois"],
				["annee_cong", "c_annee"],
				["type_chkbx", "c_zoneGeo"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);

	case "recherche_fichetox":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["FicheToxicologique"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["nom_prod_cache", "c_totProd"],
				["num_fiche", "c_totRef"],
				["num_cas", "c_totCas"],
				["num_einecs", "c_totEinecs"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);

	case "recherche_metropol":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["Metropol"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["nom_prod_cache", "c_totProd"],
				["num_cas", "c_totCas"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);
	
	case "recherche_catfor":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["CatalogueAudiovisuel", "CatalogueStage"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["field_1_cache", ""],
				["inrs_ref", "c_totRef"],
				["annee", "date"],
				["type_chkbx", "motsCles"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);

	
	case "biotox_substance":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["BiotoxSubstance"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["fam_chim", "c_famille"],
				["nom_subst_cache", "c_totProd"],
				["nom_dos", "titre"],
				["num_cas", "c_noCas"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);

	

	case "biotox_labo":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["BiotoxLabo"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["region", "c_region"],
				["nom_ville", "c_localite"],
				["fam_chim", "c_famille"],
				["nom_subst", "c_totProd"],
				["nom_dos", "c_dosage"],
				["num_cas", "c_noCas"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Recherche Catalogues - version française //
	case "recherche_catalogue":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["CataloguePapier", "CatalogueAffiche", "CatalogueAudiovisuel", "CatalogueStage", "FicheToxicologique"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["field_1_cache", ""],
				["inrs_ref", "c_totRef"],
				["annee", "date"],
				["collec", "c_collection"],
				["type_chkbx", "type"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Recherche Catalogue DMT - ajout du 6/12/2004 

	case "recherche_dmt":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblReturns = [
				["Form", ["IntranetObject:Document"]]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["field_1_cache", "c_totRech"],
				["inrs_ref", "c_totRef"],
				["annee", "date"],
				["auteur", "auteurs"],
				["collection", "c_collection"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Recherche simple du site DMT - ajout du 15/12/2004

	case "dmt_rechsimple":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]]];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Recherche Catalogue site HST - ajout du 15/6/2005 

	case "recherche_hst":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblReturns = [
				["Form", ["IntranetObject:Document"]]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["field_1_cache", "c_totRech"],
				["inrs_ref", "c_totRef"],
				["annee", "date"],
				["auteur", "auteurs"],
				["collection", "c_collection"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);


// Version en Anglais de la recherche Catalogue (Inrs Products) //
	case "recherche_catalogue_en":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["EnCataloguePapier"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["field_1_cache", ""],
				["inrs_ref", "c_totRef"],
				["annee", "date"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);





	case "recherche_caces":
		if (strType == CONST_PTY_SEARCH_STANDARD_CRITER)
		{
			tblRETURNS = [
				["Form", ["IntranetObject:Document"]],
				["type", ["Caces"]]
				];
			return(tblRETURNS);
		}
		if (strType == CONST_PTY_SEARCH_FIELD_NAMES)
		{
			tblRETURNS = [
				["numeroDpt", "c_codeDep"],
				["nom_org", "titre"],
				["r372_1_chbx", "c_tta"],
				["r372_2_chbx", "c_tta"],
				["r372_3_chbx", "c_tta"],
				["r372_4_chbx", "c_tta"],
				["r372_5_chbx", "c_tta"],
				["r372_6_chbx", "c_tta"],
				["r372_7_chbx", "c_tta"],
				["r372_8_chbx", "c_tta"],
				["r372_9_chbx", "c_tta"],
				["r372_10_chbx", "c_tta"],
				["r377_gma_chbx", "c_tta"],
				["r377_gme_chbx", "c_tta"],
				["r383_1a_chbx", "c_tta"],
				["r383_1b_chbx", "c_tta"],
				["r383_2a_chbx", "c_tta"],
				["r383_2b_chbx", "c_tta"],
				["r383_2c_chbx", "c_tta"],
				["r386_1a_chbx", "c_tta"],
				["r386_1b_chbx", "c_tta"],
				["r386_2a_chbx", "c_tta"],
				["r386_2b_chbx", "c_tta"],
				["r386_3a_chbx", "c_tta"],
				["r386_3b_chbx", "c_tta"],
				["r389_1_chbx", "c_tta"],
				["r389_2_chbx", "c_tta"],
				["r389_3_chbx", "c_tta"],
				["r389_4_chbx", "c_tta"],
				["r389_5_chbx", "c_tta"],
				["r389_6_chbx", "c_tta"],
				["r390_chbx", "c_tta"]];

			return(tblRETURNS);
		}
		if (strType == CONST_PTY_DATABASE_NAME)
		{
			strRETURN = "inrs-pub/inrs01.nsf";
			return(strRETURN);
		}
		if (strType == CONST_PTY_SEARCH_VIEW)
		{
			strRETURN = "inrs01_search";
			return(strRETURN);
		}
		return(null);




// ** Intervention Cosmosbay du 30/12/2003 ** 
// ** Modification suite à la DI16-1er partie, intégration des messages dans différentes langues (fr et en, pour l'instant)**
	case "message_erreur_langues":
		if (strType == CONST_PTY_ERROR_SPECIFIC_MSG)
		{
			tblReturns = [
				["fr-FR",[
					["MailField", " <- mauvais formatage"],
					["NumericField", " <- numérique"],
					["DateField", " <- date incorrecte"],
					["NotFilled", " <- Obligatoire"]
					]
				],
				["en-US",[
					["MailField", " <- invalid format"],
					["NumericField", " <- numerical"],
					["DateField", " <- invalid date"],
					["NotFilled", " <- Compulsory"]
					]
				]
			     ];
			return(tblReturns);
		}
		if (strType == CONST_PTY_ERROR_STANDARD_MSG)
		{
			tblReturns = [
				["fr-FR",[
					["MailField", "Certaines adresses mail sont invalides."],
					["NumericField", "Certains champs contiennent des valeurs non numérique."],
					["DateField", "Certaines dates sont dans un format incorrect."],
					["NotFilled", "Certains champs obligatoires ne sont pas renseignés."]
					]
				],
				["en-US",[
					["MailField", "Some addresses are invalid."],
					["NumericField", "Some numerical values are not entered correctly."],
					["DateField", "Some date formats are invalid."],
					["NotFilled", "Some compulsory fields are not filled in."]
					]
				]
			     ];
			
			return(tblReturns);
		}
		return(null);
// *** Fin intervention Cosmosbay du 30/12/2003 **	

// ** Intervention Cosmosbay du 10/11/2004 **
// ** DI20 : 2ème Etape **
// ** Formulaire n°1 : Contacter la revue DMT **
	case "ctc_dmt":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["ctc_nom", "ctc_prenom", "ctc_tel", "ctc_mail", "ctc_adr", "ctc_cp", "ctc_ville", "ctc_object", "ctc_contexte"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["ctc_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
// ** Formulaire n°2 : S'abonner aux DMT **
	case "abt_dmt":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["abt_nom", "abt_prenom", "abt_mail", "abt_adresse", "abt_cp", "abt_ville", "abt_prof"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abt_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
// *** Fin intervention Cosmosbay du 10/11/2003 **

// ** Intervention Cosmosbay du 13/10/2004 **
// ** DI20 : 1er Etape **
// ** Formulaire n°3 : Proposer un article au DMT **
	case "art_dmt":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["art_nom", "art_prenom", "art_tel", "art_mail", "art_adresse", "art_cp", "art_ville", "art_resume"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["art_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette proposition est validée. Merci...";
			return(strReturn);
		}
		return(null);
		
// ** Formulaire n°4 : Modifier son adresse d'abonnement aux DMT **
		case "abnmt_adr_dmt":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["abt_nom", "abt_prenom", "abt_mail", "abt_cp_old", "abt_adresse", "abt_cp", "abt_ville"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["abt_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette demande est validée. Merci...";
			return(strReturn);
		}
		return(null);
// ** Formulaire n°5 : Commander d'anciens numéros aux DMT **
case "cde_dmt":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["cde_num_1", "cde_qte_1", "cde_nom", "cde_email", 
			"cde_telephone", "cde_nom_dest", "cde_prenom_dest", "cde_adresse_dest", "cde_cp_dest",
			"cde_ville_dest", "cde_nom_fact", "cde_prenom_fact", "cde_adresse_fact", "cde_cp_fact", "cde_ville_fact"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_NUMERIC_FIELD_NAMES)
		{
			tblReturns = ["cde_qte_1", "cde_qte_2", "cde_qte_3", "cde_qte_4"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["cde_email"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = true;
			return(boolReturn);
		}
		if (strType == CONST_PTY_CONFIRMATION_MSG)
		{
			strReturn = "Cette commande est validée. Merci...";
			return(strReturn);
		}
		if (strType == CONST_PTY_ADRESS_CORRESPS)
		{
			tblReturns = [
				["cde_nom_dest", 	"cde_nom_fact"],
				["cde_prenom_dest", 	"cde_prenom_fact"],
				["cde_societe_dest", 	"cde_societe_fact"],
				["cde_adresse_dest", 	"cde_adresse_fact"],
				["cde_cp_dest",		"cde_cp_fact"],
				["cde_ville_dest", 	"cde_ville_fact"],
				["cde_pays_dest", 	"cde_pays_fact"]];
			return(tblReturns);
		}
		if (strType == CONST_PTY_ASSOCIATE_FIELD_NAMES)
		{
			//Attention à 3 dimensions
			tblReturns = [
				["cde_num_2", ["cde_qte_2"]],
				["cde_num_3", ["cde_qte_3"]],
				["cde_num_4", ["cde_qte_4"]]];
			return(tblReturns);
		}
		return(null);
		
// ** Formulaire n°6 : Envoyer ce lien à un pote (Partie DMT) **				
case "envoi_lien_dmt":
		if (strType == CONST_PTY_OBLIG_FIELD_NAMES)
		{
			tblReturns = ["envoi_lien_exp_mail", "envoi_lien_dest_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_MAIL_FIELD_NAMES)
		{
			tblReturns = ["envoi_lien_exp_mail", "envoi_lien_dest_mail"];
			return(tblReturns);
		}
		if (strType == CONST_PTY_CONFIRM_ON_VALIDATION)
		{
			boolReturn = false;
			return(boolReturn);
		}
		return(null);
// ** Fin intervention Cosmosbay du 13/10/2004 **

	}
	return(null);
}
