//	***************************************************************************
//		This code is property of:
//
//		©	Faber&Moldenhauer GmbH&Co.KG
//			Alaunstraße 71b / Timaeusvilla
//			01099 Dresden
//			Tel: 0351 / 84 389 700
//			Fax: 0351 / 84 389 702
//			www.famosys.de
//
//		and may not be used without written permission.
//		Neither for private nor for commercial use. This
//		prohibition does also include any open source
//		projects
//
//		Violation will be at least EUR 30.000
//
//		-----------------------------------------------------------------------
/**	@file		basics.js
*	@brief		Javascript Basis Funktionen
*	@author		au
*	@since		12.06.07
*/
//	***************************************************************************

//	---------------------------------------------------------------------------
/**	@brief	create js image hover effects
*
* 	@param sRoot	(string) toolbox sGetPathRoot
* 	@param sName	(string) hover filename
* 	@param sTarget	(string) img name attribute value
*
*	@author	au
*
*	@date	04.06.07	Start
*/
//	---------------------------------------------------------------------------
function ChangeImagePlain(sRoot, sName, sTarget)
{
	sName = sRoot + "images/" + sName;
	pI = document.images[sTarget];
	pI.src = sName;
	return;
}

//	---------------------------------------------------------------------------
/**	@brief	fixes the "click to activate" behavious (eolas) - call it onload
*
*	@author	au
*
*	@date	04.06.07	Start
*/
//	---------------------------------------------------------------------------
function FixEolas() {
	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++) {
	   theObjects[i].outerHTML = theObjects[i].outerHTML;
	} //next
	return;
}

//	---------------------------------------------------------------------------
/**	@brief	Gibt den Md5 Hash des Inhalts eines Input Elements zurück
*
*	@param	sId		(string) Id eines HTML Elements
*
*	@return	sRet	(string) md5 Hash des Inhalts des Input Felds mit der id SId
*
*	@author	au
*
*	@date	06.06.07	Start
*/
//	---------------------------------------------------------------------------
function Md5ByInputId(sId) {
	sRet = hex_md5(document.getElementById(sId).value);
	return sRet;
}