/*************************************************************/
/******************* default .js *****************************/
/*************************************************************/


//************************************************************
// Tabelle Linie MousOver / MousOut



	function MouseOverLine(obj,sKlasse) {
	
		if (obj != null && sKlasse != null)	
		{
			obj.className = sKlasse;
		}
	}
	
	
	function MouseOutLine(obj,sKlasse) {
	
		if (obj != null && sKlasse != null)	
		{
			obj.className = sKlasse;
		}
	}



//************************************************************
// Popup 


	function hald_openwin(myfile,width,height){
		if( !width ) width = 400;
		if( !height ) height = 400;
		var now=new Date()
		winname="a" + now.getTime()
		params = "width="+width+",height="+height+",resizable=1,status=1,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0 ";
		newwin = window.open( myfile, winname , params)
		if( window.focus ) newwin.focus();
	}
	
	function hald_openwinfix(myfile,width,height){
		if( !width ) width = 400;
		if( !height ) height = 400;
		var now=new Date()
		winname="a" + now.getTime()
		params = "width="+width+",height="+height+",resizable=0,status=1,scrollbars=0,toolbar=0,location=0,directories=0,menubar=0 ";
		newwin = window.open( myfile, winname , params)
		if( window.focus ) newwin.focus();
	}
	
//************************************************************
/* show div */

	function showdiv(sIDshow, sIDhide) {
	
		if ( sIDshow != '') {
			document.getElementById(sIDshow).style.display = "block";
		}
		
		if ( sIDhide != '') {
			document.getElementById(sIDhide).style.display = "none";
		}
	
	}
	
	
//***********************************************************
/* Switch Element */
	
	function switchElement(sID) {
	
		if ( sID != null)
		{
			if ( document.getElementById(sID).style.display == "none" )
			{
				document.getElementById(sID).style.display = "block"	
			}else
			{
				document.getElementById(sID).style.display = "none"	
			}
		}
	
	}
	
//***********************************************************
/* Select all Ckeckboxes / Unselect all Checkboxes */

	function selectAll(sID,iAnz)
	{
		if ( sID != null && iAnz != null )
		{
			for (var i = 1; i <= iAnz; i++ )
			{
				document.getElementById(sID+i).checked = true;
			}
		}
	}
	
	function unselectAll(sID,iAnz)
	{
		if ( sID != null && iAnz != null )
		{
			for (var i = 1; i <= iAnz; i++ )
			{
				document.getElementById(sID+i).checked = false;
			}
		}
	}




//***********************************************************
/* load/unload ImageMovie */

	function loadImageMovie(sID,sPath) 
	{		
		if (sID != null && sPath != null )
		{			
			document.getElementById(sID).src = sPath;
		}
	}








	