function meritoHead() {
	
	this.addInlineJScript = AddInlineJScript;
	this.addFileJScript = AddFileJScript;
	
	function AddInlineJScript( JScriptText ) {
		
		var head = document.getElementsByTagName("head")[0];
		
		var jscript = document.createElement('script');
		jscript.type = 'text/javascript';
		jscript.text = JScriptText;
		
		head.appendChild( jscript );
	}
	
	function AddFileJScript( JSFilename ) {
		
		var head = document.getElementsByTagName("head")[0];
		
		var jscripts = head.getElementsByTagName( "script" );
		var count = jscripts.length;
		var found = false;
		
		var jscript = document.createElement('script');
		jscript.type = 'text/javascript';
		jscript.src = JSFilename;
		
		//because the baseurl is added to jscript.src automaticaly 
		// [or not if JSFilename has URL like struct]
		//the compare is set here
		
		if ( count ) {
			
			for (i = 0; i < count; i++ ) {
				
				if ( jscripts[i].src == jscript.src ) {
					
					found = true;
					break;
				}
			}
		}
		
		//if script not found
		if ( !found ) {
			
			//add script to document's head
			head.appendChild( jscript );
		}
		
		return true;  
	}
	
}