function ReloadMenu(stat, mnunr)
{

if (stat=='over')
{
 switch (mnunr)
 {
	case 1:
		window.document.ENTER_PAGE.src='pictures/introduction_p03_h.jpg';
	break;
 }
}
else if (stat=='out')
{
 switch (mnunr)
 {
	case 1:
		window.document.ENTER_PAGE.src='pictures/introduction_p03.jpg';
	break;
 }
}
}

function MainMenu(stat, mnunr, subpath)
{

if (stat=='over')
{
 switch (mnunr)
 {
	case 1:
		window.document.STARTSEITE.src=subpath+'pictures/menu_btn_01_hover.jpg';
	break;
	case 2:
		window.document.WIR_UEBER_UNS.src=subpath+'pictures/menu_btn_02_hover.jpg';
	break;
	case 3:
		window.document.TECHNIK.src=subpath+'pictures/menu_btn_03_hover.jpg';
	break;
	case 4:
		window.document.JUGENDFEUERWEHR.src=subpath+'pictures/menu_btn_04_hover.jpg';
	break;
	case 5:
		window.document.VEREIN.src=subpath+'pictures/menu_btn_05_hover.jpg';
	break;
	case 6:
		window.document.GAESTEBUCH.src=subpath+'pictures/menu_btn_06_hover.jpg';
	break;
	case 7:
		window.document.LINKS.src=subpath+'pictures/menu_btn_07_hover.jpg';
	break;
	case 8:
		window.document.IMPRESSUM.src=subpath+'pictures/menu_btn_08_hover.jpg';
	break;
	case 9:
		window.document.AKTUELLES.src=subpath+'pictures/menu_btn_09_hover.jpg';
	break;
	case 10:
		window.document.WISSENSWERTES.src=subpath+'pictures/menu_btn_10_hover.jpg';
	break;
	case 11:
		window.document.EINSAETZE.src=subpath+'pictures/menu_btn_11_hover.jpg';
	break;
 }
}
else if (stat=='out')
{
 switch (mnunr)
 {
	case 1:
		window.document.STARTSEITE.src=subpath+'pictures/menu_btn_01.jpg';
	break;
	case 2:
		window.document.WIR_UEBER_UNS.src=subpath+'pictures/menu_btn_02.jpg';
	break;
	case 3:
		window.document.TECHNIK.src=subpath+'pictures/menu_btn_03.jpg';
	break;
	case 4:
		window.document.JUGENDFEUERWEHR.src=subpath+'pictures/menu_btn_04.jpg';
	break;
	case 5:
		window.document.VEREIN.src=subpath+'pictures/menu_btn_05.jpg';
	break;
	case 6:
		window.document.GAESTEBUCH.src=subpath+'pictures/menu_btn_06.jpg';
	break;
	case 7:
		window.document.LINKS.src=subpath+'pictures/menu_btn_07.jpg';
	break;
	case 8:
		window.document.IMPRESSUM.src=subpath+'pictures/menu_btn_08.jpg';
	break;
	case 9:
		window.document.AKTUELLES.src=subpath+'pictures/menu_btn_09.jpg';
	break;
	case 10:
		window.document.WISSENSWERTES.src=subpath+'pictures/menu_btn_10.jpg';
	break;
	case 11:
		window.document.EINSAETZE.src=subpath+'pictures/menu_btn_11.jpg';
	break;
 }
}

}

function ShowMessageStr(TextLength, Check)
{
 switch(Check)
 {
 	case 0:
		postmaxlength = 20000;
	break;
	case 1:
		postmaxlength = 500;
	break;
	case 2:
		postmaxlength = 255;
	break;
 }

 if (TextLength>=postmaxlength)
 {
  	return "Sie haben "+ TextLength +" Zeichen geschrieben. Dies sind leider "+
	   (TextLength-postmaxlength) + " zu viel.";
 }
 else
 {
	return "Sie haben "+ TextLength +" Zeichen geschrieben. Sie können noch "+
	   (postmaxlength-TextLength) + " schreiben.";
 }

}


