jQuery(document).ready(function()
{
	startList();
});
/* -----------------------------------------------------------------------------
startList:
	onload-Skript für die Seite
----------------------------------------------------------------------------- */
function startList()
{
	var linklist, i, s;
	if (document.getElementById)
	{
		// Linkpflege
		linklist = document.getElementsByTagName("a");
		for (i=0; i < linklist.length; i++) {
			s = linklist[i];
			// Externe Links per Javascript in neuem Fenster öffnen
			if(/extlnk/.test(s.getAttribute("class"))) {
				s.onclick= function() { window.open(this.href); return false; }
				s.setAttribute("title", s.firstChild.nodeValue + " in neuem Fenster öffnen");
			}
			// E-Mail-Adressen zurecht machen
			if(/mehl/.test(s.getAttribute("class"))) {
				komp = s.firstChild.nodeValue.split(" (AT) ");
				s.setAttribute("href", "mailto:" + komp[0] + "@" + komp[1]);
				s.firstChild.nodeValue = komp[0] + "@" + komp[1];
				s.setAttribute("title", "Öffnet eine neue E-Mail im Standard-E-Mail Programm");
			}
		}
	}
}






function isValidEmail(theAdress)
{
	if (theAdress.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}


