var XMLEintraege_vod;
var XMLEintraege_live;
var XMLEintraege_mag;

// Funktion zur formatierten Ausgabe der empfangenen Daten
function xml_daten_ausgeben(response) {
	
	
  //SLhostName = this.startplayer_0.player._hostname;
SLhost = document.getElementById("SilverlightControl");
//document.getElementById("xamlHost"); // might be different in your app
 //alert("SLhost:"+SLhost+"-"); 
//alert("XMLEintraege_live:"+XMLEintraege_live);	
XMLEintraege_live = response.getElementsByTagName ('EINTRAG');

 SLmedia = SLhost.content.findName("VideoWindow");
//Objekt Übernahme
// Vorschaubilder
 SLC_vorschaubild_0 = SLhost.content.findName("vorschaubild_0");
 SLC_vorschaubild_1 = SLhost.content.findName("vorschaubild_1");
 SLC_vorschaubild_2 = SLhost.content.findName("vorschaubild_2");
 SLC_vorschaubild_3 = SLhost.content.findName("vorschaubild_3");
 SLC_vorschaubild_4 = SLhost.content.findName("vorschaubild_4");
 SLC_vorschaubild_5 = SLhost.content.findName("vorschaubild_5");
 SLC_vorschaubild_6 = SLhost.content.findName("vorschaubild_6");
 SLC_vorschaubild_7 = SLhost.content.findName("vorschaubild_7");
//Ueberschriften
 SLC_ueberschrift_0 = SLhost.content.findName("ueberschrift_0");
 SLC_ueberschrift_1 = SLhost.content.findName("ueberschrift_1");
 SLC_ueberschrift_2 = SLhost.content.findName("ueberschrift_2");
 SLC_ueberschrift_3 = SLhost.content.findName("ueberschrift_3");
 SLC_ueberschrift_4 = SLhost.content.findName("ueberschrift_4");
 SLC_ueberschrift_5 = SLhost.content.findName("ueberschrift_5");
 SLC_ueberschrift_6 = SLhost.content.findName("ueberschrift_6");
 SLC_ueberschrift_7 = SLhost.content.findName("ueberschrift_7");

 SLC_ueberschrift_fly_0 = SLhost.content.findName("flyueberschrift_0");
 SLC_ueberschrift_fly_1 = SLhost.content.findName("flyueberschrift_1");
 SLC_ueberschrift_fly_2 = SLhost.content.findName("flyueberschrift_2");
 SLC_ueberschrift_fly_3 = SLhost.content.findName("flyueberschrift_3");
 SLC_ueberschrift_fly_4 = SLhost.content.findName("flyueberschrift_4");
 SLC_ueberschrift_fly_5 = SLhost.content.findName("flyueberschrift_5");
 SLC_ueberschrift_fly_6 = SLhost.content.findName("flyueberschrift_6");
 SLC_ueberschrift_fly_7 = SLhost.content.findName("flyueberschrift_7");
// Vorschaubilder

 SLC_beschrtext_0 = SLhost.content.findName("beschrtext_0");
 SLC_beschrtext_1 = SLhost.content.findName("beschrtext_1");
 SLC_beschrtext_2 = SLhost.content.findName("beschrtext_2");
 SLC_beschrtext_3 = SLhost.content.findName("beschrtext_3");
 SLC_beschrtext_4 = SLhost.content.findName("beschrtext_4");
 SLC_beschrtext_5 = SLhost.content.findName("beschrtext_5");
 SLC_beschrtext_6 = SLhost.content.findName("beschrtext_6");
 SLC_beschrtext_7 = SLhost.content.findName("beschrtext_7");


 SLC_flytext_0 = SLhost.content.findName("flytext_0");
 SLC_flytext_1 = SLhost.content.findName("flytext_1");
 SLC_flytext_2 = SLhost.content.findName("flytext_2");
 SLC_flytext_3 = SLhost.content.findName("flytext_3");
 SLC_flytext_4 = SLhost.content.findName("flytext_4");
 SLC_flytext_5 = SLhost.content.findName("flytext_5");
 SLC_flytext_6 = SLhost.content.findName("flytext_6");
 SLC_flytext_7 = SLhost.content.findName("flytext_7");

SLC_uservoting_0 = "";
SLC_uservoting_1 = "";
SLC_uservoting_2 = "";
SLC_uservoting_3 = "";
SLC_uservoting_4 = "";
SLC_uservoting_5 = "";
SLC_uservoting_6 = "";
SLC_uservoting_7 = "";
//-------------------------------------------------------------------------------
// Datenzuweisung
// Vorschaubilder

	
	xml_daten_eintragen();


}

// Funktion zur formatierten Übergabe der empfangenen Daten an SL
function xml_daten_eintragen() {

	AnzEintraege_Live = XMLEintraege_live.length;
	MaxShift_Live = AnzEintraege_Live - AnzahlBoxenLive;

	//alert("  XML- length:"+XMLEintraege_live.length);
	for (var i = 0; i < AnzahlBoxenLive; i++) {
	//alert(i+"--"+window['SLC_vorschaubild_'+'1'].Source);
	// Datenbankinhalte an Xaml Silverlight übergeben
	strIndex = "_"+(i+1);
	
	//alert("   i:"+i);
	//alert(window['SLC_ueberschrift'+strIndex].Text+"   i:"+i);
	// Sonderzeichen:  unescape("ae-%E4---oe-%F6---ue-%FC---Ae-%C4---Oe-%D6---Ue-%DC---ss-%DF")
	if ((i+IndexShiftLive) == 0) { window['SLC_ueberschrift'+strIndex].Text = unescape("Gerade L%E4uft.. "); } else {
	window['SLC_ueberschrift'+strIndex].Text = XMLEintraege_live[i+IndexShiftLive].getAttribute ('startzeit')+ " Uhr";}
	window['SLC_vorschaubild'+strIndex].Source = XMLEintraege_live[i+IndexShiftLive].getAttribute ('vorschaubild');
//	window['SLC_beschrtext'+strIndex].Text =  XMLEintraege_live[i+IndexShiftLive].getAttribute ('clipname')+"\n "+XMLEintraege_live[i+IndexShiftLive].getAttribute ('Datum')+", "+XMLEintraege_live[i+IndexShiftLive].getAttribute ('clipdauer').substring(3,5)+" Minuten";
	window['SLC_beschrtext'+strIndex].Text =  XMLEintraege_live[i+IndexShiftLive].getAttribute ('clipname');
	
	window['SLC_ueberschrift_fly'+strIndex].Text = XMLEintraege_live[i+IndexShiftLive].getAttribute ('clipname');
	window['SLC_flytext'+strIndex].Text = XMLEintraege_live[i+IndexShiftLive].getAttribute ('beschreibung').substring(0,115);// "test"; 
	window['SLC_uservoting'+strIndex] = XMLEintraege_live[i+IndexShiftLive].getAttribute ('uservoting');// "test"; 
	
	//alert(window['SLC_ueberschrift'+strIndex].Text+"   i:"+i+" Uservote:"+window['SLC_uservoting'+strIndex]);
	}	
	// FIlm der Gerade läuft in SLActualFilmID übergeben
	SLActualFilmID = XMLEintraege_live[0].getAttribute ('filmid');// "test"; //
	SLactual_votestring = XMLEintraege_live[0].getAttribute ('uservoting');// "test"; //

}

// Funktion zur formatierten Ausgabe der empfangenen Daten
function xml_daten_ausgeben_VOD(response) {
  //SLhostName = this.startplayer_0.player._hostname;
  
//SLhost = document.getElementById("SilverlightControl");//document.getElementById("xamlHost");  might be different in your app
 //alert("SLhost:"+SLhost+"-"); 

XMLEintraege_vod = response.getElementsByTagName ('EINTRAG');

 SLmedia = SLhost.content.findName("VideoWindow");
 
 
// SLStoryepgvodRightSlide = SLhost.content.findName("epgvodRightSlide");
// SLStoryepgvodRightSlide.stop();
 SLStoryepgvodLeftSlide = SLhost.content.findName("epgvodLeftSlide");
 SLStoryepgvodLeftSlide.stop();
 
//Objekt Übernahme
// Vorschaubilder
 SLC_vorschaubild_10 = SLhost.content.findName("vorschaubild_10");
 SLC_vorschaubild_11 = SLhost.content.findName("vorschaubild_11");
 SLC_vorschaubild_12 = SLhost.content.findName("vorschaubild_12");
 SLC_vorschaubild_13 = SLhost.content.findName("vorschaubild_13");
 SLC_vorschaubild_14 = SLhost.content.findName("vorschaubild_14");
 SLC_vorschaubild_15 = SLhost.content.findName("vorschaubild_15");
 SLC_vorschaubild_16 = SLhost.content.findName("vorschaubild_16");
 SLC_vorschaubild_17 = SLhost.content.findName("vorschaubild_17");
//Ueberschriften
 SLC_ueberschrift_10 = SLhost.content.findName("ueberschrift_10");
 SLC_ueberschrift_11 = SLhost.content.findName("ueberschrift_11");
 SLC_ueberschrift_12 = SLhost.content.findName("ueberschrift_12");
 SLC_ueberschrift_13 = SLhost.content.findName("ueberschrift_13");
 SLC_ueberschrift_14 = SLhost.content.findName("ueberschrift_14");
 SLC_ueberschrift_15 = SLhost.content.findName("ueberschrift_15");
 SLC_ueberschrift_16 = SLhost.content.findName("ueberschrift_16");
 SLC_ueberschrift_17 = SLhost.content.findName("ueberschrift_17");

 SLC_ueberschrift_fly_10 = SLhost.content.findName("flyueberschrift_10");
 SLC_ueberschrift_fly_11 = SLhost.content.findName("flyueberschrift_11");
 SLC_ueberschrift_fly_12 = SLhost.content.findName("flyueberschrift_12");
 SLC_ueberschrift_fly_13 = SLhost.content.findName("flyueberschrift_13");
 SLC_ueberschrift_fly_14 = SLhost.content.findName("flyueberschrift_14");
 SLC_ueberschrift_fly_15 = SLhost.content.findName("flyueberschrift_15");
 SLC_ueberschrift_fly_16 = SLhost.content.findName("flyueberschrift_16");
 SLC_ueberschrift_fly_17 = SLhost.content.findName("flyueberschrift_17");
// Vorschaubilder

 SLC_beschrtext_10 = SLhost.content.findName("beschrtext_10");
 SLC_beschrtext_11 = SLhost.content.findName("beschrtext_11");
 SLC_beschrtext_12 = SLhost.content.findName("beschrtext_12");
 SLC_beschrtext_13 = SLhost.content.findName("beschrtext_13");
 SLC_beschrtext_14 = SLhost.content.findName("beschrtext_14");
 SLC_beschrtext_15 = SLhost.content.findName("beschrtext_15");
 SLC_beschrtext_16 = SLhost.content.findName("beschrtext_16");
 SLC_beschrtext_17 = SLhost.content.findName("beschrtext_17");


 SLC_flytext_10 = SLhost.content.findName("flytext_10");
 SLC_flytext_11 = SLhost.content.findName("flytext_11");
 SLC_flytext_12 = SLhost.content.findName("flytext_12");
 SLC_flytext_13 = SLhost.content.findName("flytext_13");
 SLC_flytext_14 = SLhost.content.findName("flytext_14");
 SLC_flytext_15 = SLhost.content.findName("flytext_15");
 SLC_flytext_16 = SLhost.content.findName("flytext_16");
 SLC_flytext_17 = SLhost.content.findName("flytext_17");

 SLC_Vlink_10 = " ";
 SLC_Vlink_11 = " ";
 SLC_Vlink_12 = " ";
 SLC_Vlink_13 = " ";
 SLC_Vlink_14 = " ";
 SLC_Vlink_15 = " ";
 SLC_Vlink_16 = " ";
 SLC_Vlink_17 = " ";


var SLC_uservoting_10 = " ";
var SLC_uservoting_11 = " ";
var SLC_uservoting_12 = " ";
var SLC_uservoting_13 = " ";
var SLC_uservoting_14 = " ";
var SLC_uservoting_15 = " ";
var SLC_uservoting_16 = " ";
var SLC_uservoting_17 = " ";
//-------------------------------------------------------------------------------
// Datenzuweisung
// Vorschaubilder

xml_daten_eintragen_VOD();

}

// Funktion zur formatierten Übergabe der empfangenen Daten an SL
function xml_daten_eintragen_VOD() {
	
	
	
AnzEintraege_Vod = XMLEintraege_vod.length;
MaxShift_Vod = AnzEintraege_Vod - AnzahlBoxenVod;


for (var i = 0; i < (AnzahlBoxenVod); i++) {
	//alert(i+"--"+window['SLC_vorschaubild_'+'1'].Source);
	// Datenbankinhalte an Xaml Silverlight übergeben
	strIndex = "_1"+(i+1);
	//if ((i+IndexShiftVod) == 0) { window['SLC_ueberschrift'+strIndex].Text = "Gerade Läuft.. "; } else {
	//window['SLC_ueberschrift'+strIndex].Text = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('startzeit')+ " Uhr";}
	
	if (i <= (AnzEintraege_Vod-1)) {
	window['SLC_vorschaubild'+strIndex].Source = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('vorschaubild');
//	window['SLC_beschrtext'+strIndex].Text = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('clipname')+"\n "+XMLEintraege_vod[i+IndexShiftVod].getAttribute ('Datum')+", "+XMLEintraege_vod[i+IndexShiftVod].getAttribute ('clipdauer').substring(3,5)+" Minuten";
	window['SLC_beschrtext'+strIndex].Text = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('clipname');
	
	window['SLC_ueberschrift_fly'+strIndex].Text = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('clipname');
	window['SLC_flytext'+strIndex].Text = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('beschreibung').substring(0,115);// "test"; //
	window['SLC_Vlink'+strIndex] = XMLEintraege_vod[i+IndexShiftVod].getAttribute ('filmid');// "test"; //
	
	window['SLC_uservoting'+strIndex] = XMLEintraege_vod[i+IndexShiftLive].getAttribute ('uservoting');// "test"; 

	} else // es sind weniger Filme in der Liste als angezeigt werden könnten
	{
	window['SLC_vorschaubild'+strIndex].Source = '';
	window['SLC_beschrtext'+strIndex].Text = '';
	
	window['SLC_ueberschrift_fly'+strIndex].Text = '';
	window['SLC_flytext'+strIndex].Text = '';// "test"; //
	window['SLC_Vlink'+strIndex] = '';// "test"; //
	}
//	strVideolink = XMLEintraege[i].getAttribute ('clipurl');
//	///arrVideolink = strVideolink.split( '//');
//	strVideolink = strVideolink.replace('http://', 'mms://');
//	
//	switch ( SLActualSpeed) {
//		
//        case 0,1,2,3:
//				//strVideolink = strVideolink.replace('500_', '500_');
//		
//				break;   
//        case 4:
//				strVideolink = strVideolink.replace('500_', '1500_');
//		
//				break;   
//        case 5:
//				strVideolink = strVideolink.replace('500_', '2500_');		
//				break;   				
//        default:
//             throw Error.invalidOperation("Geschwindigkeitswahl zu hoch");
//		
//		
//	}
//	
//	
//	window['SLC_Vlink'+strIndex] = strVideolink;// "test"; //
	}	


}




// Funktion zur formatierten Ausgabe der empfangenen Daten
function xml_daten_ausgeben_mag(response) {
  //SLhostName = this.startplayer_0.player._hostname;
  
//SLhost = document.getElementById("SilverlightControl");//document.getElementById("xamlHost");  might be different in your app
 //alert("SLhost:"+SLhost+"-"); 

XMLEintraege_mag = response.getElementsByTagName ('EINTRAG');

 SLmedia = SLhost.content.findName("VideoWindow");
//Objekt Übernahme
// Vorschaubilder
 SLC_vorschaubild_20 = SLhost.content.findName("vorschaubild_20");
 SLC_vorschaubild_21 = SLhost.content.findName("vorschaubild_21");
 SLC_vorschaubild_22 = SLhost.content.findName("vorschaubild_22");
 SLC_vorschaubild_23 = SLhost.content.findName("vorschaubild_23");
 SLC_vorschaubild_24 = SLhost.content.findName("vorschaubild_24");
 SLC_vorschaubild_25 = SLhost.content.findName("vorschaubild_25");
 SLC_vorschaubild_26 = SLhost.content.findName("vorschaubild_26");
 SLC_vorschaubild_27 = SLhost.content.findName("vorschaubild_27");
//Ueberschriften
 SLC_ueberschrift_20 = SLhost.content.findName("ueberschrift_20");
 SLC_ueberschrift_21 = SLhost.content.findName("ueberschrift_21");
 SLC_ueberschrift_22 = SLhost.content.findName("ueberschrift_22");
 SLC_ueberschrift_23 = SLhost.content.findName("ueberschrift_23");
 SLC_ueberschrift_24 = SLhost.content.findName("ueberschrift_24");
 SLC_ueberschrift_25 = SLhost.content.findName("ueberschrift_25");
 SLC_ueberschrift_26 = SLhost.content.findName("ueberschrift_26");
 SLC_ueberschrift_27 = SLhost.content.findName("ueberschrift_27");

 SLC_ueberschrift_fly_20 = SLhost.content.findName("flyueberschrift_20");
 SLC_ueberschrift_fly_21 = SLhost.content.findName("flyueberschrift_21");
 SLC_ueberschrift_fly_22 = SLhost.content.findName("flyueberschrift_22");
 SLC_ueberschrift_fly_23 = SLhost.content.findName("flyueberschrift_23");
 SLC_ueberschrift_fly_24 = SLhost.content.findName("flyueberschrift_24");
 SLC_ueberschrift_fly_25 = SLhost.content.findName("flyueberschrift_25");
 SLC_ueberschrift_fly_26 = SLhost.content.findName("flyueberschrift_26");
 SLC_ueberschrift_fly_27 = SLhost.content.findName("flyueberschrift_27");
// Vorschaubilder

 SLC_beschrtext_20 = SLhost.content.findName("beschrtext_20");
 SLC_beschrtext_21 = SLhost.content.findName("beschrtext_21");
 SLC_beschrtext_22 = SLhost.content.findName("beschrtext_22");
 SLC_beschrtext_23 = SLhost.content.findName("beschrtext_23");
 SLC_beschrtext_24 = SLhost.content.findName("beschrtext_24");
 SLC_beschrtext_25 = SLhost.content.findName("beschrtext_25");
 SLC_beschrtext_26 = SLhost.content.findName("beschrtext_26");
 SLC_beschrtext_27 = SLhost.content.findName("beschrtext_27");

 SLC_flytext_20 = SLhost.content.findName("flytext_20");
 SLC_flytext_21 = SLhost.content.findName("flytext_21");
 SLC_flytext_22 = SLhost.content.findName("flytext_22");
 SLC_flytext_23 = SLhost.content.findName("flytext_23");
 SLC_flytext_24 = SLhost.content.findName("flytext_24");
 SLC_flytext_25 = SLhost.content.findName("flytext_25");
 SLC_flytext_26 = SLhost.content.findName("flytext_26");
 SLC_flytext_27 = SLhost.content.findName("flytext_27");

 SLC_MagUeberschrift = SLhost.content.findName("MagUeberschrift");
 SLC_MagBeschreibung = SLhost.content.findName("MagBeschreibung");
 SLC_MagImage = SLhost.content.findName("MagImage");

 SLC_Vlink_20 = " ";
 SLC_Vlink_21 = " ";
 SLC_Vlink_22 = " ";
 SLC_Vlink_23 = " ";
 SLC_Vlink_24 = " ";
 SLC_Vlink_25 = " ";
 SLC_Vlink_26 = " ";
 SLC_Vlink_27 = " ";

SLC_uservoting_20 = "";
SLC_uservoting_21 = "";
SLC_uservoting_22 = "";
SLC_uservoting_23 = "";
SLC_uservoting_24 = "";
SLC_uservoting_25 = "";
SLC_uservoting_26 = "";
SLC_uservoting_27 = "";
SLC_uservoting_28 = "";
//-------------------------------------------------------------------------------
// Datenzuweisung
// Vorschaubilder

xml_daten_eintragen_mag();
}

// Funktion zur formatierten Übergabe der empfangenen Daten an SL
function xml_daten_eintragen_mag() {



AnzEintraege_Mag = XMLEintraege_mag.length;
MaxShift_Mag = AnzEintraege_Mag - AnzahlBoxenMag;


for (var i = 0; i < AnzahlBoxenMag; i++) {
	//alert(i+"--"+window['SLC_vorschaubild_'+'1'].Source);
	// Datenbankinhalte an Xaml Silverlight übergeben
	strIndex = "_2"+(i);
	if (i == 0) { window['SLC_ueberschrift'+strIndex].Text = "Gerade Laeuft.. "; } 
	else {
		window['SLC_ueberschrift'+strIndex].Text = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('startzeit')+ " Uhr";}
		window['SLC_vorschaubild'+strIndex].Source = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('vorschaubild');
//		window['SLC_beschrtext'+strIndex].Text = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('clipname')+"\n "+XMLEintraege_mag[i+IndexShiftMag].getAttribute ('Datum')+", "+XMLEintraege_mag[i+IndexShiftMag].getAttribute ('clipdauer').substring(3,5)+" Minuten";
		window['SLC_beschrtext'+strIndex].Text = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('clipname');
		
		window['SLC_ueberschrift_fly'+strIndex].Text = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('clipname');
		window['SLC_flytext'+strIndex].Text = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('beschreibung').substring(0,115);// "test";
		window['SLC_Vlink'+strIndex] = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('filmid');// "test"; //
		window['SLC_uservoting'+strIndex] = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('uservoting');// "test"; 


	//akm  Links und Film ID festlegen !!!!!!!!!!!!


//		strVideolink = XMLEintraege_mag[i+IndexShiftMag].getAttribute ('clipurl');
//		//arrVideolink = strVideolink.split( '//');
//		strVideolink = strVideolink.replace('http://', 'mms://');
//		
//		switch ( SLActualSpeed) {
//			
//			case 0,1,2,3:
//					//strVideolink = strVideolink.replace('500_', '500_');
//			
//					break;   
//			case 4:
//					strVideolink = strVideolink.replace('500_', '1500_');
//			
//					break;   
//			case 5:
//					strVideolink = strVideolink.replace('500_', '2500_');		
//					break;   				
//			default:
//				 throw Error.invalidOperation("Geschwindigkeitswahl zu hoch");
//			
//			
//		}
		
		
//		window['SLC_Vlink'+strIndex] = strVideolink;// "test"; 
	}	


}


// SLZeigeMagazin( Position )   Wird nicht mehr verwendet!!!
function SLZeigeMagazin( Position ){
	

AktuelleMagPosition = Position;
//this.SLC_MagUeberschrift = XMLEintraege_mag[Position].getAttribute ('clipname');
//this.SLC_MagBeschreibung = XMLEintraege_mag[Position].getAttribute ('beschreibung');
//this.SLC_MagImage = XMLEintraege_mag[Position].getAttribute ('vorschaubild')+"_1";

	
	strVideolink = XMLEintraege_mag[Position].getAttribute ('clipurl');
	//arrVideolink = strVideolink.split( '//');
	strVideolink = strVideolink.replace('http://', 'mms://');
	
	switch ( SLActualSpeed) {
		
        case 0,1,2,3:
				//strVideolink = strVideolink.replace('500_', '500_');
		
				break;   
        case 4:
				strVideolink = strVideolink.replace('500_', '1500_');
		
				break;   
        case 5:
				strVideolink = strVideolink.replace('500_', '2500_');		
				break;   				
        default:
             throw Error.invalidOperation("Geschwindigkeitswahl zu hoch");
		
		
	}
	
	
	window['SLC_Vlink_2'+strIndex] = strVideolink;// "test";



	
	
}






//function UmlautChange ( Mytext){
//	
//	mytext = mytext.Replace("ä", "&auml;");
//	mytext = mytext.Replace("Ä", "&Auml;");
//	mytext = mytext.Replace("ö", "&ouml;");
//	mytext = mytext.Replace("Ö", "&Ouml;");
//	mytext = mytext.Replace("ü", "&uuml;");
//	mytext = mytext.Replace("Ü", "&Uuml;");
//
//	return mytext;
//	
//}




