
function displayTranslationForm(elementId, section, keyword, language)
{
	
		var xOffset = 50;
		var yOffset = 50;
		
		jQuery("body").append("<div id='preview'></div>");
		
		var form = '';
		var offset = jQuery("#" + elementId).offset();
		
		form  += "<form action='/backoffice/index.php?action=translate' method='POST'>";
		form += "<input type='hidden' name='keyword' value='" + keyword + "'>";
		form += "<input type='hidden' name='langId' value='" + language + "'>";
		form += "<input type='hidden' name='retUrl' value='" + window.location.href + "'>";
		form += "<input type='hidden' name='section' value='" + section + "'>";
		
		form += '<textarea name="translation" id="translationArea" class="input-textarea" >' + jQuery("#" + elementId).html() + '</textarea>';
					
		form += "<input type='Submit' value='Save'>&nbsp;<input type='button' value='Back' onclick='javascript:jQuery(\"#preview\").remove();'>";
		form += "</form>";
		jQuery("#preview").append(form);
		
		jQuery("#preview")
		.css("top",offset.top + yOffset + "px")
		.css("left", offset.left + xOffset + "px")
		.fadeIn("fast");
		
		jQuery("#translationArea").fck({path: '/js/fckeditor/', toolbar: "Admin", config: {EditorAreaCSS: '/css/unified.css' }} );
		/*
				var FCKeditor = new FCKeditor( 'translationArea' ) ; 
				FCKeditor.BasePath = '/js/fckeditor/' ; 
				FCKeditor.ToolbarSet = 'Admin' ; 
				FCKeditor.Height = 700 ; 
				FCKeditor.EditorAreaCSS = '../../cvsmd.css' ; 
				FCKeditor.ReplaceTextarea() ;
		*/
}

