function initHelp(context){
	if(context === undefined) context = "";
	
	$(context+" .calendarInfo").each(function(i) {
		if (context !== "") {
			$(this).find("input").removeAttr("class");
			$(this).find("input").addClass("form-control")
			$(this).find(".ui-datepicker-trigger").remove();
		}
		$(this).find("input").datepicker({
			changeMonth: true,
			changeYear: true,
			constrainInput: false,
			dateFormat: 'yy-mm-dd'
		});
	});
	$(context+" .infoImg").click(function(e) {
        var show = $(this).next().is(":hidden");
	    $("div.info:visible").hide("fast");
	    if (show){
	        $(this).next().show("fast");
	    };
    });
	$("div.info:visible").hide();
	$(context+" div.info").click(function(e) {
        $(this).hide("fast");
    });
    $(document).keyup(function(e) {
    	// pressing the escape key
  		if (e.keyCode == 27) { 
	        $("div.info:visible").hide("fast");
  		}   
	});
    $(context+" div.info ol a").click(function(e) {
    	e.preventDefault(); 
        $(this).parent().parent().parent().next().val($(this).attr("val"));
        $(this).parent().parent().parent().hide("fast");
    });    
}
/**
 * This method initialises the "help utility" of the forms
 * @param {String} context - is used to add events only to a specific context. 
 * 	-remember to add the (#) symbol in the parameter-. (this parameter can be omitted).
 */
This method initialises the "help utility" of the forms
@param {String} context - is used to add events only to a specific context.
-remember to add the (#) symbol in the parameter-. (this parameter can be omitted).
This method initialises the " help utility " of the forms @param { String } context - is used to add events only to a specific context . - remember to add the ( # ) symbol in the parameter - . ( this parameter can be omitted ) .
function initHelp(context){
	if(context === undefined) context = "";
	$(context+" .calendarInfo").each(function(i) {
		if (context !== "") {
			$(this).find("input").removeAttr("class");
			$(this).find("input").addClass("form-control")
			$(this).find(".ui-datepicker-trigger").remove();
		}
		$(this).find("input").datepicker({
			changeMonth: true,
			changeYear: true,
			constrainInput: false,
			dateFormat: 'yy-mm-dd'
		});
	});
	$(context+" .infoImg").click(function(e) {
        var show = $(this).next().is(":hidden");
	    $("div.info:visible").hide("fast");
	    if (show){
	        $(this).next().show("fast");
	    };
    });
	$("div.info:visible").hide();
	$(context+" div.info").click(function(e) {
        $(this).hide("fast");
    });
    $(document).keyup(function(e) {
  		if (e.keyCode == 27) { 
	        $("div.info:visible").hide("fast");
  		}   
	});
    $(context+" div.info ol a").click(function(e) {
    	e.preventDefault(); 
        $(this).parent().parent().parent().next().val($(this).attr("val"));
        $(this).parent().parent().parent().hide("fast");
    });    
}
function initHelp ( context ) { if ( context === undefined ) context = "" ; $ ( context + " .calendarInfo" ) . each ( function ( i ) { if ( context !== "" ) { $ ( this ) . find ( "input" ) . removeAttr ( "class" ) ; $ ( this ) . find ( "input" ) . addClass ( "form-control" ) $ ( this ) . find ( ".ui-datepicker-trigger" ) . remove ( ) ; } $ ( this ) . find ( "input" ) . datepicker ( { changeMonth : true , changeYear : true , constrainInput : false , dateFormat : 'yy-mm-dd' } ) ; } ) ; $ ( context + " .infoImg" ) . click ( function ( e ) { var show = $ ( this ) . next ( ) . is ( ":hidden" ) ; $ ( "div.info:visible" ) . hide ( "fast" ) ; if ( show ) { $ ( this ) . next ( ) . show ( "fast" ) ; } ; } ) ; $ ( "div.info:visible" ) . hide ( ) ; $ ( context + " div.info" ) . click ( function ( e ) { $ ( this ) . hide ( "fast" ) ; } ) ; $ ( document ) . keyup ( function ( e ) { if ( e . keyCode == 27 ) { $ ( "div.info:visible" ) . hide ( "fast" ) ; } } ) ; $ ( context + " div.info ol a" ) . click ( function ( e ) { e . preventDefault ( ) ; $ ( this ) . parent ( ) . parent ( ) . parent ( ) . next ( ) . val ( $ ( this ) . attr ( "val" ) ) ; $ ( this ) . parent ( ) . parent ( ) . parent ( ) . hide ( "fast" ) ; } ) ; }
This method initialises the "help utility" of the forms
 @param {String} context - is used to add events only to a specific context.
This method initialises the " help utility " of the forms @param { String } context - is used to add events only to a specific context .
// pressing the escape key