function check()
{
Order=document.forms[0].Order

Informationen=document.forms[1].Informationen
Beitritt=document.forms[1].Beitritt
Mitgliedschaft=document.forms[1].Mitgliedschaft
Institution=document.forms[1].Institution
Kontakt=document.forms[1].Kontakt




txt=""
txt4=""
txt5=""
txt1=""
txt2=""
txt3=""
txt_a=""


if (Informationen.checked)
{
txt="\n" + Informationen.value + "\n"
}

if (Beitritt.checked)
{
txt4=Beitritt.value + "\n"
}


for (i=0;i<Mitgliedschaft.length;++ i)
{
if (Mitgliedschaft[i].checked)
{
txt1= txt1 + Mitgliedschaft[i].value + "\n"
}

}

if (Mitgliedschaft[0].checked || Mitgliedschaft[1].checked || Mitgliedschaft[2].checked)
{txt_a="Как частное лицо: \n" + txt1; + "\n"}
else (txt_a="")




 
valid_chars = "1234567890";

if (Institution.value!=""){
str=Institution.value;

 for(i=0; i < str.length; i++ )
 { 
 
 for(j=0; j < valid_chars.length; j++)
 {
if (str.charAt(i) == valid_chars.charAt(j)) 
{txt2="Как предпиятие, учреждение, юридическое лицо: " + str + " Euro \n"}
}

}
}


required = new Array("Имя и фамилия: ", "Адрес: ", "Город: ", "Телефон: ", "e-mail: ");



for (i=0;i<Kontakt.length-1;++ i)
{
if (Kontakt[i].value!="")
{txt3= txt3 + required[i] +  Kontakt[i].value + "\n"}
if (Kontakt[i].value==""){document.forms[0].Submit.disabled=true;}
}




if (Kontakt[4].value!="")
{

stroka=Kontakt[4].value; 
ind=stroka.indexOf('\@');
if (ind>0 && ind<stroka.length-1) {
txt3= txt3 + "e_mail: " + Kontakt[4].value + "\n"
document.forms[0].Submit.disabled=false;
}
else {alert('Не верно введен e-mail'); document.forms[0].Submit.disabled=true;}
}



if (txt || txt4 || txt_a || txt2 || txt3 !="")
{Order.value="Информационный запрос: \n" + txt + txt4 + txt_a + txt2 + txt3;}
else {Order.value=""}


}




function clear_()
{

Order=document.forms[0].Order

Informationen=document.forms[1].Informationen
Beitritt=document.forms[1].Beitritt
Mitgliedschaft=document.forms[1].Mitgliedschaft
Institution=document.forms[1].Institution
Kontakt=document.forms[1].Kontakt


Informationen.checked=false;
Beitritt.checked=false;

for (i=0;i<Mitgliedschaft.length;++ i)
{Mitgliedschaft[i].checked=false}

Institution.value="";

for (i=0;i<Kontakt.length;++ i)
{Kontakt[i].value=""}

document.forms[0].Submit.disabled=true;

}

