var ausf	=	new	Array();
var equip	=	new	Array();
equip[ 0 ]	=	new Array();

// JavaScript Document <- alles klar... Setzt vermutlich die Höhe der Inhalte der rechten Seite neu
function resizeSP () {
	var hoehe;
	hoehe = document.getElementById('INFOH').offsetHeight;
	document.getElementById('SP1').style.height = hoehe - 14 +'px';
	document.getElementById('SP2').style.height = hoehe - 14 +'px';
}

/*
	bekommt Artikel und AusführungsID übergeben
	holt sich die Anzahl, lädt das Addfenster als neues Fenster
*/
function addWK( ArtID, StyleID, MinCount, WKID )
{
	Action	=	"add";
	InpID	=	'wk_value_' + ArtID + "_" + StyleID;
	Anzahl	=	document.getElementById( InpID ).value;

	if( isNaN( Anzahl ) )
	{
		alert( InsertNumber );
	}
	else
	{
		// Artikel ist unterhalb der minimalen Bestellmenge
		if( Anzahl < MinCount )
		{
			alert( LowBasketCount + ": " + MinCount );
		}
		else
		{
			if( WKID < 0 ) {
				alert( FormFailure[ "no_equipment_without_item" ] );
			}
			else {
				fenster	=	window.open("change_wk.asp?action=" + Action + "&idart=" + ArtID + "&anzahl=" + Anzahl + "&idaus=" + StyleID + "&idwk=" + WKID,"", "width=1,height=1,left=-100,top=-100,status=yes");
			}
		}
	}
}

/*
	ruft ein Fenster auf, welches einen Eintrag aus dem Warenkorb löscht.
*/
function delWK( ArtID, AusfID )
{
	Action	=	"del";
	if( isNaN( AusfID ) ) { AusfID = 0 };
	fenster	=	window.open("change_wk.asp?action=" + Action + "&idart=" + ArtID + "&idaus=" + AusfID, "", "width=1,height=1,left=-100,top=-100,status=yes");
}
// löscht ein Zubehör zu einem Artikel aus dem Warenkorb
function delZub( ZubID, WKID )
{
	Action	=	"del"
	fenster	=	window.open("change_wk.asp?action=" + Action + "&idart=" + ZubID + "&idwk=" + WKID, "", "width=1,height=1,left=-100,top=-100,status=yes");
}

/*
	Für den Formchecker.
*/
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

/*
	Zum Formularchecken.
*/
function MM_validateForm() { //v4.0 
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' ist erforderlich.\n'; }
  } if (errors) alert(Formerror);
  document.MM_returnValue = (errors == '');
}

/*
	Prüft bei den Visitenkarten, ob eine falsche Eingabe gemacht wurde
*/
function checkBestellung()
{
	return true;
}

/*
	Prüft, ob bei den Artikeln Enter gedrück wird und aktiviert bei
	Bedarf die add Funktion.
*/
function checkEnter(ArtID, StyleID, MinCount, WKID )
{
	Browser = navigator.appName;
	if( Browser == "Netscape" )
	{
		if( EnterHit )
		{
			addWK( ArtID, StyleID, MinCount, WKID );
		}
	}
	else
	{
		key	=	window.event.keyCode;
		if( key == 13)
		{
			addWK( ArtID, StyleID, MinCount, WKID );
		}
	}

}

var	EnterHit	=	false;

function checkEnterAll( Ereignis )
{
	Browser	=	navigator.appName;
	if( Browser == "Netscape" )
	{
		if( Ereignis.which == 13 )
		{
			EnterHit	=	true;
		}
		else
		{
			EnterHit	=	false;
		}
	}
}

function checkBusinessCard()
{
	return true;
}

document.onkeydown = checkEnterAll;
/*
	reagiert auf Änderung einer Ausführung
	setzt Preis und Artikelnummer neu anhand des dynamisch generierten Arrays
*/
function changeArt( ID, Sel ) {
	if( src = ausf[ ID ][ Sel.options[ Sel.selectedIndex ].value ] ) {
		document.getElementById( "artnr" + ID ).innerHTML		=	src[ 0 ];
		document.getElementById( "preisdiv" + ID ).innerHTML	=	src[ 1 ];
		document.getElementById( "wk_value_" + ID ).value		=	src[ 2 ];
	}
	else {
		document.getElementById( "artnr" + ID ).innerHTML		=	"";
		document.getElementById( "wk_value_" + ID ).value		=	"";
		if( src = ausf[ ID ][ Sel.options[ 1 ].value ] ) {
			document.getElementById( "preisdiv" + ID ).innerHTML	=	src[ 1 ];
		}
	}
}

function changeArtDetail( ID, Sel ) {
	hideallFields();
	
	AID	=	0;
	if( src = ausf[ ID ][ Sel.options[ Sel.selectedIndex ].value ] ) {
		AID	= Sel.options[ Sel.selectedIndex ].value;
//		document.getElementById( "imgdetail" ).style.backgroundImage	=	"url(" + src[ 2 ] + ")";
		document.getElementById( "imgsrc" ).src	=	src[ 2 ];
		document.getElementById( "PREIS2" ).innerHTML	=	src[ 1 ];
		if( atext = document.getElementById( "ausftext" + Sel.options[ Sel.selectedIndex ].value ) ) {
			atext.style.visibility	=	"visible";
		}
		if( atext = document.getElementById( "ausftext" + Sel.options[ Sel.selectedIndex ].value ) ) {
			atext.style.position	=	"static";
		}
		document.getElementById( "wk_value_" + ID ).value = src[ 3 ];
		document.getElementById( "stylename" ).innerHTML	=	src[ 4 ];
	}
	else {
		if( src = ausf[ ID ][ 0 ] ) {
			document.getElementById( "imgdetail" ).style.backgroundImage	=	"url(" + src[ 2 ] + ")";
			document.getElementById( "PREIS2" ).innerHTML	=	src[ 1 ];
			document.getElementById( "ausftext1" ).style.visibility	=	"visible";
			document.getElementById( "ausftext1" ).style.position	=	"static";
			document.getElementById( "wk_value_" + ID ).value = src[ 3 ];
			document.getElementById( "stylename" ).innerHTML	=	src[ 4 ];
		}
	}
	changeEquip( AID );
	calculateEquip( ID );
	calculateItem( ID );
}

function changeEquip( AID ) {
	for( i=0; i<equip[ AID ].length; i++ ) {
		anz			=	document.getElementById( "zub" + i );
		anz.value	=	equip[ AID ][ i ][ 3 ];
	}
}


function hideallFields() {
	Counter	=	1;
	Height	=	0;
	while( div = document.getElementById( "ausftext" + Counter ) ) {
		div.style.visibility	= "hidden";
		div.style.position		= "absolute";
		Counter++;
	}
}

function setFieldSize() {
return;
	Counter	=	1;
	Height	=	0;
	while( div = document.getElementById( "ausftext" + Counter ) ) {
		TmpHeight	=	div.offsetHeight;
		if( TmpHeight > Height ) {
			Height	=	TmpHeight;
		}
		Counter++;
	}
	
	document.getElementById( "TXTAUSF" ).style.height	=	Height + "px";
}
// fügt einen Artikel zum Merkzettel hinzu oder entfernt ihn (je nach action)
function toNotepad( ID , Action ) {
	fenster	=	window.open("change_notes.asp?action=" + Action + "&idart=" + ID, "", "width=1,height=1,left=-100,top=-100,status=yes");
}
// Änderung des Zubehörs - Preisberechnung - Summe Zubehör und Konfiguration
function calculateEquip( ID ) {
	AID		=	0;
	if( Sel = document.getElementById( "ausf" + ID ) ) {
		AID	= Sel.options[ Sel.selectedIndex ].value;
	}

	Summe	=	0;
	for( i=0; i<equip[ AID ].length; i++ ) {
		if( Item = equip[ AID ][ i ] ) {
			if( ! isNaN( Item[ 2 ] ) ) {
				if( anzahl	=	parseInt( document.getElementById( "zub" + i ).value ) )
				{
					if( anzahl < 0 ) {
						anzahl	=	Math.abs( anzahl );
						document.getElementById( "zub" + i ).value	=	anzahl;
					}
				}
				else {
						anzahl	=	0;
				}
				Summe	+=	Item[ 2 ] * anzahl;
			}
		}
	}
	
	totalequip	=	Summe;
	// Funktion muss angepasst werden, wenn es mehrere währungen gibt
	if( div = document.getElementById( "equipprice" ) ) div.innerHTML =	formatNumber( Summe );
	if( div = document.getElementById( "totalequip" ) ) div.innerHTML =	formatNumber( Summe );

	calculateConfig();
}
// berechnet eine Artikelanzahländerung für die Details
function calculateItem( ID ) {
	Price	=	0;
	// Prüfen, ob es verschiedene Ausführungen gibt oder nicht
	if( ausf.length > 0 ) {
		Sel	=	document.getElementById( "ausf" + ID );
		if( src = ausf[ ID ][ Sel.options[ Sel.selectedIndex ].value ] ) {
			Price	=	parseFloat( src[ 1 ] );
		}
		else {
			if( src = ausf[ ID ][ Sel.options[ 1 ].value ] ) {
				Price	=	parseFloat( src[ 1 ] );
			}
		}
	}
	else {
		Price	=	itemprice;
	}
	anzahl	=	0;
	val	=	document.getElementById( "wk_value_" + ID ).value;
	if( anzahl = parseInt( val ) ) {
		if( anzahl < 0 ) {
			anzahl	=	Math.abs( anzahl );
			document.getElementById( "wk_value_" + ID ).value	=	anzahl;
		}
	}
	else {
		anzahl	=	0;
	}
	totalitem	=	anzahl * Price;
	document.getElementById( 'totalitem' ).innerHTML	=	formatNumber( totalitem );

	calculateConfig();
}
// berechnet die komplette Konfiguration aus
// und prüft auf Entereingabe
function calculateConfig() {
	total	=	totalitem + totalequip;
	document.getElementById( 'total' ).innerHTML	=	formatNumber( total );

	if( window.event ) {
		if( key = window.event.keyCode ) {
			if( key == 13) {
				addWK( ArtID, CountDel );
			}
		}
	}
}

// Formatiert für 2 Kommastellen
function formatNumber( Zahl ) {
	Zahl	=	Math.round( Zahl * 100 ) / 100;
	Rest	=	Zahl % 1;
	Rest	=	Math.round( Rest * 100 ) / 100;
	if( Rest < 10 ) {
		if( Rest == 0 ) {
			Zahl	=	Zahl.toString() + ",00";
		}
		else {
			Zahl	=	Zahl.toString() + "0";
		}
	}
	else {
		Zahl	=	Zahl.toString();
	}
	Zahl	=	Zahl.replace( ".", "," );
	
	return Zahl + "&nbsp;&euro;";
}
function changeToStyle( ID, ArtID ) {
	Sel	=	document.getElementById( 'ausf' + ArtID );
	for( i=0; i<Sel.options.length; i++ ) {
		if( Sel.options[ i ].value == ID ) {
			Sel.selectedIndex	=	i;
			break;
		}
	}
	changeArtDetail( ArtID, Sel );
}
function changeDelivery( CB ) {
	Style	=	"block"
	if( ! CB.checked ) {
		Style	=	"none"
	}
	document.getElementById( 'HIDDENDELI' ).style.display	=	Style;
	document.getElementById( 'HIDDENBILL' ).style.display	=	Style;
}
function VerifyMail(adresse)
	{
	//adresse = document.form1.zugemail.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{
		return true;
		}
	else
		{
		return false;
		}
	}

// checkt die Formulardaten für die Bestellung
function submitOrder() {
	CheckArr	=	new	Array( "firma", "nachname", "vorname", "strasse", "plz", "ort", "email" );
	Liefer		=	document.getElementById( 'alternative' ).checked;
	Zahlungsart	=	document.order.elements[ 'zahlungsart' ];
	for( i=0; i<Zahlungsart.length; i++ ) {
		if( Zahlungsart[ i ].checked == true ) {
			Zahlungsart	=	Zahlungsart[ i ].value;
			break;
		}
	}
	error		=	""; // Rechnungsadresse
	error2		=	""; // Lieferadresse
	error3		=	""; // Email

	for( i=0; i<CheckArr.length; i++ ) {
		if( Check = document.order.elements[ "b_" + CheckArr[ i ] ] ) {
			if( Check.value == "" ) {
				error +=	FormFailure[ CheckArr[ i ] ] + ' ' + Required;
			}
			else {
				if( CheckArr[ i ] == "email" ) {
					if( ! VerifyMail( Check ) ) {
						error3	=	FormFailure[ "validateMail" ];
					}
				}
			}
		}
		if( Liefer ) {
			if( Check = document.order.elements[ "d_" + CheckArr[ i ] ] ) {
				if( Check.value == "" ) {
					error2 +=	FormFailure[ CheckArr[ i ] ] + ' ' +Required;
				}
			}
		}
	}
	if( error != "" ) error = FormFailure[ "rechnung" ] + "\n" + error + "\n";
	if( error2 != "" ) error2 = FormFailure[ "lieferung" ] + "\n" + error2;
	error += error2 + error3;
	if( error != "" ) {
		alert( error );
		return false;
	}
	if( Zahlungsart == "bill" ) {
		if( SessionUser ) {
			alert( FormFailure[ "registration" ] );
			return false;
		}
	}
	if( Zahlungsart == "plastic" && false ) {
		alert( "Zahlungsart momentan aus technischen Gründen deaktiviert." );
		return false;
	}
	B_Land	=	document.order.elements[ "b_land" ];
	B_Land	=	B_Land.options[ B_Land.selectedIndex ].value;
	if( document.order.elements[ "taxnumber" ].value == "" && B_Land == "austria" ) {
		alert( FormFailure[ "taxnumber" ] );
		return false;
	}
	GSC	=	document.getElementById( 'gsc' );
	if( ! GSC.checked ) {
		alert( FormFailure[ "gsc_required" ] );
		return false;
	}
	return true;
}
// prüft, ob das Land Zoll verlangt und gibt die Berechnung entsprechend aus
function checkDuty(Sel) {
	try {
		if( Sel.name == "d_land" || !document.getElementById( 'alternative' ).checked ) {
			
			Index	=	Sel.selectedIndex;
			if( !document.getElementById( 'alternative' ).checked ) {
				document.order.elements[ "d_land" ].selectedIndex	=	Index;
			}
			dtext	=	document.getElementById( 'dutytext' );
			dprice	=	document.getElementById( 'dutyprice' );
			tprice	=	document.getElementById( 'totalprice' );
			Cnt		=	0;
			if( Sel.options[ Sel.selectedIndex ].value == "swiss" ) {
				Cnt	=	1;
				document.order.elements[ "taxnumber" ].style.visibility = "hidden";
			}
			else {
				document.order.elements[ "taxnumber" ].style.visibility = "visible";
			}
			dtext.innerHTML		=	Dutytext[ Cnt ];
			dprice.innerHTML	=	Dutyprice[ Cnt ];
			tprice.innerHTML	=	Total[ Cnt ];
		}
	}
	catch( e ) { }
}
// newsletter eintrag
function submitNewsletter() {
	email		=	document.getElementById( "newsmail" ).value;
	Required	=	new Array( "newsvorname", "newsname" );
	ErrMsg		=	"";

	T_FormFail	=	false;
	if( !VerifyMail( email ) ) {
		ErrMsg	+=	FormFailure[ "validateMail" ] + "\n";
		document.getElementById( "newsmail" ).style.backgroundColor	=	"#F66";
		T_FormFail	=	true;
	}
	else {
		document.getElementById( "newsmail" ).style.backgroundColor	=	"";
	}

	for( i=0; i<Required.length; i++ ) {
		if( TF = get( Required[ i ] ) ) {
			if( TF.value == "" ) {
				T_FormFail	=	true;
				TF.style.backgroundColor	=	"#F66";
			}
			else {
				TF.style.backgroundColor	=	"";
			}
		}											  
	}

	if( T_FormFail ) {
		alert( ErrMsg + Formerror );
		return false;
	}
	else {
		return true;
	}
}
function checkNewsletterSubmit() {
	Browser = navigator.appName;
	if( Browser == "Netscape" )
	{
		if( EnterHit )
		{
			submitNewsletter();
		}
	}
	else
	{
		key	=	window.event.keyCode;
		if( key == 13)
		{
			submitNewsletter();
		}
	}
}
function checkContact() {
	CheckArr	=	new	Array( "name", "firma", "strasse", "plz", "ort", "telefon", "email" );
	return( checkForm( CheckArr, "contact" ) );
}
// prüft die Formularfelder des Kontaktformulars
function checkForm( CheckArr, Form ) {
	error	=	"";
	for( i=0; i<CheckArr.length; i++ ) {
		if( Check = document.forms[ Form ].elements[ CheckArr[ i ] ] ) {
			if( Check.value == "" ) {
				Ausg	=	CheckArr[ i ]
				if( Ausg.substr( 1, 1 ) == "_" ) {
					Ausg	=	Ausg.substr( 2, Ausg.length );
				}
				if( CheckArr[ i ] == "taxnumber" ) {
					error +=	FormFailure[ Ausg ];
				}
				else {
					error +=	FormFailure[ Ausg ] + ' ' + Required;
				}
			}
			else {
				if( CheckArr[ i ] == "email" ) {
					if( ! VerifyMail( Check.value ) ) {
						error	+=	FormFailure[ "validateMail" ];
					}
				}
			}
		}
	}
	if( error != "" ) {
		alert( error );
		return false;
	}
	return true;
}
function checkRegistration() {
	CheckArr	=	new	Array( "nachname", "vorname", "strasse", "plz", "ort", "telefon", "email" );
	return( checkForm( CheckArr, "registration" ) );
}
function checkAdd( ID, Count ) {
	if( key = window.event.keyCode ) {
		if( key == 13 ) {
			addWK( ID, Count );
		}
	}
}

function changeSort( ID, Keyword ) {
	sel	=	document.getElementById( "sortierung" );
	sel	=	sel.options[ sel.selectedIndex ].value;
	if( Keyword != "" ) {
		location.href	=	"index.asp?idcat=" + ID + "&sort=" + sel + "&action=search&keyword=" + Keyword;
	}
	else {
		if( ID == 0 ) {
			HREF	=	location.href;
			HREF	=	HREF.split( "&sort=" );
			location.href	=	HREF[ 0 ] + "&sort=" + sel;
		}
		else {
			location.href	=	"index.asp?idcat=" + ID + "&sort=" + sel;
		}
	}
}
function checkAddresses() {
	AltArr		=	new	Array( "d_nachname", "d_vorname", "d_strasse", "d_plz", "d_ort" );
	AlleLeer	=	true;
	AlleVoll	=	true;
	for( i=0; i<AltArr.length; i++ ) {
		val	=	get( AltArr[ i ] ).value;
		if( val == "" && AlleVoll ) {
			AlleVoll	=	false;
		}
		if( val != "" && AlleLeer ) {
			AlleLeer	=	false;
		}
	}
	if( ! ( AlleLeer ) && ! ( AlleVoll ) ) {
		alert( FormFailure[ "lieferung" ] + " " + Incomplete );
		return false;
	}
	CheckArr	=	new	Array( "b_nachname", "b_vorname", "b_strasse", "b_plz", "b_ort", "b_telefon", "email" );
	return( checkForm( CheckArr, "order_addresses" ) );
}
function checkPayment() {
	error	=	"";

	radio	=	document.forms[ "payment" ].elements[ "zahlungsart" ];
	if( radio[ 2 ].checked ) {
		if( get( "knt_name" ).value == "" || get( "knt_nummer" ).value == "" || get( "knt_bank" ).value == "" || get( "knt_sitz" ).value == "" || get( "knt_blz" ).value == "" ) {
			error	+=	FormFailure[ "bank_fields_required" ] + "\n";
		}
	}
	if( radio[ 1 ].checked && SessionUser ) {
		error	+=	FormFailure[ 'registration' ] + "\n";
	}
	if( ! get( "gsc" ).checked ) {
		error	+=	FormFailure[ "gsc_required" ];
	}
	if( error != "" ) {
		alert( error );
		return	false;
	}
	showOrderDiv();
	return true;
}
function showOrderDiv() {
	div = get( 'WTFRORDER' );
	TW = 200;
	TH = 120;
	Left = 0;
	Top = 0;
	SW = 0;
	SH = 0;
	div.style.width = TW + "px";
	div.style.height = TH + "px";

	try {
		if( document.all ) {
			if( document.body.scrollTop ) {
				Left = document.body.scrollLeft;
				Top = document.body.scrollTop;
			}
			else {
				Left = document.documentElement.scrollLeft;
				Top = document.documentElement.scrollTop;
			}
			SW = document.body.offsetWidth;
			SH = document.body.offsetHeight;
		}
		else {
			Left = window.pageXOffset;
			Top = window.pageYOffset;
			SW = window.innerWidth;
			SH = window.innerHeight;
		}
		div.style.top = ( ( SH + Top - TH ) / 2 ) + "px";
		div.style.left = ( ( SW - Left - TW ) / 2 ) + "px";
	}
	catch( e ) {
	
	}
	div.style.display = "block";
}
function chooseDelivery( Sel ) {
	Adr	=	Adressen[ Sel.selectedIndex ];
	document.order_addresses.elements[ "d_firma" ].value		=	Adr[ 0 ];
	if( Adr[ 1 ] == "Herr" || Adr[ 1 ] == "" ) {
		document.order_addresses.elements[ "d_anrede" ].selectedIndex	=	0;
	}
	else {
		document.order_addresses.elements[ "d_anrede" ].selectedIndex	=	1;
	}
	document.order_addresses.elements[ "d_nachname" ].value	=	Adr[ 2 ];
	document.order_addresses.elements[ "d_vorname" ].value	=	Adr[ 3 ];
	document.order_addresses.elements[ "d_strasse" ].value	=	Adr[ 4 ];
	document.order_addresses.elements[ "d_plz" ].value		=	Adr[ 5 ];
	document.order_addresses.elements[ "d_ort" ].value		=	Adr[ 6 ];
	if( Adr[ 7 ] == "germany" || Adr[ 7 ] == "" ) {
		document.order_addresses.elements[ "d_land" ].selectedIndex	=	0;
	}
	else {
		if( Adr[ 7 ] == "swiss" ) {
			document.order_addresses.elements[ "d_land" ].selectedIndex	=	1;
		}
		else {
			document.order_addresses.elements[ "d_land" ].selectedIndex	=	2;
		}
	}
//	document.order_addresses.elements[ "d_telefon" ].value	=	Adr[ 8 ];
}

// div sichtbar machen
function showDiv( ID ) {
	get( ID ).style.display = "block";
}
// div verstecken
function hideDiv( ID ) {
	get( ID ).style.display = "none";
}
function changeBereich( SF ) {
	if( location.href.search( /\?/ ) != -1 ) {
		Href	=	location.href.split( "&id_bereich=" );
		if( Href.length == 1 ) {
			Href	=	location.href.split( "?id_bereich=" );
			Href	=	Href[ 0 ] + "?id_bereich=" + SF.options[ SF.selectedIndex ].value;
			location.href	=	Href;
		}
		else {
			Href	=	Href[ 0 ] + "&id_bereich=" + SF.options[ SF.selectedIndex ].value;
			location.href	=	Href;
		}
	}
	else {
		location.href	=	location.href + "?id_bereich=" + SF.options[ SF.selectedIndex ].value;
	}
}
function checkRequest() {
	GSC	=	document.getElementById( 'gsc' );
	Err	=	"";
	if( ! GSC.checked ) {
		Err	+=	FormFailure[ "gsc_required" ];
	}
	Disclaimer	=	document.getElementById( "disclaimer" );
	if( ! Disclaimer.checked ) {
		if( Err != "" ) {
			Err	+=	"\n";	
		}
		Err	+=	FormFailure[ "disclaimer" ];	
	}
	if( Err != "" ) {
		alert( Err );
		return	false;
	}
	return true;
}
