



// Allgemeine Meldung
var message= "Ihr Formular ist nicht vollständig ausgefüllt :\n\n";

/*---------------------------------------Buildauction1.asp----------*/
function ShowResultChanged(iForm,sText,sFile)
{
	
	document.forms[1].action1.value = sText;
	document.forms[1].action =sFile;	// wird URL-geändert mit der action Property
	document.forms[1].action1.click ();
	
	
}
function SetFocusG(iForm,iFocus)
{
	
	switch(iFocus)
	{
		case 1:
		document.forms[iForm].Kategorie.focus();	
		break;
		
		default:
		break;	
	}
	
}
function isInteger (lNumber)
{
	
	if(! isNaN(lNumber))
	{ 
		var sNumber = "" + lNumber;
		var lLength = sNumber.length;
	
		for(var i=0; i < lLength ;i++)
		{
			if(sNumber.charAt (i) == "." || sNumber.charAt (i) == "+"  || sNumber.charAt (i) == "-")
			{
				return false;
			}
			
		}
	}
	else
	{
		return false;
	}
	return true;
} 
function Searchapostrofe (sStr)
{
	var sStr1 = "" + sStr;
	var lLength = sStr1.length;
	
	for(var i=0; i < lLength ;i++)
	{
		if(sStr1.charAt (i) == "'" )
		{
			return false;
		}
	}
	return true;
} 
function isToLongStr (sStr)
{
	sStr +="";
	var iCount =0;
	
	var lLength = sStr.length;
	

	for(var i=0; i < lLength ;i++)
	{
		if(sStr.charAt (i) == " ")
		{
			
			iCount = 0;
		}
		else
		{
			iCount++;
			if(iCount == 40)
			{				
			 return false;
			}
		}
		
	}
	
	return true;
}
function ValEmail (sEmail)
{
	var lMail = sEmail.length;
	var  iCount = 0;
	var  sSimbol ='@';
	
	
	for(var i =0;i<lMail;i++)
	{
		if(sEmail.charAt(i) == sSimbol)
		{
			iCount++;
			sSimbol ='.';
			
		}
	}
	if(iCount >= 2)
	{
		return true;		
	}
	return false;
}
function ValUrl (sHomepage)
{
	var lHomepage = sHomepage.length;
	var  iCount = 0;
	
	var  sStr     = "";
	
	
	for(var i =0;i<lHomepage;i++)
	{
		if(sHomepage.charAt(i) == ".")
		{
			iCount++;
		}
		
	}
	if(iCount >= 1)
	{
		return true;		
	}
	return false;
}
// ----------------------------------------------------Homepagereg.asp-----------------------------------------------
function ValInpHomepageReg (thisForm)
{
	var msg         = "";
	
	
	var sUrl			= thisForm.Url.value;
	var sEmail		= thisForm.Email.value;
	var sAutor		= thisForm.Autor.value;
	var sTitel			= thisForm.Titel.value;
	var sKeyword		= thisForm.Keyword.value;
	var sDescription		= thisForm.description.value;
	
	
	// Eingabefelder werden überprüft
 if(thisForm.action1.value == "Registrieren")
 {
	
	if(	sUrl == "")
	{
		msg="Das Eingabefeld 'URL' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(	sUrl.length <= 11)
		{
			msg="- Das Eingabefeld 'URL' ist nicht richtig eingegeben\n";	
		}	
		else if(!ValUrl(sUrl))
		{
			msg="Das Eingabefeld 'URL' ist nicht richtig eingegeben\n";
		}
		else if(!Searchapostrofe(sUrl))
		{
	  		msg= "Im Eingabefeld 'URL' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.Url.focus();	
			return false;
		}
	}
	
	if(sEmail == "")
	{
		 msg= msg +"Das Eingabefeld 'EMail' ist ein Pflichtfeld\n";
	}	
	else
	{	
		if(!ValEmail(sEmail))
		{
	  		msg= msg +"Das Eingabefeld 'E-Mail' ist nicht richtig eingegeben\n";	
		}
		else if(!Searchapostrofe(sEmail))
		{
	  		msg= "Im Eingabefeld 'Email' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.Email.focus();	
			return false;
		}
	}
	
	if(	sAutor == "" )
	{
		msg= msg +"Das Eingabefeld 'Author' ist ein Pflichtfeld\n";	
	}
	else
	{	
		if(!Searchapostrofe(sAutor))
		{
	  		msg= "Im Eingabefeld 'Author' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.Autor.focus();	
			return false;
		}
	}
	if(	sTitel == "")
	{
		msg=msg +"Das Eingabefeld 'Titel' ist ein Pflichtfeld\n";	
	}
	else
	{
		 if(! isToLongStr(sTitel))
		{
			msg=msg + "Das Eingabefeld 'Titel' ist nicht richtig eingegeben. Mindestens ein Wort ist zu lang \n";	
		}
		if(!Searchapostrofe(sTitel))
		{
	  		msg= "Im Eingabefeld 'Titel' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.Titel.focus();	
			return false;
		}	
	}
	if(	sKeyword == "")
	{
		msg= msg +"Das Eingabefeld 'Keywords' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(sKeyword.length > 120)
		{
			msg= msg +"Das Eingabefeld ''Stichwörter' darf nicht grösser als 120 Zeichen sein\n";	
		}
		if(!Searchapostrofe(sKeyword))
		{
	  		msg= "Im Eingabefeld 'Stichwörter' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.Keyword.focus();	
			return false;
		}
		
	}
	if(	sDescription == "")
	{
		msg= msg +"Das Eingabefeld 'Beschreibung' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(sDescription.length > 250 )
		{
			msg= msg +"Das Eingabefeld 'Beschreibung' darf nicht grösser als 250 Zeichen sein\n";	
		}
		else  if(! isToLongStr(sDescription))
		{
			msg=msg + "Das Eingabefeld 'Beschreibung' ist nicht richtig eingegeben. Mindestens ein Wort ist zu lang \n";	
		}
		if(!Searchapostrofe(sDescription))
		{
	  		msg= "Im Eingabefeld 'Beschreibung' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.description.focus();	
			return false;
		}
			
	}
	
  }
			
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["addhomepage"].orden.value="Registrieren";
		document.forms["addhomepage"].submit();
		//return true;
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n\n";
		alert(message + msg);
	}
	// return false;
}
function ValLogin (thisForm)
{
	var msg         = "";
	
	
	var sEmail		= thisForm.email.value;
	var sPW			= thisForm.pw.value;
		
	// Eingabefelder werden überprüft
 if(thisForm.action1.value == "Anmelden")
 {
	
	
	if(sEmail == "")
	{
		 msg= msg +"Das Eingabefeld 'EMail' ist ein Pflichtfeld\n";
	}	
	else
	{	
		if(!ValEmail(sEmail))
		{
	  		msg= msg +"Das Eingabefeld 'E-Mail' ist nicht richtig eingegeben\n";	
		}
		else if(!Searchapostrofe(sEmail))
		{
	  		msg= "Im Eingabefeld 'Email' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.email.focus();	
			return false;
		}
	}
	
	if(	sPW == "" )
	{
		msg= msg +"Das Eingabefeld 'Passwort' ist ein Pflichtfeld\n";	
	}
	else
	{	
		if(!Searchapostrofe(sPW))
		{
	  		msg= "Im Eingabefeld 'Passwort' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.pw.focus();	
			return false;
		}
	}
				
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["reg"].orden.value="Anmelden";
		document.forms["reg"].submit();
		
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n\n";
		alert(message + msg);
	}
    }
	
}
function ValReg (thisForm) // Register
{
	var msg         = "";
	
	
	var sEmail		= thisForm.email.value;
	var sPW			= thisForm.pw.value;
	var sPW1		= thisForm.pww.value;
	
	
	
	// Eingabefelder werden überprüft
 if(thisForm.action1.value == "Registrieren")
 {
	
	
	if(sEmail == "")
	{
		 msg= msg +"Das Eingabefeld 'EMail' ist ein Pflichtfeld\n";
	}	
	else
	{	
		if(!ValEmail(sEmail))
		{
	  		msg= msg +"Das Eingabefeld 'E-Mail' ist nicht richtig eingegeben\n";	
		}
		else if(!Searchapostrofe(sEmail))
		{
	  		msg= "Im Eingabefeld 'Email' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.email.focus();	
			return false;
		}
	}
	
	if(	sPW == "" )
	{
		msg= msg +"Das Eingabefeld 'Passwort' ist ein Pflichtfeld\n";	
	}
	else
	{	
		if(!Searchapostrofe(sPW))
		{
	  		msg= "Im Eingabefeld 'Passwort' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.pw.focus();	
			return false;
		}
	}
	if(	sPW1 == "" )
	{
		msg= msg +"Das Eingabefeld 'Passwort wiederholen' ist ein Pflichtfeld\n";	
	}
	else
	{	
		if(!Searchapostrofe(sPW1))
		{
	  		msg= "Im Eingabefeld 'Passwort wiederholen' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.pww.focus();	
			return false;
		}
	}
	
			
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["reg"].orden.value="Registrieren";
		document.forms["reg"].submit();
		
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n\n";
		alert(message + msg);
	}
    }
	
}
// ----------------------------------------------------Homepagereg.asp-----------------------------------------------
function ValAddfeed (thisForm)
{
	var msg         = "";
	
	
	var sUrl			= thisForm.url.value;
	var sAutor		= thisForm.autor.value;
	var sTitel			= thisForm.title.value;
	var sDescription		= thisForm.description.value;
	
	
	// Eingabefelder werden überprüft
 if(thisForm.action1.value == "Registrieren")
 {
	
	
	if(sUrl == "")
	{
		msg="Das Eingabefeld 'URL' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(sUrl.length <= 11)
		{
			msg="- Das Eingabefeld 'URL' ist nicht richtig eingegeben\n";	
		}	
		if(!ValUrl(sUrl))
		{
			msg="Das Eingabefeld 'URL' ist nicht richtig eingegeben\n";
		}
		if(!Searchapostrofe(sUrl))
		{
	  		msg= "Im Eingabefeld 'URL' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.url.focus();	
			return false;
		}
	}
	
	
	if(	sAutor == "" )
	{
		msg= msg + "Das Eingabefeld 'Author' ist ein Pflichtfeld\n";	
	}
	else
   	{
		if(sAutor.length > 100 )
		{
			msg= msg +"Das Eingabefeld 'Autor' darf nicht grösser als 100 Zeichen sein\n";	
		}
		if(!Searchapostrofe(sAutor))
		{
	  		msg=  msg + "Im Eingabefeld 'Author' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.autor.focus();	
			return false;
		}
	}
	
	if(	sTitel == "")
	{
		msg=msg +"Das Eingabefeld 'Titel' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(sTitel.length > 100 )
		{
			msg= msg +"Das Eingabefeld 'Titel darf nicht grösser als 100 Zeichen sein\n";	
		}
		 if(! isToLongStr(sTitel))
		{
			msg=msg + "Das Eingabefeld 'Titel' ist nicht richtig eingegeben. Mindestens ein Wort ist zu lang \n";	
		}
		if(!Searchapostrofe(sTitel))
		{
	  		msg= msg + "Im Eingabefeld 'Titel' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.title.focus();	
			return false;
		}	
	}
	
	if(	sDescription == "")
	{
		msg= msg +"Das Eingabefeld 'Beschreibung' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(sDescription.length > 250 )
		{
			msg= msg +"Das Eingabefeld 'Beschreibung' darf nicht grösser als 250 Zeichen sein\n";	
		}
		if(! isToLongStr(sDescription))
		{
			msg=msg + "Das Eingabefeld 'Beschreibung' ist nicht richtig eingegeben. Mindestens ein Wort ist zu lang \n";	
		}
		if(!Searchapostrofe(sDescription))
		{
	  		msg= "Im Eingabefeld 'Beschreibung' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.description.focus();	
			return false;
		}
			
	}
	
  }
			
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["addfeed"].orden.value="Registrieren";
		document.forms["addfeed"].submit();
		//return true;
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n\n";
		alert(message + msg);
	}
	// return false;
}
function ValFormAngebot (thisForm)
{
	var msg         = "";


	
	if(	thisForm.Name.value == "")
	{
		msg="Das Eingabefeld 'Name' ist ein Pflichtfeld\n";	
	}
	if(	thisForm.Strasse.value == "")
	{
		msg=msg + "Das Eingabefeld 'Strasse/Nr.' ist ein Pflichtfeld\n";	
	}
	
	if(	thisForm.Stadt.value == "")
	{
		msg=msg + "Das Eingabefeld PLZ/Ort' ist ein Pflichtfeld\n";	
	}
	if(	thisForm.Telefon.value == "")
	{
		msg=msg + "Das Eingabefeld 'Telefon' ist ein Pflichtfeld\n";	
	}
	if(	thisForm.Email.value == "")
	{
		msg=msg + "Das Eingabefeld 'E-Mail' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(	!ValEmail(thisForm.Email.value))
		{
			msg=msg + "Das Eingabefeld 'E-Mail' ist nicht richtig eingegeben\n";	
		}
	}
	if(	thisForm.Bemerkung.value == "")
	{
		msg=msg + "Das Eingabefeld 'Nachricht' ist ein Pflichtfeld\n";	
	}
	else
	{
		if(	thisForm.Bemerkung.length > 5000)
		{
			msg=msg + "Das Eingabefeld 'Nachricht' darf nich grösser als 5000 Zeichen sein\n";	
		}	
	}
	
		
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		
		document.forms["Angebot"].submit();
		return;
	}
	else
	{
		alert(message + msg);
	}
	 return;
}


function  ValBild(sBildurl)
{
	var msg         = "";
	var sBildlength = sBildurl.length;

	if(sBildurl.substring(sBildlength-3,sBildlength) == "gif" || sBildurl.substring(sBildlength-3,sBildlength) == "GIF")
	{
		return true;
	}
	else if(sBildurl.substring(sBildlength-3,sBildlength) == "jpg" || sBildurl.substring(sBildlength-3,sBildlength) == "JPG")
	{
		return true;
	}
	else if(sBildurl.substring(sBildlength-4,sBildlength) == "jpeg" || sBildurl.substring(sBildlength-4,sBildlength) == "JPEG")
	{
		return true;
	}
	
	return false;

}

// Validiert Kurz Datumformat (dd/mm/jjjj oder dd.mm.jjjj)	// La primera
function ValidateDate (sDate)
{
	var sStrDate	= "";
	sStrDate		+=sDate;
	
	var dDate 	= new Date ();
	var lYearForm 	= parseInt(sStrDate.substring(6,10));
		
	if(sStrDate.length != 10)
	{
		return false;	
	}
	
	if(( sStrDate.charAt(2) == '/' &&  sStrDate.charAt(5) == '/') || ( sStrDate.charAt(2) == '.'  &&  sStrDate.charAt(5) == '.') )
	{		
		
		lDay = parseInt(sStrDate.substring(0,2));
		if(lDay == 0)
		{
			
			// dann wird mit der  zweiten Zahl gearbeitet
			lDay = parseInt(sStrDate.charAt(1));
		}
		if(sStrDate.substring(3,5) == "08")
		{
			lMonth = 8;
		}
		else if(sStrDate.substring(3,5) == "09")
		{
			lMonth =9;
		}
		else
		{
			lMonth = parseInt(sStrDate.substring(3,5));
		}
		
		if(lMonth == 0)
		{
			// dann wird mit der  zweiten Zahl gearbeitet
			lMonth = parseInt(sStrDate.charAt(4));
		}
		
		else if( lMonth < 1 || lMonth > 12) // Monat
		{
			
			return false;
		}
	
		else if(lDay < 1 || lDay > 31 ) // Tag
		{
			
			return false;
		}


		else if(isNaN(lYearForm))
		{
			
			return false;	
		}
		else if( lYearForm < 1985 || lYearForm > (1900 + dDate.getYear () + 1)) 
		{
			
			return false;
		}
		else
		{
			return true;
		}
	}
	else
	{
		
		return false;	
	}
	
}
function ValFormSearch (thisForm)
{
	
	var msg		="";
		
	if(thisForm.Expresion.value == "")
	{
		alert("Geben Sie bitte das  Wort oder die Wörter ein, die Sie Suchen möchten");
		return false;
	}
	else
	{
		if((thisForm.Expresion.value).length < 3)
		{
			alert("Der Suchbegriff muss mindestens 3 Buchstaben lang sein");
			return false;
		}
		else if(! isToLongStr(thisForm.Expresion.value))
		{
			alert("Der Suchbegriff ist nicht richtig eingegeben. Mindestens ein Wort ist zu lang");	
			return false;	
		}
		else if(!Searchapostrofe(thisForm.Expresion.value))
		{
	  		msg= "Im Eingabefeld 'Suchbegriff' sind Apostroph (') nicht erlaubt!!!\n";
			alert(msg);
			thisForm.Expresion.focus();	
			return false;
		}	
	}
	
	
	
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["search"].submit();
		// return true;
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\nFolgende Angabe sind noch notwendig\n";
		alert(message + msg);
		// return false; 
	}
	
}
function ValFormQSearch (thisForm)
{
	if(thisForm.Expresion.value == "")
	{
		alert("Geben Sie bitte das  Wort oder die Wörter ein, die Sie Suchen möchten");
		return false;
	}
	else
	{
		if((thisForm.Expresion.value).length < 3)
		{
			alert("Der Suchbegriff muss mindestens 3 Buchstaben lang sein");
			return false;
		}
		else if(! isToLongStr(thisForm.Expresion.value))
		{
			alert("Der Suchbegriff ist nicht richtig eingegeben. Mindestens ein Wort ist zu lang");	
			return false;	
		}
		else if(!Searchapostrofe(thisForm.Expresion.value))
		{
	  		alert("Im Eingabefeld 'Suchbegriff' sind Apostroph (') nicht erlaubt!!!");
			thisForm.Expresion.focus();	
			return false;
		}
	}
	return true;
	
	
}
function ValFormKontaktUns(thisForm)
{
	

	var msg				= "";
	
	// Eingabefelder werden überprüft
	
	
	if(thisForm.Email.value == "")
	{
		msg= "Das Eingabefeld 'EMail' ist ein Pflichtfeld\n";	
	}
	else 
	{
		if(!ValEmail(thisForm.Email.value))
		{	
			msg= msg +"Das Eingabefeld 'E-Mail' ist nicht richtig eingegeben\n";	
		}
	}
	if(thisForm.Name.value == "")
	{
		msg= msg +"Das Eingabefeld 'Name' ist ein Pflichtfeld\n";	
	}

	if(thisForm.Thema.value == "")
	{
		msg=msg +"Das Eingabefeld 'Thema' ist ein Pflichtfeld\n";	
	}
	
	if(thisForm.Nachricht.value == "")
	{
		msg= msg +"Das Eingabefeld 'Nachricht' ist ein Pflichtfeld\n";	
	}
	else
	{
		if((thisForm.Nachricht.value).length > 5000)
		{
			msg= msg +"Das Eingabefeld 'Nachricht' darf nicht grösser als 5000 Zeichen sein\n";
		}
	}
	
	
			
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["kontaktuns"].submit();	
		return;
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n";
		alert(message + msg);
	}
	return;

}
function ValFormLinkpartner(thisForm)
{
	

	var msg				= "";
	
	// Eingabefelder werden überprüft
	
	
	if(thisForm.Email.value == "")
	{
		msg= "Das Eingabefeld 'EMail' ist ein Pflichtfeld\n";	
	}
	else 
	{
		if(!ValEmail(thisForm.Email.value))
		{	
			msg= msg +"Das Eingabefeld 'E-Mail' ist nicht richtig eingegeben\n";	
		}
	}
	if(thisForm.Titel.value == "")
	{
		msg= msg +"Das Eingabefeld 'Linktext' ist ein Pflichtfeld\n";	
	}

	if(thisForm.Beschreibung.value == "")
	{
		msg=msg +"Das Eingabefeld 'Beschreibung' ist ein Pflichtfeld\n";	
	}
	
	if(thisForm.Url.value == "")
	{
		msg= "Das Eingabefeld 'Ihre Url' ist ein Pflichtfeld\n";	
	}
	else 
	{
		if(!ValUrl(thisForm.Url.value))
		{	
			msg= msg +"Das Eingabefeld 'Ihre Url' ist nicht richtig eingegeben\n";	
		}
	}
	
	
			
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["Linkpartner"].submit();	
		return;
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n";
		alert(message + msg);
	}
	return;

}
function ValFormFriend(thisForm)
{

	var msg	= "";
	
	// Eingabefelder werden überprüft
	
	
	if(thisForm.Email.value == "")
	{
		msg= "Die Eingabefeld 'E-Mail des Empfängers' ist ein Pflichtfeld\n";	
	}
	else 
	{
		if(!ValEmail(thisForm.Email.value))
		{	
			msg= msg +"Das Eingabefeld 'E-Mail des Empfängers' ist nicht richtig eingegeben\n";	
		}
	}
	if(thisForm.Youremail.value == "")
	{
		msg= msg + "Das Eingabefeld 'Ihre E-Mail' ist ein Pflichtfeld\n";	
	}
	else 
	{
		if(!ValEmail(thisForm.Youremail.value))
		{	
			msg= msg +"Das Eingabefeld 'Ihre E-Mail' ist nicht richtig eingegeben\n";	
		}
	}
	if(thisForm.Name.value == "")
	{
		msg= msg +"Das Eingabefeld 'Name' ist ein Pflichtfeld\n";	
	}
	if(thisForm.Yourname.value == "")
	{
		msg= msg +"Das Eingabefeld 'Ihr Name' ist ein Pflichtfeld\n";	
	}
	if(thisForm.Body.value == "")
	{
		msg=msg +"Das Eingabefeld 'Text' ist ein Pflichtfeld\n";	
	}
		
	if(msg == "") // Formular ist erfolgreich abgeschlossen
	{
		document.forms["linkafriend"].submit();
		// return true;
	}
	else
	{
		var message = "Ihr Formular ist nicht vollständig ausgefüllt\n";
		alert(message + msg);
	}
	// return false;

}


function GetCurrentDate ()
{
	var datDate;
	var strDate = "";;
	var lMonth;
	var lYear;
	var lDay;
	lMonat = new Array(12);
	
	lMonat [0]	= "Januar";
	lMonat [1]	= "Februar";
	lMonat [2]	= "März";
	lMonat [3]	= "April";
	lMonat [4]	= "Mai";
	lMonat [5]	= "Juni";;
	lMonat [6]	= "Jui";
	lMonat [7]	= "August";
	lMonat [8]	= "September";
	lMonat [9]	= "Oktuber";
	lMonat [10]	= "November";
	lMonat [11]	= "Dezember"; 
	

	datDate = new Date();
	lDay	= datDate.getDate();
	lMonth	= datDate.getMonth();
	lYear	= datDate.getYear();
	
	
	strDate += lDay  + " ";
	strDate += lMonat [lMonth] + " ";
	strDate += lYear;


	return strDate;
}







