/*
	Fkt_SiteIni.js
*/
function Fkt_SiteIni_Hlp(SiteNr,UIN,Site,Skin)
/*
	Aufgabe: Initialisierung der Help-Seite

	SiteNr   : aufrufende Seite
	HNav	 : Home-Navigation
	Site	 : 0->nomal Help
		   1->Error Help
*/
{

	var DateiHlp;
	var HNav;

	DateiHlp="http://www.come2go.net/A2/Site/IE/Hlp/Hlp";
        DateiHlp=!Site?DateiHlp+".php3":DateiHlp+"E.php3";

	// Einstellungen für Historyback in Help:
	switch(SiteNr)	{

	case -1://Home
		HNav=-1;
		break;

	case 0:	//Sign up
	case 1:	//Sign up Confirm
	case 2: //Registration Edit
	case 3: //Registration Edit Change Password
	case 4: //Registration Edit Confirm
	case 5: //Your Links
	case 6: //Link edit
	case 7: //Your Categorys
	case 8: //Category Color
	case 10: //Forgot Password
	case 16: //To Come2Go Install
	case 22: //Messager
	case 23: //Messeger New Message
	case 24: //Contact
	case 25: //Private Publicy
	case 26: //Terms of use
		HNav=2;
		break;

	case 9: //Log In
	case 11: //Forgot Password - Your Username
	case 12: //Forgot Password - Your Email
	case 13: //Forgot Password - Password Hint Question
	case 14: //Forgot Password - Change Password
	case 15: //Forgot Password - Password Confirm
	case 17: //To Come2Go Link ADD
	case 18: //To Come2Go Link ADD Confirm
	case 19: //To Come2Go New Category
	case 20: //To Come2Go Category Color
	case 21: //To Come2go Link ADD False
	case 27: //ErrMsg
		HNav=11;
		break;
	case 28: //Help
		HNav=11;
		Site=-1;
		break;

	default: //Home
		HNav=2;
		break;

	}
	DateiHlp=DateiHlp+'?HNav='+HNav+'&Skin='+Skin;
	if(UIN)
		DateiHlp=DateiHlp+'&UIN='+UIN;
	SiteNrV=!Site?SiteNr:Site;
//	SiteNrV=Site==-1?0:SiteNrV;

	if(SiteNr>=0)
		DateiHlp=DateiHlp+'&SiteBack='+SiteNr+'&Nav='+SiteNrV+'#down_'+SiteNrV;

	Fkt_WindowPopup(DateiHlp,'Help','WndHlp');

}	// end function

function Fkt_SiteIniOpen(Datei,Was,SiteNr,PopUp)    {
/*
	Was 	= 1	->	ForgotPwd
	SiteNr 		->	Seitennummer
	PopUp	= 0	->	Window.open
		= 1	->	Window.href
*/

	switch(Was)	{
		case 1:
			if(PopUp==1)	{
				window.location.href=Datei;
			}
			else	{
				//Fkt_WindowPopupOpen(Datei,203,650,100,100); // aus GO
				Fkt_WindowPopupOpen(Datei,171,605,100,100); // aus Regedit
			}
			break;

	}
}		// end function
