function checkAlle() {

	for (var i = 0; i < document.frm_auswahl.elements.length; i++) {
		document.frm_auswahl.elements[i].checked = true;

	}
}
function uncheckAlle() {

	for (var i = 0; i < document.frm_auswahl.elements.length; i++) {
		document.frm_auswahl.elements[i].checked = false;

	}
}
function toggleLoader(state) {
	if (state==0) {
		document.getElementById('loader').style.display = 'none';
	}
	else {
		document.getElementById('loader').style.display = 'block';
	}
}
var win=null;
function NewWindow(mypage,titel,breite,hoehe)
{
    var links = (screen.availWidth)?(screen.availWidth-breite)/2:10;
    var oben = (screen.availHeight)?(screen.availHeight-hoehe)/2:10;
    settings='width='+breite+',height='+hoehe+',top='+oben+',left='+links+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
    win=window.open(mypage,titel,settings);
    if(win.focus){win.focus();}
}
function wechselDetailsBild(bild) {
	document.getElementById("grossesBild").innerHTML = '<img src="'+bild+'"/>';
}
function wechselArtikelBild(bild) {
	document.getElementById("grossesBildArtikel").innerHTML = '<img src="'+bild+'"/>';
}

var bisher;

function insert_smilie(smilie) {
	bisher = document.nachrichtenForm.nachricht.value;
  document.nachrichtenForm.nachricht.value=bisher+smilie;
}
function selectNode (node)
{
var selection, range, doc, win;

if ((doc = node.ownerDocument) && (win = doc.defaultView) && typeof
win.getSelection != 'undefined' && typeof doc.createRange !=
'undefined' && (selection = window.getSelection()) && typeof
selection.removeAllRanges != 'undefined')
{
range = doc.createRange();
range.selectNode(node);
selection.removeAllRanges();
selection.addRange(range);
}
else if (document.body && typeof document.body.createTextRange !=
'undefined' && (range = document.body.createTextRange()))
{
range.moveToElementText(node);
range.select();
}

}

function clearSelection ()
{
if (document.selection) document.selection.empty();
else if (window.getSelection) window.getSelection().removeAllRanges();
}

onerror = keinfehler;
function keinfehler(){
	return true;
	}

function toggleDiv(containername) {
	 if(document.getElementById(containername).style.display == 'none') {
			 document.getElementById(containername).style.display='block';
	} 
	 else {
		 document.getElementById(containername).style.display = 'none';
	 }
}
function toggleBlindDiv(containername) {
	 if(document.getElementById(containername).style.display == 'none') {
		 new Effect.BlindDown(containername);
	} 
	 else {
		 new Effect.BlindUp(containername);
	}
}

function jumpTo (anker) {
  document.location.hash = anker;
}

var config = new Object();
//===================  GLOBAL TOOLTIP CONFIGURATION  =========================//
var  tt_Debug	= true		// false or true - recommended: false once you release your page to the public
var  tt_Enabled	= true		// Allows to (temporarily) suppress tooltips, e.g. by providing the user with a button that sets this global variable to false
var  TagsToTip	= true		// false or true - if true, HTML elements to be converted to tooltips via TagToTip() are automatically hidden;
							// if false, you should hide those HTML elements yourself
config. Above			= false 	// false or true - tooltip above mousepointer
config. BgColor 		= '#f8f8f8' // Background colour (HTML colour value, in quotes)
config. BgImg			= ''		// Path to background image, none if empty string ''
config. BorderColor		= '#ec7589'
config. BorderStyle		= 'solid'	// Any permitted CSS value, but I recommend 'solid', 'dotted' or 'dashed'
config. BorderWidth		= 1
config. CenterMouse		= false 	// false or true - center the tip horizontally below (or above) the mousepointer
config. ClickClose		= false 	// false or true - close tooltip if the user clicks somewhere
config. ClickSticky		= false		// false or true - make tooltip sticky if user left-clicks on the hovered element while the tooltip is active
config. CloseBtn		= false 	// false or true - closebutton in titlebar
config. CloseBtnColors	= ['#ec7589', '#FFFFFF', '#ec7589', '#FFFFFF']	  // [Background, text, hovered background, hovered text] - use empty strings '' to inherit title colours
config. CloseBtnText	= '<img src="http://cash/rmc2/images/design/close.png"/>'	// Close button text (may also be an image tag)
config. CopyContent		= true		// When converting a HTML element to a tooltip, copy only the element's content, rather than converting the element by its own
config. Delay			= 400		// Time span in ms until tooltip shows up
config. Duration		= 0 		// Time span in ms after which the tooltip disappears; 0 for infinite duration, < 0 for delay in ms _after_ the onmouseout until the tooltip disappears
config. FadeIn			= 0 		// Fade-in duration in ms, e.g. 400; 0 for no animation
config. FadeOut			= 0
config. FadeInterval	= 30		// Duration of each fade step in ms (recommended: 30) - shorter is smoother but causes more CPU-load
config. Fix				= null		// Fixated position - x- an y-oordinates in brackets, e.g. [210, 480], or null for no fixation
config. FollowMouse		= true		// false or true - tooltip follows the mouse
config. FontColor		= '#000044'
config. FontFace		= 'Arial,sans serif'
config. FontSize		= '12px' 	// E.g. '9pt' or '12px' - unit is mandatory
config. FontWeight		= 'normal'	// 'normal' or 'bold';
config. Height			= 0 		// Tooltip height; 0 for automatic adaption to tooltip content, < 0 (e.g. -100) for a maximum for automatic adaption
config. JumpHorz		= false		// false or true - jump horizontally to other side of mouse if tooltip would extend past clientarea boundary
config. JumpVert		= true		// false or true - jump vertically		"
config. Left			= false 	// false or true - tooltip on the left of the mouse
config. OffsetX			= 14		// Horizontal offset of left-top corner from mousepointer
config. OffsetY			= 8 		// Vertical offset
config. Opacity			= 100		// Integer between 0 and 100 - opacity of tooltip in percent
config. Padding			= 3 		// Spacing between border and content
config. Shadow			= false 	// false or true
config. ShadowColor		= '#C0C0C0'
config. ShadowWidth		= 5
config. Sticky			= false 	// false or true - fixate tip, ie. don't follow the mouse and don't hide on mouseout
config. TextAlign		= 'left'	// 'left', 'right' or 'justify'
config. Title			= ''		// Default title text applied to all tips (no default title: empty string '')
config. TitleAlign		= 'left'	// 'left' or 'right' - text alignment inside the title bar
config. TitleBgColor	= '#ec7589'		// If empty string '', BorderColor will be used
config. TitleFontColor	= '#FFFFFF'	// Color of title text - if '', BgColor (of tooltip body) will be used
config. TitleFontFace	= ''		// If '' use FontFace (boldified)
config. TitleFontSize	= ''		// If '' use FontSize
config. Width			= 0 		