<!--
    function resetForm()    {
    document.getElementById("contact_form").reset();
    document.getElementById("message").innerHTML="";
    document.getElementById("full_name").value="";
    document.getElementById("email").value="";    
    }


    function expandExtendedForm()	{

    while(document.getElementById("dynamicElements").childNodes.length>0)	{
		document.getElementById("dynamicElements").removeChild(document.getElementById("dynamicElements").childNodes[0]);
		}
	drawForm('con_company', 'company', 'Firma');
	drawForm('con_street', 'street', 'Strasse, Hausnummer');
	drawForm('con_plz_ort', 'plz_ort', 'PLZ, Ort');
	drawClearfix();
	drawForm('con_fon', 'fon', 'fon');
	drawForm('con_mobile', 'mobile', 'mobile');
	drawForm('con_fax', 'fax', 'fax');
    }
    
    function drawClearfix() {
	var div_clearfix		=   document.createElement("div");
	    div_clearfixAttr	    	=   document.createAttribute("class");
	    div_clearfixAttr.nodeValue	=   "clearfix";
	    div_clearfix.setAttributeNode(div_clearfixAttr);
        var nform = document.getElementById("dynamicElements");	
	    nform.appendChild(div_clearfix);
    }
    
    function drawForm(div_id, element_name, label)	{;
	var container_attributes	= new Array("class", "name");
	var container_attributeValues	= new Array("formElement", div_id);

	nContainer = createElementContainer("div", container_attributes, container_attributeValues );

	var element_attributes		= new Array("id", "name");
	var element_attributeValues	= new Array(element_name, element_name);

	nElement = createElement("input", element_attributes, element_attributeValues );
	nIdentifier = createIdentifier("p", label);
 	

	var nform = document.getElementById("dynamicElements");
	    nform.appendChild(nContainer);

	nContainer.appendChild(nElement);
	nContainer.appendChild(nIdentifier);

	replaceLink('hide');
    }

    function createElementContainer(ntag, container_attributes, container_attributeValues)    {
        var formElement		=	document.createElement(ntag);

        elementClass		=	document.createAttribute(container_attributes[0]);
        elementId		=	document.createAttribute(container_attributes[1]);

        elementClass.nodeValue  =	container_attributeValues[0];
        elementId.nodeValue	=	container_attributeValues[1];	

	formElement.setAttributeNode(elementClass);
	formElement.setAttributeNode(elementId);

	return(formElement);

    }

    function createElement(ntag, arr_attributes, arr_attributeValues)    {

        var formElement		=	document.createElement(ntag);

	elementId		=	document.createAttribute(arr_attributes[0]);
	elementClass		=	document.createAttribute(arr_attributes[0]);
	elementName		=	document.createAttribute(arr_attributes[1]);

	elementId.nodeValue	=	arr_attributeValues[0];	
	elementClass.nodeValue	=	arr_attributeValues[0];	
	elementName.nodeValue   =	arr_attributeValues[1];

	formElement.setAttributeNode(elementId);
	formElement.setAttributeNode(elementClass);	
	formElement.setAttributeNode(elementName);

	return(formElement);

    }

    function createIdentifier(ntag, identifier_text)    {

        var formElement		=	document.createElement(ntag);
	var identifierText	=	document.createTextNode(identifier_text);

	formElement.appendChild(identifierText);

	return(formElement);

    }

    function replaceLink(action)	{

        var hideLink			    =	document.createElement("a");
	var hideLinkJS			    =	document.createAttribute("href");
	var hideLinkText		    =	document.createTextNode("einfaches Formular");
	    hideLinkJS.nodeValue	    =  'javascript:hideExtendedForm();';
	    hideLink.setAttributeNode(hideLinkJS);
	    hideLink.appendChild(hideLinkText);

	var showLink			    =	document.createElement("a");
	var showLinkJS			    =	document.createAttribute("href");
	var showLinkText		    =	document.createTextNode("erweitertes Formular (optional)");
	    showLinkJS.nodeValue	    =  'javascript:expandExtendedForm();';
	    showLink.setAttributeNode(showLinkJS);
	    showLink.appendChild(showLinkText);

	if(action == "hide")  {
	    while(document.getElementById("addElements").childNodes.length>0)	{
		document.getElementById("addElements").removeChild(document.getElementById("addElements").childNodes[0]);
		}
	    document.getElementById("addElements").appendChild(hideLink);
	    document.getElementById("extendedForm").value="true";
	    }   else    {
	    while(document.getElementById("addElements").childNodes.length>0)	{
		document.getElementById("addElements").removeChild(document.getElementById("addElements").childNodes[0]);
		}
	    document.getElementById("addElements").appendChild(showLink);
    	    document.getElementById("extendedForm").value="false";
	}  
    }

    function hideExtendedForm()	{

	replaceLink('show');

	while(document.getElementById("dynamicElements").childNodes.length>0)	{
	    document.getElementById("dynamicElements").removeChild(document.getElementById("dynamicElements").childNodes[0]);
	}

	var contactData = '<div id="adress"><p class="contact_data"><h2 style="font-size:10pt;"><br />CTM GmbH<br />Coaching & Training M&uuml;nchen GmbH</h2></p><p>Daphnestr. 7<br />81925 M&uuml;nchen</p><p class="contact_data">fon: +49(0) 58.998.005<br />mobile: +49(0) 170.83.59.752<br />fax: +49(0) 89.58.998.006<br /></p><p class="contact_data">email: <a href="mailto:buero@c-t-m-online.de">buero@c-t-m-online.de</a><br />web: <a href="http://www.c-t-m-online.de">www.c-t-m-online.de</a></p></div>';

	document.getElementById("dynamicElements").innerHTML = contactData;



    }
-->

