// JavaScript Document


/* basic variables   --- DO NOT TRANSLATE THIS  */
var firstSelect = '#theme'   // the id of the first select
var secondSelect = '#subject'  //the id of the second select
var configurator = '.configurator' // name of the configuration div (in this case defined by a class)
var confBox = '<div class=\"configurator\" style=\"display:none;\"><\/div>' // this is appended at the end of the body to put the configuration inside
var xtraOpts = '#divDisplay'  // the id of the element that puts in relationship the options and the elements to show

var exclusion = '.readonly'  // this class will be excluded from the clear fields actions
/* end basic variables */

/*  default texts   NEEDS TO BE TRANSLATED */ 
var def1stOpt = 'Selecteer';              //default text for 1st select 
var def2ndOpt = 'Selecteer een onderwerp';   // default text for 2nd select 
var second1stOpt = 'Selecteer alstublieft';  // first option for 2nd select
/* end default texts */






/*###########################EXTRA FUNCTIONS############################*/

function firstSelXtras(){

};

function secondSelXtras(){
/* this function switches the textarea name to "message" when  #brochureOpts  is displayed */
var visible = $('#brochureOpts').css("display")

if ( visible != 'none') {
		var obj = "textarea[@name=coments]"
		var name = 'message';
		$(obj).attr('name',name);
	}
	else {
		var obj = "textarea[@name=message]"
		var name = 'coments';
		$(obj).attr('name',name);
	}
	
};
/*###########################END EXTRA FUNCTIONS############################*/


/*######################### SELECT OPTION LIST ######################*/
/* the following code cannot have any breaking line, like others we have.  
to generate it, try my contact form field generator, ask a webmaster how to find it */

var cfig = '<ol id="divDisplay"><li title="5037">#brochureOpts</li><li title="5038">#brochureOpts</li></ol><ul id="Informatie over Zomerkampen" title="1"><li title="5037">Spaanse studenten </li><li title="5038">Buitenlandse studenten </li></ul><ul id="Ingeschreven studenten" title="2"><li title="5032">Vraag en klachten</li></ul><ul id="Human Recourses" title="3"><li title="5033">CV Monitor zomerkampen</li></ul><ul id="Agentschappen" title="4"><li title="5034">Algemene informatie</li><li title="5034">Nieuwe klanten</li><li title="5034">Beurzen en congressen</li></ul><ul id="Verschillende" title="5"><li title="5035">Andere onderwerpen</li><li title="5036">Managment van links</li></ul>'
