// ##################################################
// Name:         JavaScript Library 
// Description:  All general functions used on site
// Project:      waldorf-alumni.de
// Version:      1.0
// ##################################################

// ##################################################
// Function:    noSpam()
// Description: Hide E-Mail from f**** Spam-Harvester
// Parameters:  
// Return:      mailto:info@domain.com
// Invocation : noSpam(user,domain)
// ##################################################

function noSpam(user,domain) {
    locationstring = "mailto:" + user + "@" + domain;
    window.location = locationstring;
}

// ##################################################
// Function:    getRidOfFrames()
// Description: Liberate content from unwanted frames
// Parameters:  
// Return:      
// Invocation : getRidOfFrames()
// ##################################################

function getRidOfFrames() {
	if(top.frames.length > 0) {
		top.location.href = self.location;
	}
}

// ##################################################
// Function:    submitForm()
// Description: Feedback: submit button (phpOpenForm)
// Parameters:  
// Return:      
// Invocation : submitForm()
// ##################################################

function submitForm(s) {
	s.value = "Eingaben werden bearbeitet...";
	return true;
}

// ##################################################
// Functions adopted from Macromedia Dreamweaver
// ##################################################

// Function used in quickFinder
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

