###########################################################################
# TSL-BIBLIOTHEK:	FRM_download_Lib
###########################################################################
# $Revision: 1.6 $
# $Author: cbueche $
# $Date: 2001/07/25 08:52:54 $
# $Source: 
# $NoKeywords: $
###########################################################################
#**# 
#*	Diese Library enthlt Funktionen die zur Ausfhrung der
#*	Benutzerverwaltung bentigt werden. 
#*	
#*	FRM_menu ( in table, in test, in idx, in mode )
#*	
#*	
#*@Author: cbueche 
#*/

#**
#*	 FRM_menu whlt im 
#*	Menu und aus der Toolbar aus
#*	
#*
#* @param table	(in)	Index der Tabelle mit den Testdaten
#* @param test	(in)	Name der Spalte mit den Testdaten
#* @param idx	(in)	Name des Testblocks
#* @param mode	(in)	SET/CHK/GEN
#* @return
#*	E_OK:	erfolgreich
#*	else:	fehlerhaft
#*/



public function FRM_Main_window_Links ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Main_window", 5 );
	rc+=FRM_web_link_click( table, test, "Word on Notes" );
	rc+=FRM_web_link_click( table, test, "Download - Word On Notes" );
	rc+=FRM_web_link_click( table, test, "Druckansicht" );
	return rc;
}

public function FRM_download_eingabe ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Download Eingabe", 5 );
	rc+=FRM_button_set( table, test, "Frau" );
	rc+=FRM_button_set( table, test, "Herr" );
	rc+=FRM_edit_set( table, test, "Vorname" );
	rc+=FRM_edit_set( table, test, "Nachname" );
	rc+=FRM_edit_set( table, test, "EMail" );
	rc+=FRM_edit_set( table, test, "Telefon" );
	rc+=FRM_edit_set( table, test, "Bemerkung" );
	rc+=FRM_web_link_click( table, test, "Weiter" );
	rc+=close_browser_message();	
	rc+=FRM_web_link_click( table, test, "Abbrechen" );
	return rc;
}



public function FRM_download ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "download", 5 );
	rc+=FRM_web_image_click( table, test, "Bild" );
	rc+=FRM_web_link_click( table, test, "Fenster schlieen" );
	return rc;
}

public function FRM_dateidownload ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Dateidownload", 5 );
	rc+=FRM_button_press( table, test, "OK" );
	rc+=FRM_button_press( table, test, "Abbrechen" );
	rc+=FRM_button_press( table, test, "Weitere Info" );
	return rc;
}
