/*
var quickfinder = new create_Quickfinder("Portalseite Kunden*P03 Strom & W&auml;rme Kunden - Privat*P03 Weiterverteiler - Kontakt*P04 Gesch.partner - ... - Auftragsausb.*-----------------------------------------------*Portalseite Unternehmen*P02 Kompetenzen*P03 ... - Bergbau*P04 ... - ... - Tagebau*P02 Presse*P03 ... - Pressemitteilungen*P04 ... - ... - Pressemitteilung*P04 Karriere - ... - Ausbildungsg?nge*P04 ... - ... - ... - Stellenb. - OnlineBew.*P03 Karriere - Jobfair*P02 Vattenfall Regional*P04 ... - Mitteldeutschland - Standorte*P04 Konzern - Mgm. - Vattenfall AB*P04 ... - ... - ... - Lars G. Josefsson*P04 Konzern - Mgm. - Vattenfall Europe*P04 ... - ... - ... - Dr. Klaus Rauscher*P04 Konzern - Komm. - Veranstaltungen*----------*P00 Suche*P00 Sitemap*P00 Kontakt*P00 Impressum","P01_Portalseite_Kunden.html*P03_Kunden_StromWaerme_Privat.html*P03_Kunden_Weiterverteiler_Kontakt.html*P04_Kunden_Geschaeftspartner_Bildung_Auftragsausbildung.html*#---------------*P01_Portalseite_Unternehmen.html*P02_Unternehmen_Kompetenzen.html*P03_Unternehmen_Kompetenzen_Bergbau.html*P04_U_Kompetenzen_Bergbau_Tagebau.html*P02_Unternehmen_Presse.html*P03_Unternehmen_Presse_Pressemitteilungen.html*P04_U_Presse_Pressemitteilungen_Pressemitteilung.html*P04_U_Karriere_SchuelerAuszubildende_Ausbildungsgaenge.html*P04_OnlineBewerbung.html*P03_Unternehmen_Karriere_Jobfair.html*P02_Unternehmen_Vattenfallregional.html*P04_U_Vattenfallregional_Mitteldeutschland_Standorte.html*P04_U_Konzern_Management_Vattenfall.html*P04_U_Konzern_Management_VattenfallAB_LarsGJosefsson.html*P04_U_Konzern_Management_VattenfallEurope.html*P04_U_Konzern_Management_VattenfallEurope_DrKlausRauscher.html*P04_U_Konzern_Kommunikation_Veranstaltungen.html*#*P00_Suche.html*P00_Sitemap.html*P00_Kontakt.html*P00_Impressum.html");
var fusszeile = new create_Fusszeile("Datenschutz*Impressum","#*#*P00_Impressum.html");
var portalnavigation = new create_Portalnavigation("Unternehmen*Kunden","P01_Portalseite_Unternehmen.html*P01_Portalseite_Kunden.html");
var hauptnavigation_kunden = new create_Hauptnavigation(
"Privatkunden*Gesch&auml;ftskunden*W&auml;rmekunden*Weiterverteiler*Netzkunden*Counterparts*Partner","P03_Kunden_StromWaerme_Privat.html*#*#*#*#*#*#");
//var seitennavigation_stromwaerme = new create_Seitennavigation("Strom & W&auml;rme Kunden","Privat*Gesch&auml;ft","P03_Kunden_StromWaerme_Privat.html*#");
var seitennavigation_weiterverteiler = new create_Seitennavigation("Weiterverteiler","Produkt & Services*Kontakt","#*P03_Kunden_Weiterverteiler_Kontakt.html");
var seitennavigation_geschaeftspartner = new create_Seitennavigation("Gesch&auml;ftspartner","Consulting*Contracting*Information Services*Waste to Energy*Venture*Bildung","#*#*#*#*#*#");
var seitenunternavigation_bildung = new create_Seitenunternavigation("Tagungshotels*Auftragsausbildung*Fortbildung","#*#*#");
var hauptnavigation_unternehmen = new create_Hauptnavigation("Gesch?ftsfelder*Presse*Karriere*Finanzen*Umwelt*Engagement*Konzern","P02_Unternehmen_Kompetenzen.html*P02_Unternehmen_Presse.html*kar.html*#*#*#*kon.html");
//var seitennavigation_kompetenzen = new create_Seitennavigation("Gesch?ftsfelder","Bergbau*Kraftwerke*W?rme*Netze*Trading*Vertrieb*weitere Gesch?ftsfelder","P03_Unternehmen_Kompetenzen_Bergbau.html*#*#*#*#*#*#*#*#");
//var seitenunternavigation_bergbau = new create_Seitenunternavigation("Profil*Produkte*Tagebau*Partner","#*#*P04_U_Kompetenzen_Bergbau_Tagebau.html*#");
//var seitennavigation_presse = new create_Seitennavigation("Presse","Pressemitteilungen*Pressearchiv*Pressebilder*Infoservice*Virtuelle Pressemappe","P03_Unternehmen_Presse_Pressemitteilungen.html*#*#*#*#*#");
//var seitennavigation_karriere = new create_Seitennavigation("Karriere","Arbeiten@Vattenfall*Sch&uuml;ler & Auszubildende*Studenten*Absolventen*Stellenangebote*Jobfair","#*#*#*#*#*P03_Unternehmen_Karriere_Jobfair.html");
var seitenunternavigation_schuelerundauszubildende = new create_Seitenunternavigation("Ausbildungsg&auml;nge*Praktika*FAQs","#*#*#");
//var seitennavigation_vattenfallregional = new create_Seitennavigation("Region","Lausitz*Th&uuml;ringer Wald*Mitteldeutschland*Erzgebirge*Gro&szlig;raum Berlin*Gro&szlig;raum Hamburg","#*#*#*#*#*#");
var seitenunternavigation_mitteldeutschland = new create_Seitenunternavigation("News*Jobbeschreibung*Detail Eventseite*Standorte","#*#*#*P04_U_Vattenfallregional_Mitteldeutschland_Standorte.html");
//var seitennavigation_konzern = new create_Seitennavigation("Konzern","Vattenfall Europe *Vattenfall AB *Management*Kommunikation","#*#*#*#");
var seitenunternavigation_management = new create_Seitenunternavigation("Vattenfall AB*Vattenfall Europe*Tochtergesellschaften","P04_U_Konzern_Management_Vattenfall.html*P04_U_Konzern_Management_VattenfallEurope.html*#");
var seitenunternavigation_kommunikation = new create_Seitenunternavigation("Werbekampagnen*Messen*Veranstaltungen","#*#P04_U_Konzern_Kommunikation_Veranstaltungen.html");
var seitennavigation_vorlagen = new create_Seitennavigation("Vorlagen","Vorlage 3 Spalten Standard*Vorlage 2 Spalten*Vorlage 2 und 3 Spalten*Vorlage 3 und 2 Spalten*Vorlage Module","Vorlage_3Spalten_Standard.html*Vorlage_2_Spalten.html*Vorlage_2und3_Spalten.html*Vorlage_3und2_Spalten.html*Vorlage_Module.html");

// Neue Navigation
var seitenkontakt_allgemein = new create_Seitenkontakt("Vattenfall Europe*Chausseestra?e 99*D-10000 Berlin*Tel. 030/8182-0*spacer.gif",2);
var seitennavigation_stromwaerme = new create_Seitennavigation2("Privatkunden","","","P03_Kunden_StromWaerme_Privat",1,0);
var seitenkontakt_stromwaerme = new create_Seitenkontakt("Haben Sie noch Fragen?*Andreas Uhlig*privatkunden@vattenfall.de*spacer.gif",2);
var seitennavigation_kompetenzen = new create_Seitennavigation2("Gesch?ftsfelder","Bergbau*Kraftwerke*W?rme*Netze*Trading*Vertrieb*weitere Gesch?ftsfelder","P03_Unternehmen_Kompetenzen_Bergbau.html*#*#*#*#*#*#*#*#","P02_Unternehmen_Kompetenzen",1,0);
var seitennavigation_kompetenzen_bergbau = new create_Seitennavigation2("Gesch?ftsfelder*Bergbau","Profil*Tagebau*Veredelung*Partner","#*P04_U_Kompetenzen_Bergbau_Tagebau.html*#*#","P02_Unternehmen_Kompetenzen*P03_Unternehmen_Kompetenzen_Bergbau",2,0);
var seitennavigation_kompetenzen_bergbau_tagebau = new create_Seitennavigation2("Gesch?ftsfelder*Bergbau*Tagebau","Profil*Tagebau*Veredelung*Partner","#*#*#*#","P02_Unternehmen_Kompetenzen*P03_Unternehmen_Kompetenzen_Bergbau*P04_U_Kompetenzen_Bergbau_Tagebau",3,1);
var seitenkontakt_kompetenzen_bergbau = new create_Seitenkontakt("Haben Sie noch Fragen?*Peter Fromm - Pressesprecher*peter.fromm@vattenfall.de*spacer.gif",2);
// PRESSE
var seitenkontakt_presse = new create_Seitenkontakt("Haben Sie noch Fragen?*Peter Fromm - Pressesprecher*presse@vattenfall.de*spacer.gif",2);
var seitennavigation_presse = new create_Seitennavigation2("Presse","Pressemitteilungen*Pressearchiv*Pressebilder*Infoservice*Ansprechpartner","P03_Unternehmen_Presse_Pressemitteilungen.html*#*#*#*#*#","P02_Unternehmen_Presse",1,0);
var seitennavigation_presse_mitteilungen = new create_Seitennavigation2("Presse","Pressemitteilungen*Pressearchiv*Pressebilder*Infoservice*Ansprechpartner","P03_Unternehmen_Presse_Pressemitteilungen.html*#*#*#*#*#","P02_Unternehmen_Presse*P03_Unternehmen_Presse_Pressemitteilungen",1,0);
// KARRIERE
//var seitenkontakt_karriere = new create_Seitenkontakt("Haben Sie noch Fragen?*Udo Bekker - Personalwesen*karriere@vattenfall.de*spacer.gif",2);
var seitenkontakt_karriere = new create_Seitenkontakt2("Ihr Kontakt in","1*Boxberg*ausbildung.box@vattenfall.de*1*Cottbus*ausbildung.cot@vattenfall.de*1*J?nschwalde*ausbildung.jae@vattenfall.de*2*Berlin*ausbildung@vattenfall*3*Hamburg*ausbildung@hew.de");
var seitennavigation_karriere = new create_Seitennavigation2("Karriere","Vattenfall Europe als Arbeitgeber*Sch&uuml;ler & Auszubildende*Studenten*Absolventen*Termine*Stellenangebote","#*P04_U_Karriere_SchuelerAuszubildende_Ausbildungsgaenge.html*#*#*#*#","kar",1,0);
var seitennavigation_karriere_schueler = new create_Seitennavigation2("Karriere*Sch&uuml;ler & Auszubildende","Vattenfall Europe als Arbeitgeber*Sch&uuml;ler & Auszubildende*Studenten*Absolventen*Termine*Stellenangebote","#*#*#*#*#*#","kar*P04_U_Karriere_SchuelerAuszubildende_Ausbildungsgaenge",2,1);
//var seitennavigation_karriere_jobfair = new create_Seitennavigation2("Karriere*Jobfair","Arbeiten@Vattenfall*Sch&uuml;ler & Auszubildende*Studenten*Absolventen*Stellenangebote*Jobfair","#*#*#*#*#*P03_Unternehmen_Karriere_Jobfair.html","kar*P03_Unternehmen_Karriere_Jobfair",2,1);
// REGIONAL
var seitennavigation_vattenfallregional = new create_Seitennavigation2("Region","Lausitz*Th&uuml;ringer Wald*Mitteldeutschland*Erzgebirge*Gro&szlig;raum Berlin*Gro&szlig;raum Hamburg","#*#*#*#*#*#","P02_Unternehmen_Vattenfallregional",1,0);
//KONZERN
var seitennavigation_konzern = new create_Seitennavigation2("Konzern","Vattenfall Europe*Vattenfall AB*Management*Kommunikation","#*#*P04_U_Konzern_Management_Vattenfall.html*P04_U_Konzern_Kommunikation_Veranstaltungen.html","kon",1,0);
var seitenkontakt_konzern_kommunikation = new create_Seitenkontakt2("Kontakt zu den Themen","1*Presse*.presse@vattenfall.de*1*?ffentlichkeitsarbeit*pr@vattenfall.de*1*Veranstaltungen*events@vattenfall.de*1*Besichtigungen*besichtigungen@vattenfall");
var seitennavigation_konzern_management = new create_Seitennavigation2("Konzern*Management","Vattenfall AB*Vattenfall Europe*Tochtergesellschaften","P04_U_Konzern_Management_VattenfallEurope.html*P04_U_Konzern_Management_VattenfallEurope.html*#","kon*P04_U_Konzern_Management_Vattenfall",2,0);
var seitennavigation_konzern_management_vab = new create_Seitennavigation2("Konzern*Management","Vattenfall AB*Vattenfall Europe*Tochtergesellschaften","#*P04_U_Konzern_Management_VattenfallEurope.html*#","kon*P04_U_Konzern_Management_Vattenfall*",2,0);
var seitennavigation_konzern_management_vab_josefsson = new create_Seitennavigation2("Konzern*Management","Vattenfall AB*Vattenfall Europe*Tochtergesellschaften","P04_U_Konzern_Management_Vattenfall.html*P04_U_Konzern_Management_VattenfallEurope.html*#","kon*P04_U_Konzern_Management_Vattenfall",3,1);
var seitennavigation_konzern_management_ve = new create_Seitennavigation2("Konzern*Management","Vattenfall AB*Vattenfall Europe*Tochtergesellschaften","P04_U_Konzern_Management_Vattenfall.html*#*#","kon*P04_U_Konzern_Management_Vattenfall",2,0);
var seitennavigation_konzern_management_ve_rauscher = new create_Seitennavigation2("Konzern*Management","Vattenfall AB*Vattenfall Europe*Tochtergesellschaften","P04_U_Konzern_Management_Vattenfall.html*P04_U_Konzern_Management_VattenfallEurope.html*#","kon*P04_U_Konzern_Management_Vattenfall",3,1);
var seitennavigation_konzern_kommunikation = new create_Seitennavigation2("Konzern*Kommunikation","Werbekampagnen*Messen*Veranstaltungen","#*#P04_U_Konzern_Kommunikation_Veranstaltungen.html","kon*P04_U_Konzern_Kommunikation_Veranstaltungen",3,1);
*/

/* hinzugefuegt im Rahmen DMS*/
var popupWin = '';

function fehler()
{
        return true;
}
if (document.all) window.onerror=fehler;

function browsertype()
{
	if (document.layers && !document.all && !document.getElementById) return "nn4";
	if (window.opera) return "opera";
	if (document.getElementById && !document.all) return "mozilla";
	return "ie5";
}
var browser=browsertype();

/* [BEGIN] x1mgrabe 2007/07/16 - DMS popup IE7: Added this function for Th. Laubner here */
/*
 * Return major (.minor) version of the IE (if being present).
 * @return 5, 5.5, 6 or 7 
 */
function getIEVersion(){
	var ieVersion = null;
	var md = window.showModelessDialog; /* Win 5+, WinCE 5.5+ */
	var ns = document.namespaces; /* Win 5.5+, WinCE 5.5+ */
	var im = document.implementation; /* Win 6, Mozilla */
	if(md != null && ns == null && im == null){
		ieVersion = 5;
	}else if(md != null && ns != null && im == null){
		ieVersion = 5.5;
	}else if(md != null && ns != null && im != null && window.XMLHttpRequest){
		ieVersion = 7;
	}else if(md != null && ns != null && im != null){
		ieVersion = 6;
	}
	
	return ieVersion;
}
/* [END] x1mgrabe 2007/07/16 - DMS popup IE7 */

function getVisiblewidth()
{
	switch (browser)
	{
		case "ie5": return document.body.clientWidth; break;
		default: return window.innerWidth; break;
	}
}

function objectcheck(objectid)
{
	switch (browser)
	{
		case "nn4": if (document.layers[objectid]) return true; break;
		default: if (document.getElementById(objectid)) return true; break;
	}
}

function imageswitch(imagename,value)
{
	switch (browser)
	{
		case "nn4": document.images[imagename].src=value; break;
		case "mozilla": document.images[imagename].src=value; break;
		default: document.images[imagename].setAttribute("src",value);
	}
}

function setPositionx(objectid,value)
{
	switch (browser)
	{
		case "nn4": document.layers[objectid].pageX=value; break;
		default: document.getElementById(objectid).style.left=value+"px"; break;
	}
}

function setPositiony(objectid,value)
{
	switch (browser)
	{
		case "nn4": document.layers[objectid].pageY=value; break;
		default: document.getElementById(objectid).style.top=value+"px"; break;
	}
}

function get_positiony(objectid)
{
	switch (browser)
	{
		case "nn4": return document.layers[objectid].pageY; break;
		default: return parseInt(document.getElementById(objectid).style.top); break;
	}
}

function setVisibility(objectid,value)
{
	if (!objectcheck(objectid)) return;
	switch (browser)
	{
		case "nn4": document.layers[objectid].visibility=value; break;
		default: document.getElementById(objectid).style.visibility=value; break;
	}
}

function goQuickfinder(value)
{
	if (browser=="nn4") value=document.quickfinder.auswahl[document.quickfinder.auswahl.selectedIndex].value;
	if (value!="")
	{
		document.quickfinder.auswahl.options[0].selected=true;
		self.location.href=value;
	}
}

//mlazurek 14.03.2007
function goSitesSelector(value, qfinder)
{
	if (browser=="nn4") value=qfinder[qfinder.selectedIndex].value;
	if (value!="")
	{
		// ?bergabeparameter setzen
		var searchURL = qfinder.value;
		var strURL = qfinder.value;

		// TargetParameter
		var strTarget = "";

		if(searchURL != "") {
			var strTargetParameter = "#target=";
	 		var posStartTarget = searchURL.indexOf(strTargetParameter);
	 		if(posStartTarget > -1) {
	 			strTarget = searchURL.substring(posStartTarget+strTargetParameter.length,searchURL.length);
	 			strURL = searchURL.substring(0,posStartTarget);
	 		}
	 	}

		qfinder.options[0].selected=true;

		if(strTarget =="_blank"){
			window.open(strURL);
		}else{
			self.location.href=strURL;
		}

	}
	else qfinder.options[0].selected=true;
}

function setColor(object,objectid,event)
{
//alert(object+' - '+objectid+' - '+event);
	if (browser=="nn4") return;
	var color;
	if (event==1)
	{
		switch (objectid)
		{
			case "textweiss": color="#ffffff"; break;
			case "textblau": color="#e67700"; break;
			case "navigationsspalte": color="#ff7200"; break;
			default: break;
		}
	}
	else
	{
		switch (objectid)
		{
			case "textweiss": color="#ffffff"; break;
			case "textblau": color="#4c92d9"; break;
			case "navigationsspalte": color="#326caa"; break;
			default: break;
		}
	}
	if (!color) return;
	object.style.color=color;
}

function objekte_ausrichten(objectid,value)
{
	setPositionx(objectid,value);
	setVisibility(objectid,"visible");
}

function setBgColor1(objectid,event)
{
	if (browser=="nn4") return;
	if (event==1)
	{
		for (i=1;i<=2;i++)
		{
			document.getElementById("portalnavigation"+objectid+i).style.backgroundColor="#e67700";
		}
	}
	else
	{
		for (i=1;i<=2;i++)
		{
			document.getElementById("portalnavigation"+objectid+i).style.backgroundColor="#ff9900";
		}
	}
}

function setBgColor2(objectid,event)
{
	if (browser=="nn4") return;
	if (event==1)
	{
		document.getElementById("hauptnavigation"+objectid).style.backgroundColor="#2c75be";
	}
	else
	{
		document.getElementById("hauptnavigation"+objectid).style.backgroundColor="#4c92d9";
	}
}

function openUrl(url)
{
	self.location.href=url;
}

// Funktionen aus VAB-Vorschlag ?bernommen

function menuTopMover(id,pos){
	if(pos==0){
	id.style.backgroundImage = 'url("grafiken/meny_bg_top_over.gif")'
	}else{
	id.style.backgroundImage = 'url("grafiken/meny_bg_top_over_arrow.gif")'
	}
}

function menuTopMout(id,pos){
	if(pos==0){
	id.style.backgroundImage = 'url("grafiken/meny_sub_bg_top.gif")'
	}else{
	id.style.backgroundImage = 'url("grafiken/meny_sub_bg_top_arrow.gif")'
	}
}

// Ende der Funktionen aus VAB-Vorschlag

// Neue Funktionen [Gerhard Kersten, Resco Solutions]

/* Position eines Objekts der ID "objectId" relativ zu einem Objekt der ID "ref" setzen */
function setRelativePositionx(objectId, x, ref)
{
	//alert("In setRelativePositionx, objectId: " +objectId +", x: " +x +", ref: " +ref);
	var xref= -2;
	if (document.getElementById) xref= getLeft(document.getElementById(ref));
	if (xref < 0) xref= getVisiblewidth()/2 -370; // falls getLeft nicht funktioniert
	if (xref < 20) xref= 20; // Falls Fenster kleiner als Inhalt
	var xneu= parseInt(x) +parseInt(xref);
	setPositionx(objectId, xneu);
	//alert("Nach setPositionx, x: " +x +", xref: " +xref +", x+xref: " +xneu);
}
function setRelativePositiony(objectId, y, ref)
{
	//alert("In setRelativePositiony, objectId: " +objectId +", y: " +y +", ref: " +ref);
	var yref= -2;
	if (document.getElementById) yref= getTop(document.getElementById(ref));
	//  if (yref < 0) yref= 180; // falls getTop nicht funktioniert
	if (yref < 0) yref= 150; // falls getTop nicht funktioniert [Testzeilen einrechnen]
	var yneu= parseInt(y) +parseInt(yref);
	setPositiony(objectId, yneu);
	//alert("Nach setPositiony, y: " +y +", yref: " +yref +", y+yref: " +yneu);
}

/* Position eines Objektes "obj" */
function getLeft(obj)
{
  //alert("getLeft: " +obj.tagName +", id: " +obj.id +", obj.offsetLeft:" +obj.offsetLeft +", obj.offsetParent:" +obj.offsetParent);
  if (obj.offsetParent) return (obj.offsetLeft + getLeft(obj.offsetParent));
  else return (obj.offsetLeft);
}
function getTop(obj)
{
  if (obj.offsetParent) return (obj.offsetTop + getTop(obj.offsetParent));
  else return (obj.offsetTop);
}

// ==========================================================================
// NOTE: SHOULD REMOVE THIS OLD COMMENTED CODE AFTER QA!
// ==========================================================================

// HS2006-05-05, diese Version wird nicht mehr verwendet, neuer Stand s.u. (Cosmoblonde)
/* hinzugefuegt im Rahmen DMS*/
/*function getInnerWidthAndHeight(){
	var w, h;

	if (self.innerHeight){
		// all except Explorer
		w = self.innerWidth;
		h = self.innerHeight;
	}else if (document.documentElement && document.documentElement.clientHeight){
		// Explorer 6 Strict Mode
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	}else if (document.body){
		// other Explorers
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	return {w:w, h:h};
}*/

// HS2006-05-05, diese Version wird nicht mehr verwendet, neuer Stand s.u. (Cosmoblonde)
/*function getInnerWidth(){
	return getInnerWidthAndHeight().w;
}*/

// HS2006-05-05, diese Version wird nicht mehr verwendet, neuer Stand s.u. (Cosmoblonde)
/*function getInnerHeight(){
	return getInnerWidthAndHeight().h;
}*/

// HS2006-05-05, diese Version wird nicht mehr verwendet, neuer Stand s.u. (Cosmoblonde)
/*function checkPopup(site) {
	var savedWinInfo = self.name.split("_");
	var initW = Number(savedWinInfo[1]);
	var initH = Number(savedWinInfo[2]);
	//alert(initW+" "+initH);
	switch (site) {
	case "dms" :
		var measuredElems = ["header", "headerPict", "wrapperMainNavigation", "wrapperMainContent", "footer"];
		var standardW = 790;
		var resizeWNoScrollbar = standardW + 7;
		var resizeWScrollbar = standardW + 24;
		break;
	default :
		return;
	}
	var totalElemH = 0;
	var debug = "";
	var winW = getInnerWidth();
	for (var i = 0; i < measuredElems.length; i++) {
		var elem = document.getElementById(measuredElems[i]);
		totalElemH += elem.offsetHeight;
		debug += measuredElems[i] + " " + elem.offsetHeight + "\n";
	}
	var footer = document.getElementById("footer");
	var wrapperMainContent = document.getElementById("wrapperMainContent");
	//alert(browsertype());
	if (totalElemH < initH) {
		footer.style.position = "absolute";
		footer.style.bottom = 0;
		if (winW > standardW) {
			window.resizeTo(resizeWNoScrollbar, initH);
			//alert("winW > 790 "+resizeWNoScrollbar+" "+(initH));
		} else {
			//alert("winW not > 790");
			//window.resizeTo(resizeWScrollbar, defaultH);
		}
	} else {
		//alert("elems higher");
		window.resizeTo(resizeWScrollbar, initH);
	}
}*/

function openWin(centered, url, winWidth, winHeight) {
	if (!popupWin.closed && popupWin.location){
		popupWin.location.href = url;
	}
	if(centered){
		_left = ((screen.width-winWidth)/2);
		_top = ((screen.height-winHeight)/2)-50;
	}else{
		_left = 0;
		_top = 0;
	}
	scrollbarsEnabled = "1";
	props = 'toolbar=0,left=' + _left + ',top=' + _top + ',status=0,menubar=0,scrollbars=' + scrollbarsEnabled + ',resizable=0,width=' + winWidth + ',height=' + winHeight ;
	//alert(props);
	popupWin = window.open(	url,'popup_' + winWidth + "_" + winHeight, props );
	popupWin.focus();
	return false;
}





// HS2006-05-05: Neue und aktualisierte Funktionen von Cosmoblonde
// Notwendig f?r Flashobjekte und f?r Popups

/*############################# START FLASH-SECTION ###########################*/
numSWFsInPage = 0;
hasFlashVersion = false;
divContainer = null;
function detectFlashVersion(flashVersion) {
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if (plugin) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i) {
			if (isNaN(parseInt(words[i]))) {
				continue;
			}
			var pluginVersion = words[i];
		}
		hasFlashVersion = pluginVersion >= flashVersion;
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		//FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('hasFlashVersion = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.' + flashVersion + '")))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	return hasFlashVersion;
}
function AC_Generateobj(objAttrs, params, embedAttrs) {
	var str = '<object ';
	for (var i in objAttrs) {
		str += i + '="' + objAttrs[i] + '"  \n';
	}
	str += '> \n';
	for (var i in params) {
		str += '<param name="' + i + '" value="' + params[i] + '" /> \n';
	}
	str += '<embed ';
	for (var i in embedAttrs) {
		str += i + '="' + embedAttrs[i] + '" \n';
	}
	str += ' ></embed>\n</object>';
	//2008-06-06 cosmoblonde
	//	write immediately, if divContainer (hidden <div> in B1068) exists
	if(null == divContainer){
		document.write(str);
	}else{
		return str;
	}
	//2008-06-06 cosmoblonde
	//alert(str);
}
function AC_FL_RunContent() {
	var ret = AC_GetArgs(arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash");
	
	//2008-06-06 cosmoblonde
	//now returns the object-Tag-String, if divContainer (hidden <div> in B1068) exists
	return AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
	//2008-06-06 cosmoblonde
}
function AC_AddExtension(src, ext) {
	return src;
	/*
		if (src.indexOf('?') != -1){
			return src.replace(/\?/, ext+'?');
			}
		  else{
			return src + ext;
		}
		*/
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType) {
	var ret = new Object();
	ret.embedAttrs = new Object();
	ret.params = new Object();
	ret.objAttrs = new Object();
	for (var i = 0; i < args.length; i = i + 2) {
		var currArg = args[i].toLowerCase();
		switch (currArg) {
		case "classid" :
			break;
		case "pluginspage" :
			ret.embedAttrs[args[i]] = args[i + 1];
			break;
		case "src" :
		case "movie" :
			args[i + 1] = AC_AddExtension(args[i + 1], ext);
			ret.embedAttrs["src"] = args[i + 1];
			ret.params[srcParamName] = args[i + 1];
			break;
		case "onafterupdate" :
		case "onbeforeupdate" :
		case "onblur" :
		case "oncellchange" :
		case "onclick" :
		case "ondblClick" :
		case "ondrag" :
		case "ondragend" :
		case "ondragenter" :
		case "ondragleave" :
		case "ondragover" :
		case "ondrop" :
		case "onfinish" :
		case "onfocus" :
		case "onhelp" :
		case "onmousedown" :
		case "onmouseup" :
		case "onmouseover" :
		case "onmousemove" :
		case "onmouseout" :
		case "onkeypress" :
		case "onkeydown" :
		case "onkeyup" :
		case "onload" :
		case "onlosecapture" :
		case "onpropertychange" :
		case "onreadystatechange" :
		case "onrowsdelete" :
		case "onrowenter" :
		case "onrowexit" :
		case "onrowsinserted" :
		case "onstart" :
		case "onscroll" :
		case "onbeforeeditfocus" :
		case "onactivate" :
		case "onbeforedeactivate" :
		case "ondeactivate" :
		case "type" :
		case "codebase" :
			ret.objAttrs[args[i]] = args[i + 1];
			break;
		case "width" :
		case "height" :
		case "align" :
		case "vspace" :
		case "hspace" :
		case "class" :
		case "title" :
		case "accesskey" :
		case "name" :
		case "id" :
		case "tabindex" :
			ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i + 1];
			break;
		default :
			ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i + 1];
		}
	}
	ret.objAttrs["classid"] = classid;
	if (mimeType) {
		ret.embedAttrs["type"] = mimeType;
	}
	return ret;
}
function URLEncodeForFlashVars(plaintext) {
	var SAFECHARS = "0123456789" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ\u00C4\u00D6\u00DC\u00DF" + "abcdefghijklmnopqrstuvwxyz\u00E4\u00F6\u00FC" + "-_.!~*'()";
	var HEX = "0123456789ABCDEF";
	var encoded = "";
	plaintext = plaintext.split('&amp;').join('&');
	plaintext = plaintext.split('&lt;').join('<');
	plaintext = plaintext.split('&gt;').join('>');
	for (var i = 0; i < plaintext.length; i++) {
		var ch = plaintext.charAt(i);
		if (ch == " ") {
			encoded += "+";
		} else if (SAFECHARS.indexOf(ch) != -1) {
			encoded += ch;
		} else {
			var charCode = ch.charCodeAt(0);
			if (charCode > 255) {
				//alert(ch);
				encoded += ch;
			} else {
				encoded += "%";
				encoded += HEX.charAt((charCode >> 4) & 0xF);
				encoded += HEX.charAt(charCode & 0xF);
			}
		}
	}
	encoded = encoded.split('%3C').join('%26lt;');
	encoded = encoded.split('%3E').join('%26gt;');
	return encoded;
}
/*############################# END FLASH-SECTION ###########################*/
/*############################# START POPUP-SECTION ###########################*/
function getInnerWidthAndHeight() {
	var w, h;
	if (self.innerHeight) {
		// all except Explorer
		w = self.innerWidth;
		h = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		// Explorer 6 Strict Mode
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	} else if (document.body) {
		// other Explorers
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	return {w:w, h:h};
}
function getInnerWidth() {
	return getInnerWidthAndHeight().w;
}
function getInnerHeight() {
	return getInnerWidthAndHeight().h;
}

/* [BEGIN] x1mgrabe 2007/07/16 - DMS popup IE7: Need to replace this function here */
/*function checkPopup(site) { // until version 60.0.0
      var savedWinInfo = self.name.split("_");
      // 2007-10-15 | x1aroehring: commented initW and initH: paramters are set in dms template now
      // var initW = Number(savedWinInfo[1]);
      // var initH = Number(savedWinInfo[2]);
      if(isNaN(initW) || !initW){
            return;
      }
      if(isNaN(initH) || !initH){
            return;
      }
      //alert(savedWinInfo+" "+initW+" "+initH);
      switch (site) {
      case "dms" :
            var measuredElems = ["header", "headerPict", "mainNavigation", "wrapperMainContent","wrapperMainContentWide", "footer"];
            var standardW = 790;
            var resizeWNoScrollbar = standardW + 7;
            var resizeWScrollbar = standardW + 24;
            break;
      default :
            return;
      }

      var totalElemH = 0;
      var debug = "";
      var winW = getInnerWidth();
      var winBrowserFrameH = 27;
      for (var i = 0; i < measuredElems.length; i++) {
            var elem = document.getElementById(measuredElems[i]);
            if(elem){
                  totalElemH += elem.offsetHeight;
                  debug += measuredElems[i] + " " + elem.offsetHeight + "\n";
            }
      }
      //x1canders 2007-11-12 hint from Cosmoblonde to avoid that the footer is floating in the text of an page
      // where the content is smaller then the page
      totalElemH += 40;

      var footer = document.getElementById("footer");
      var wrapperMainContent = document.getElementById("wrapperMainContent");
      //alert(browsertype());
      if (totalElemH < initH) {
            footer.style.position = "absolute";
            footer.style.bottom = "0px";

if (browsertype() == "mozilla") {
    footer.style.bottom = "20px";
}
footer.style.left = "20px";
            if (winW > standardW) {
                  window.resizeTo(resizeWNoScrollbar, initH + winBrowserFrameH);
                  //alert("winW > 790 "+resizeWNoScrollbar+" "+(initH));
            } else {
                  //alert("winW not > 790");
                  //window.resizeTo(resizeWScrollbar, defaultH);
            }
      } else {
            //alert(debug);
            window.resizeTo(resizeWScrollbar, initH + winBrowserFrameH);
      }
}*/
function checkPopup(site) {
	/*
	2008-07-16 cosmoblonde: The old function doesn't work with IE7.
	Function, that resizes the window to the width (initW) and height (initH) given in the <head>
	It also positions the footer absolutely at the bottom of the popup-window, if the total height of the contentelements is less than initH.
	*/
	
	var debug = "";
	var browser = browsertype();
	var ieVersion = getIEVersion();
	if (isNaN(initW) || !initW || isNaN(initH) || !initH) { // initW and initH: parameters are set in dms template
		return;
	}
	var totalElemHeight = 0;
	switch (site) {
		case "dms" :
			totalElemHeight = 75 + 180 + 25; //header + headerPict + mainNavigation
			var measuredElems = ["wrapperMainContent", "wrapperMainContentWide", "footer"];
			break;
		default :
			return;
	}
	for (var i = 0; i<measuredElems.length; i++) {
		var elem = document.getElementById(measuredElems[i]);
		if (elem) {
			totalElemHeight += elem.offsetHeight;
			debug += measuredElems[i]+" "+elem.offsetHeight+"\n";
		}
	}
      // 15.10.2008 tomasz.kolodziejczyk 
      // on page can be image/flash/teaser so we have to add to totalElemH additional 40 (hint form old version look above)
	  // jakub.karcz 28.04.2009: changed variable name from totalElemH to totalElemHeight [mantis 9433]
	//ptemich 2009.07.14 - Mantis 9792: Adjusting Javascript for better displayment in Campaign site
	//ptemich 2009.07.27 - another version prepraed by Cosmoblonde
	// pdelijewski, 2010-01-21: comment out the block below due to footer problems on some campaign pages
	/*totalElemHeight += 100;
  var footer = document.getElementById("footer");
  var innerWindowHeight = window.innerHeight == null ? document.body.clientHeight : window.innerHeight; 
  innerWindowHeight = innerWindowHeight == null ? initH : innerWindowHeight;
  if (totalElemHeight < innerWindowHeight) {
		var footerHeight = footer.offsetHeight;
		footer.style.position = "absolute";
		footer.style.bottom = "20px";
		footer.style.height = "20px";
		if(ieVersion == 7){
			footer.style.bottom = "20px";
			footer.style.height = "20px";
		}
		if (browser == "mozilla") {
			footer.style.bottom = "20px";
		}
    footer.style.zIndex = "-1";
		footer.style.left = "20px";
	}else{
		if (browser == "mozilla") {
			
		}else{
			footer.style.height = "40px";
		}
	}*/
	window.resizeTo(initW, initH);
}
/* [END] x1mgrabe 2007/07/16 - DMS popup IE7 */

/*
remove this comment when needed
var popupWin = '';
function openWin(centered, url, winWidth, winHeight) {
	if (!popupWin.closed && popupWin.location){
		popupWin.location.href = url;
	}
	if(centered){
		_left = ((screen.width-winWidth)/2);
		_top = ((screen.height-winHeight)/2)-50;
	}else{
		_left = 0;
		_top = 0;
	}
	scrollbarsEnabled = "1";
	props = 'toolbar=0,left=' + _left + ',top=' + _top + ',status=0,menubar=0,scrollbars=' + scrollbarsEnabled + ',resizable=0,width=' + winWidth + ',height=' + winHeight ;
	popupWin = window.open(	url,'popup_' + winWidth + "_" + winHeight, props );
	popupWin.focus();
	return false;
}
*/
/*############################# END POPUP-SECTION ###########################*/

function setEcardOID(oid){
  var inputs = document.getElementsByTagName("input");
  for(var i=0; i<inputs.length; i++){
    var input = inputs[i];
    if(input.attributes.name.value == "ecard_oid" && input.attributes.type.value == "hidden"){
       input.attributes.value.value = oid;
    }
  }
}

    //ptemich 2008.12.11 variable used to store IDs of iframes which were reloaded for the first time
    //and should start using new feature with each next reload of the iframe
    var iframesAlreadyReloaded = "";


    //-----------------------------------------------------------------------------------
    //@author ptemich
    //@since  14.II.2007
    //@param  name - id of the iframe that should be resized
    //
    //this function allows dynamically resize an iframe component
    //it was designed as a function that is assigned to a onload event of the iframe
    //-----------------------------------------------------------------------------------
    function reloadResize(name) {
      //this function is caled form iframe so we need to go to parent window
      var frame  = this.parent.document.getElementById(name);
      var maxVal = this.parent.document.getElementById(name + '_MAX');
      var defVal = this.parent.document.getElementById(name + '_DEF');

      //BEGIN: ptemich 2008-02-01 , preview fix - when window is displayed in preview iframe then parent attribute changes its context
      if (!frame) {
        frame  = this.document.getElementById(name);
        maxVal = this.document.getElementById(name + '_MAX');
        defVal = this.document.getElementById(name + '_DEF');
      }
      //END: ptemich 2008-02-01

      def = defVal.value;
      max = maxVal.value;

      var framebody = null;
      var newHeight = def; //assigne the default height - will be used if an error occurs

      //getting the body of this window must be done in try/catch block because if the iframe content
      //will be in other domain than the parent window then there an exception will be thrown
      try {
        //framebody = frame.contentWindow.document.body;
        framebody = frame.contentWindow.document.documentElement;
        //set the height to 1 - otherwise if content of the iframe will be smaller than the iframe you will get wrong heightscroll value
        frame.height = 1;
        newHeight = framebody.scrollHeight;

        //ptemich 2007.09.13 //for some pages scrollHeight from framebody is returned as window size
        var backupHeight = frame.contentWindow.document.body.scrollHeight;
		if (newHeight == 1) {
  			newHeight = backupHeight;
		}
		//END: ptemich 2007.09.13

      } catch (err) {
        //application is placed in other domain than the parent page
      }

      if (newHeight > max) {  //check if it's not larger than the max height
        frame.height = max;  //assign new height
      } else {
        frame.height = newHeight; //assign new height

        // 2009-05-18 O.Niekrenz: bugfix - framebody does not have to be set
        //  (same origin policy, see try/catch comment above)
        if (framebody) {
          //check if there is a scrollbar on the bottom
          var scrolbarHeight = parseInt(framebody.offsetHeight) - parseInt(framebody.clientHeight);
        
          // jakub.karcz 27.05.2008: in IE7 scrolbarHeight is negative number, so it creates smaller IFrame (scrollbars are visible). We need to get positive number.
          if(scrolbarHeight < 0) {
            scrolbarHeight = -scrolbarHeight;
          }

          //if page contains only plain text then sometimes clientHeight is returned as zero and then correction will be wrong
          if (parseInt(framebody.clientHeight) == 0) {
            scrolbarHeight = 0;
          }

          if ((scrolbarHeight != 0) && (newHeight != def) ) { //if it's equal to def then don't resize
            //correct the height of this frame by scrollbar size, otherwise you will see right scrollbar
            newHeight = parseInt(frame.height) + parseInt(scrolbarHeight);
            frame.height = newHeight;
          }
        }

      }
      
      //BEGIN: karol.piasta, 2008-06-02, set size phonebook detail window
      //these hidden parameters are set in phonebook detail window when parameter 'isPageInclude' is set on true in url
      try {
        var phoneWidth = frame.contentWindow.document.getElementById('FRAME_PHONEBOOK_PARAM_WIDTH');
        var phoneHeight = frame.contentWindow.document.getElementById('FRAME_PHONEBOOK_PARAM_HEIGHT');
        if(phoneWidth && phoneHeight){
          frame.width = parseInt(phoneWidth.value);
          frame.height = parseInt(phoneHeight.value);
          var objectVatt = frame.contentWindow.document.getElementById('vattenfall-com');
          if(objectVatt){
            objectVatt.style.cssText = 'margin: 0px 0px 0px 0px ! important; padding: 0px ! important; background-image: none ! important; height: ' + phoneHeight.value + 'px ! important; width: ' + phoneWidth.value + 'px ! important;';
          }
        }
      } catch(err) {
        //not necessary
      }
      //END: karol.piasta, 2008-06-02, set size phonebook detail window

      //ptemich 24.IV.2007 reinit cell order
      try {
        //ptemich 2009.06.17 - CAT2: 7Up: INC 78359 Layout turbinen nordsite
        //we shouldn't change position of the elements before the main repositioning from the page will be executed
        //we create a new instance of Cosmoblonde only when the original already exists
        //This fixes the problem with wrong ordered elements. In some cases IE was able to render the iframe earlier
        //than the main page and it crashed the whole design
        if (typeof(_C_NS) != 'undefined') {
          _C_NS = new Cosmoblonde();
          C_byTagAndClassName = _C_NS.byTagAndClassName;
          C_hasClass = _C_NS.hasClass;
          C_getPosAndDim = _C_NS.getPosAndDim;
          C_removeComments = _C_NS.removeComments;
          C_getFlashHeight = _C_NS.getFlashHeight;
          var raster = new Cosmoblonde.raster();
        }  
      } catch (err) {
        //this js was used without necessary js imports
      }
      
      // BEGIN: ptemich 2008.12.11, new feature which scrolls the parent page to top of an iframe
      //   when content of an iframe was reloaded
      // 2009-05-20 O.Niekrenz: added feature to scroll to top of page
      if (iframesAlreadyReloaded.indexOf(name) == -1) {
        // add this frame to list of already reloaded iframes
        if ((frame.src.indexOf("scrollFeature=on") != -1)
            || (frame.src.indexOf("scrollFeature=top") != -1)) {
          iframesAlreadyReloaded += name;
        }
      } else {
        if (frame.src.indexOf("scrollFeature=top") != -1) {
          window.scrollTo(0,0); // scroll to top of page
        } else {
          frame.scrollIntoView(); // scroll to top of iframe
        }
      }
      // END: ptemich 2008.12.11
    }


    //ptemich 17.07.2007
    //this function is called each time when user changes ElementPullDown selection
    function changePullDownElement(selectBox) {
      var toOpen = selectBox.options[ selectBox.selectedIndex ].value;
      //alert(toOpen);
      if (toOpen != "") {
        //first we separate URL, target and popup parameters
        var popParamsIndex = toOpen.indexOf("POP_PARAMS",0);
        var targetIndex = toOpen.indexOf("TARGET",popParamsIndex); //start searching after popup parameters
        var popParams = toOpen.substring(0,popParamsIndex);
        var targetValue = toOpen.substring(popParamsIndex+10, targetIndex);//jump over 10 characters of "POP_PARAMS"
        var cleanURL = toOpen.substring(targetIndex+6, toOpen.length);//jump over 6 characters of "TARGET"

        //clean all not wantend stuff
        popParams = popParams.replace(/^\s+|\s+$/g, ""); //trim parameters
        popParams = popParams.replace(/[\n\r\t]/g,"");  //remove new lines
        cleanURL = cleanURL.replace(/^\s+|\s+$/g, ""); //trim URL
        targetValue = targetValue.replace(/^\s+|\s+$/g, ""); //trim target

        //remove last comma from parameters list
        if (popParams.charAt(popParams.length-1) == ',') {
          popParams = popParams.substr(0, popParams.length-1);
        }

        //alert(popParams);
        //alert(targetValue);
        //alert(cleanURL);

        if (popParams.length == 0) {
          window.open(cleanURL, targetValue);
        } else {
          window.open(cleanURL, targetValue, popParams);
        }

      }
    }


    //ptemich 2008.04.18
    //enable reset button on survey module    
    function enableResetButton(form) {
      //enable reset button
      if (document.getElementById('RESET_BUTTON'+form)) {
        document.getElementById('RESET_BUTTON'+form).disabled = null;
        document.getElementById('RESET_BUTTON'+form).src = document.getElementById('RESET_BUTTON'+form).normalImg;
      }
    }

    //BEGIN ptemich 2008-01-09, survey radio groups

    //ptemich 2007-12-28
    //mark radio group as selected - used in the survey module
    function modifySurveyRadioStatus(tab, id, form) {
      //mark changed radio button question
      for(i = 0; i < tab.length; i++) {
        if (tab[i] == id) {
          tab[i] = "CHECKED";
        }
      }

      //check if all radio button groups have selection
      var activate = true;
      for(i = 0; i < tab.length; i++) {
        if (tab[i] != "CHECKED") {
          activate = false;
        }
      }

      //enable submit button
      if (activate && document.getElementById('SUBMIT_BUTTON'+form)) {
        document.getElementById('SUBMIT_BUTTON'+form).disabled = null;
        document.getElementById('SUBMIT_BUTTON'+form).src = document.getElementById('SUBMIT_BUTTON'+form).normalImg;
      }
      
      //ptemich 2008.04.18, enable reset button after first change
      enableResetButton(form)
    }

    //ptemich 2007-12-28
    //create a table with all radio buttons that should be checked - used in the survey module
    function addSurveyRadioButtonToCheckArray(tab, id) {

      //should we add new radio group or not
      var contains = false;

      for(i = 0; i < tab.length; i++) {
        if (tab[i] == id) {
          contains = true;
        }
      }

      if (!contains) {
        tab.push(id);
      }
    }
    //END: ptemich 2008-01-09, survey radio groups


    // BEGIN: fweinreich, 2008-04-01
    // hold selected index in selectbox after clicking selectbox label and catch esc-key
    // ! bind this function to mousedown event !
    /// Sebastian.Milosz 14.07.08: i changed the overload of the onfocus now after onfocus also onchange
    /// event is fired when selection changed
	function storeSelectedIndex(select){
	 	if(null == select.onkeydown){
	 		select.onkeydown = function(e){
	 			var evt = e || window.event;
	 			//alert(evt.keyCode + " " +evt.charCode);
	 			if(evt.keyCode == 27){
	 				return false;
	 			}
	 		}
	 	} 	
	 	if(null == select.onfocus){
	 		select.onfocus = function(){
	 			var tempIndex = this.selectedIndex;
	 			this.selectedIndex = this.lastSelectedIndex==null? 0 : this.lastSelectedIndex;
	 			if(tempIndex != this.lastSelectedIndex) if( null != this.onchange ) {this.onchange();}
	 		}
	 	}
	 	setTimeout(function(){
	 		var tempIndex = this.selectedIndex;
	 		select.lastSelectedIndex = select.selectedIndex == undefined ? 0 : select.selectedIndex;
	 		if(tempIndex != this.lastSelectedIndex) if( null != this.onchange ) {this.onchange();}
	 	}, 300);

	 	/// Sebastian.Milosz 11.07.08: return false if selection not changed
	 	if(this.selectedIndex == this.lastSelectedIndex) return false;	        
        return true;
	 	//window.status = (select.id + " " + select.selectedIndex + " " + select.lastSelectedIndex);
 	}
    //END: fweinreich, 2008-04-01
