function Fkt_Handle(form,art,UIN)	{
/*
	location def in GoM
*/
	if(art==8)	{	// help
		SkinV=Fkt_SkinGet();
		Fkt_SiteIni_Hlp(-1,UIN,0,SkinV);
	}
	else	{
		if(navigator.appName=='Netscape' && document.layers!=null)
			document.form.Handle.value=art;
		else
			document.all("Handle").value=art;
/*
		elseif (document.all!=null)
				document.all("Handle").value=art;
*/		
		form.submit();
	}

}	// end function

function Fkt_RadioGet(Name)	{
/*
	Ermittlung des zusammengesetzten Skins
*/
	Gef=0;
	Anz=document.form[Name].length-1;
	for(i=Anz;i>=0;i--)	{
		if(document.form[Name][i].checked) 	{
			Gef=1;
			break;
		}
	}
	return Gef==1?document.form[Name][i].value:1;
}	// end function


function Fkt_SkinGet()	{
/*
	Ermittlung des zusammengesetzten Skins
*/

	Skin=Fkt_RadioGet("SkinB");
	return Skin+Fkt_RadioGet("SkinC");

}	// end function


function Fkt_HrefGo(form,art)   {
/*
*/
	var Datei="http://www.come2go.com/";

	SkinV=Fkt_SkinGet();

	switch(art)	{
		case 0:	Ext="GoM.php3";		// login
			break;
		case 1:	Ext="Login/LoginFP1.php3";	// forgot Pwd
			Datei=Datei+Ext+"?Skin="+SkinV;
			Fkt_SiteIniOpen(Datei,1,1,0);
			break;
		case 2:	Ext="RegP.php3";		// Sign up
			break;
		case 3:	Ext="BL_S.php4";		// Best Links
			break;
		case 4:	Ext="ToCome2Go.php3";	// Tocome2go
			break;
		case 5:	Ext="Msg.php3";		// Messeger
			break;
		case 6:	//Ext="Hlp/Hlp.php3";		// Help
			Fkt_SiteIni_Hlp(-1,'',0,SkinV);
			break;
		case 7:	Ext="Contact.php3";		// Contact
			break;
		case 8:	Ext="Ab.php3";		// About
			Datei=Datei+Ext+"?Skin="+SkinV;
//			var h=screen.availHeight-34-20;
//			var b=screen.availWidth-8-20;
//			Fkt_WindowPopup(Datei,h,b,10,10);
			Fkt_WindowPopup(Datei,'Ab','Come2Go * About');
			break;
	}
	if(art!=1 && art!=6 && art!=8)	{
		Datei=Datei+Ext+"?Skin="+SkinV;
		if(art==0)
			Datei=Datei+"&Go=1";
		self.location.href=Datei
	}

}	// end function


function Fkt_HrefGoM(form,art,UIN)   {
/*
*/
	var Datei="http://www.come2go.com/";

	SkinV=Fkt_SkinGet();

	switch(art)	{
		case 0:	Ext="GoM.php3?UIN="+UIN+"&LOut=1";	// logout
			break;
		case 1:	Ext="Reg.php3?UIN="+UIN+"&Edit=1";	// Reg Edit
			break;
		case 2:	Ext="BL_S.php4?UIN="+UIN;		// Best Links
			break;
		case 3:	Ext="ML.php3?UIN="+UIN;		// Your Links
			break;
		case 4:	Ext="MLE.php3?UIN="+UIN;		// Links edit
			break;
		case 5:	Ext="MC.php3?UIN="+UIN;		// Your Cat
			break;
		case 6:	Ext="ToCome2Go.php3?UIN="+UIN;	// Tocome2go
			break;
		case 7:	Ext="Msg.php3?UIN="+UIN;		// Messeger
			break;
		case 8:	//Ext="Hlp/Hlp.php3";			// Help
//			Fkt_SiteIni_Hlp(-1,'',0,SkinV);
			Fkt_SiteIni_Hlp(-1,UIN,0,SkinV);
			break;
		case 9:	Ext="Con.php3?UIN="+UIN;	// Contact
			break;
		case 10:Ext="Ab.php3?UIN="+UIN;		// About
			Datei=Datei+Ext+"&Skin="+SkinV;
//			var h=screen.availHeight-34-20;
//			var b=screen.availWidth-8-20;
//			Fkt_WindowPopupOpen(Datei,h,b,10,10);
			Fkt_WindowPopup(Datei,'Ab','Come2Go * About');
			break;
	}
	if(art!=8 && art!=10)	{
		Datei=Datei+Ext+"&Skin="+SkinV;

		self.location.href=Datei
	}

}	// end function


function Fkt_BgCCSet(anz)	{
/*
	anz -> anzahl links
*/
	BgC=Fkt_RadioGet('SkinB');

	C=Fkt_RadioGet('SkinC');
	SkinV=BgC+C;


	ImgSrc="img/B"+BgC+"/BT"+C+"/LogoM.gif";

	if(navigator.appName=='Netscape' && document.layers!=null)	{

		window.document.images['Logo'].src=ImgSrc;
		// Favicon
    document.images['Fav'].src="img/B"+BgC+"/fav.gif";
		document.form.Skin.value=SkinV;
		document.FM_Search.Skin0.value=SkinV;
	}
	else	{
     // 070915 rkr sonst fehler 
		//if(document.all!=null)	{

			document.all("Logo").src=ImgSrc;
			//if(anz==9)	// nur für Go.htm
			//	for(i=0;i<anz;i++)		document.all("ButTxt"+i).className="FButTxt"+BgC;
			for(i=0;i<anz;i++)	{
				document.all("B"+i).src="img/B"+BgC+"/BT"+C+"/ButM.gif";
				document.all("H"+i).className="MainLnk"+BgC;
			}
			document.all("FCome2Go").className="T"+BgC;
			document.all("FCome2Go1").className="T"+BgC;

			//document.all("FCome2Go").className="FCome2Go"+BgC;
			//document.all("FCome2GoN").className="FCome2GoN";//+BgC;
			document.all("Butsw").src="img/B"+BgC+"/Butsw.gif";
			document.all("Butws").src="img/B"+BgC+"/Butws.gif";
/*
			for(i=1;i<7;i++)
				document.all("BC"+i).src="img/B"+BgC+"/BT"+i+"/ButMC.gif";
*/
			for(i=1;i<7;i++)
				document.all("BC"+i).src="img/B"+BgC+"/BT"+6+"/ButMC.gif";

			// Favicon
			//document.all("Fav").src="img/B"+BgC+"/fav.gif";
			document.all("Fav").src="img/favb"+BgC+".gif";
			document.all("Msg").src="img/B"+BgC+"/BT"+C+"/MMsg.gif";
      //document.all("SearchP").src="img/B"+BgC+"/BT"+C+"/MSearch.gif";
			document.all("Skin").value=SkinV;
			//document.all("Skin0").value=SkinV;

		//}
	}
	document.bgColor=BgC==1?"#000000":"#ffffff";

}	// end function


function Fkt_ButTxt(nr,art)	{
/*
	art 	-> 1 = an
	art 	-> 0 = aus
	nr	-> ButTxt
*/

	BgC=Fkt_RadioGet('SkinB');

	if(navigator.appName=='Netscape' && document.layers!=null)	{
		//window.document.images['Logo'].src=ImgSrc;
	}
	else	{
		//if(document.all!=null)	{
			if(art==1)
				document.all("ButTxt"+nr).className="FButTxt";
			else
				document.all("ButTxt"+nr).className="FButTxt"+BgC;
		//}
	}
}	// end function

function Fkt_ButTxtL(art)	{
/*
	art 	-> 1 = an
	art 	-> 0 = aus
	nr	-> ButTxt
*/

	BgC=Fkt_RadioGet('SkinB');

	if(navigator.appName=='Netscape' && document.layers!=null)	{
		//window.document.images['Logo'].src=ImgSrc;
	}
	else	{
		//if(document.all!=null)	{
			if(art==1)	{
				document.all("ButTxtL0").className="FButTxt";
				document.all("ButTxtL1").className="FButTxt";
			}
			else	{
				document.all("ButTxtL0").className="FButTxt"+BgC;
				document.all("ButTxtL1").className="FButTxt"+BgC;
			}
		//}
	}
}	// end function

var FormV=new Array(0);
function Fkt_HrefDecode()   {

	HrefV=unescape(window.location.href);
	if(HrefV)     {
		//HrefV=HrefV.substring(1,HrefV.length);
		liste=HrefV.split("?");
		for(i=0;i<=liste.length-1;i++)       {
			temp=liste[i].split("=");
		}
	}
	if(temp.length>=1 && temp[0]=="Skin" && temp[1]>10 && temp[1]<27)
		return temp[1];
	else
		return 16;	// hier immer 11 => wert für Skin (0) FormV[1]:

}	// end function

function Fkt_SkinSetLoad(anz)	{
/*
	anz = anzhal links
*/

	Nr=""+Fkt_HrefDecode()+"";
        SkinB=Nr.substr(0,1)-1;
	SkinC=Nr.substr(1,1)-1;

	// 020908
        //SkinB=1; -> 0 schwarz 1 dann ws
	if(navigator.appName=='Netscape'&&document.layers!=null) {
		document.form.Skin.selectedIndex=Nr;
	}
	else	{
		//if (document.all!=null)	{
			document.form.SkinB[SkinB].checked=true;
			document.form.SkinC[SkinC].checked=true;
		//}
	}
	Fkt_BgCCSet(anz);

}	// end function


