/****************************************************************************************************
* Description:
* This file includes the basic javascript functions for the website.
*
* Notice:
* - There are no Umlaute and special characters allowed.
* - Use the given Prefixs for naming the variables (str, arr, flag, int etc.)
* - If possible do layout without using padding (IE box modell error)
* - German names for css-classes etc. are used in respect to English key words, which are reservated
*
* Versions:
* 0.1				13. September 2008				Beat Schilbach (Steckborn)
****************************************************************************************************/


/****************************************************************************************************
* MM_jumpMenu()
*
* jump from menu to page
****************************************************************************************************/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
	//alert('Hier I am');
}

/****************************************************************************************************
* openNewWindow()
*
* Open a new browser window
****************************************************************************************************/
function openNewWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}

/****************************************************************************************************
* printNow()
*
* The function will open  a new window to show the print output.
****************************************************************************************************/
function printNow(theID,theWidth,theHeight)
{
	var theURL 		= 'print.php?sCatID=' + theID;
	var winName 	= "Print";
	var features	= "status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=" + theWidth + ",height=" + theHeight; 
	openNewWindow(theURL,winName,features);
}	// end of printNow


/****************************************************************************************************
* setMail()
*
* Create the mail address with the given name and the given domain
****************************************************************************************************/
function setMail(theName, theDomain, theID)
{
	var tmp = 'mailto: ' + theName + '@' + theDomain;
	document.getElementById(theID).href = tmp;
}

