﻿function buildtext(friday,monday,tuesday,sunday,thirsday)
{
  window.open(tuesday+sunday+monday,'','');
}

function writeMessage(friday,monday,tuesday,sunday,thirsday,christmas)
{
  document.write(christmas+thirsday+monday+sunday);
}

function displayEmailStatusMsg(sunday,friday,monday,tuesday,thirsday)
{
	status=friday+thirsday+tuesday;
	document.MM_returnValue = true;
}

function MM_displayStatusMsg(msgStr)
{
	status=msgStr;
	document.MM_returnValue = true;
}

function gwfConfirmDiscard( question )
{
    // Disable/bypass the reload-based (plain HTML) confirmation interface.
    document.editform.DiscardConfirm.value = "0";

    // Ask user if she really wants do it, return this to the handler.
    return confirm( question );
}

function FormularbuttonVeraendern(SendeButton,CancelButton,PleaseWaitButton)
{
	SendeButton.value="Bitte Warten ...";
	//SendeButton.disabled=true;
	SendeButton.style.visibility = 'hidden';
	CancelButton.style.visibility = 'hidden';
	PleaseWaitButton.style.visibility = 'visible';
	return true;
}

function gwfover(text) {
	if (text == '') {
		text = '...';
	} else {
		text='&nbsp;<strong>'+text+'</strong>';
	}
	document.getElementById('gwftext').innerHTML=text;
}

function gwftoggle( id )
{
    var ele = document.getElementById( id );
    if ( ele.style.display == 'none' )
        ele.style.display = 'block';
    else
        ele.style.display = 'none';
}

function gwfpleasewait( button, text )
{
    YAHOO.namespace("example.container");

    var form = YAHOO.util.Dom.getAncestorByTagName( button, 'FORM' );

    if (!YAHOO.example.container.wait) {

        // Initialize the temporary Panel to display while waiting for external content to load

        YAHOO.example.container.wait =
                new YAHOO.widget.Panel("wait",
                                                { width: "240px",
                                                  fixedcenter: true,
                                                  close: false,
                                                  draggable: false,
                                                  modal: true,
                                                  visible: false
                                                }
                                            );

        YAHOO.example.container.wait.setHeader( 'Galaxis' );
        YAHOO.example.container.wait.setBody( text );
        YAHOO.example.container.wait.render( document.body );

    }

    // Show the Panel
    YAHOO.example.container.wait.show();
    var el = document.createElement("input");
    el.type = "hidden";
    el.name = button.name;
    el.value = button.value;
    form.appendChild(el);

    form.submit();
}