﻿var MonatNamen = new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember")
//var Art = parent.document.Buchung.Art_der_Buchung.value
var Art1 = "Zimmerreservierung" 

function rese_oben(sprache,unt){
if(sprache == "eng"){
dText[0] =  "reservation inquiry"
dText[1] =  "room"
dText[2] =  "personal data"
dText[3] =  "summary"
document.getElementById('lg1').style.left = 10
document.getElementById('lg3').style.left = 10
document.getElementById('lg4').style.left = 10
document.getElementById('lgs1').style.width = 250
document.getElementById('lgs3').style.width = 200
document.getElementById('lgs4').style.width = 130
if(Art == Art1){;dText[0] =  "room reservation";}
if(unt == "ja"){nnText = new Array("back","help","reset form","continue")
document.getElementById('bab').value = "break off"
document.getElementById('bok').value = "OK"
};}

if(sprache == "rus"){
dText[0] =  "Учетный запрос"
dText[1] =  "Комната"
dText[2] =  "Личные данные"
dText[3] =  "Резюме"
document.getElementById('lg1').style.left = 10
document.getElementById('lg3').style.left = 10
document.getElementById('lg4').style.left = 10
document.getElementById('lgs1').style.width = 230
document.getElementById('lgs3').style.width = 220
document.getElementById('lgs4').style.width = 130
if(Art == Art1){;dText[0] =  "Резервирование комнат";document.getElementById('lg1').style.left = 0;document.getElementById('lgs1').style.width = 290;document.getElementById('lgs3').style.width = 190;document.getElementById('lgs4').style.width = 110}
if(unt == "ja"){nnText = new Array("назад","Помощь","удалить","дальше")
document.getElementById('bab').value = "Прекратить"
document.getElementById('bok').value = "Хорошо"
};}
if(unt == "ja"){;for(var i=1; i < 5; i++) {;document.getElementById('u'+i).title = nnText[i-1];};}
}

//////Reservierung
function translate_rese(sprache) {
if(sprache == "eng"){
dText[0] =  "<I><B>If you would like to make or inquire about a reservation<BR>you can use our online form,<BR>you can check the box next to e-mail address if you would like to send us a fax.</I><B>"
dText[1] =  "<B>Your inquiry is sent to us by e-mail and we will<BR>review and answer your request as soon as possible.</B>"
dText[2] =  "<B>I would like to make a</B>"
dText[3] =  "please, select..."
dText[4] =  "inquiry about a"
dText[5] =  "room"
dText[6] =  "<B>&nbsp;reservation</B>"
dText[7] =  "or&nbsp;"
dText[8] =  "<I><B>click below on the e-mail link to write us directly.</B></I>"
document.getElementById('go').style.fontSize = "17px"
}

if(sprache == "rus"){
dText[0] =  "<I><B>Если Вы желаете запросить или расмещать заказ , то<BR>Вы можете использовать наш интерактивный бланк,<BR>под полем «Электронный адрес» Вы можете поставить галочку, если Вам хочется дать нам<BR>Ваши сообщение ещё факсом.</I><B>"
dText[1] =  "<B>Ваш запрос по поступлению к нам по электронной  почте немедленно <BR>прорабатывается  и как можно быстрее нами отвечается !</B>"
dText[2] =  "<B>Я хотел бы один&nbsp;</B>"
dText[3] =  "Пожалуйста, выбирают..."
dText[4] =  "Учетный запрос"
dText[5] =  "Резервирование комнат"
dText[6] =  "<B>&nbsp;посылать</B>"
dText[7] =  "или &nbsp;"
dText[8] =  "<I><B>нажмите внизу электронную ссылку (файл), чтобы писать нам непосредственно.</I></B>"
document.getElementById('go').style.fontSize = "17px"
}
translate_it('9',dText)
}
//////anfrage
function translate_anfrage(sprache) {
if(sprache == "eng"){
rese_oben(sprache,'ja')
dText[4] =  "I would like an offer for"
dText[5] =  "with"
dText[6] =  ""
dText[7] =  "arrival:"
dText[8] =  "departure:"
dText[9] =  "as well as for"
dText[10] =  "with"
dText[11] =  "&nbsp;arrival:"
dText[12] =  "departure:"
dText[13] =  "If the requested dates are not available then use these back-up dates.<BR>from"
dText[14] =  "to"
dText[15] =  "Please, check your specifications!"
Melder = new Array("Please choose a number of rooms!","Enter the correct arrival date!","Enter the correct departure date!")
document.getElementById('lgs5').style.left = 15
document.getElementById('lgs6').style.left = 92
if(Art == Art1){;dText[4] =  "I would like to book";dText[6] =  "";document.getElementById('lgs5').style.left = -6}
sText1 = new Array ("single room","two bed room","double bed room","three bed room","1/2 apartment "," 1/3 apartment "," 1/4 apartment ")
sText2 = new Array ("breakfast","breakfast&dinner")
swka = "show calandar"
weZi  ="other room"
document.getElementById('wz1').style.width = 120
MonatNamen = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
WoTage = new Array("Mo","Tu","We","Th","Fr","Sa","Su","close")
}

if(sprache == "rus"){
rese_oben(sprache,'ja')
dText[4] =  "Резервирование / Запрос "
dText[5] =  "с"
dText[6] =  ""
dText[7] =  "Приезд:"
dText[8] =  "Отъезд:"
dText[9] =  "а также для"
dText[10] =  "с"
dText[11] =  "Приезд:"
dText[12] =  "Отъезд:"
dText[13] =  "Если в данное  время нет свободных мест  , хотели бы альтернатино остановится<BR>от"
dText[14] =  "до"
dText[15] =  "<B>Пожалуйста, проверьте Ваши данные!</B>"
Melder = new Array("Укажите, пожалуйста, количество<BR>комнат!","Укажите правильную дату прибытия!","Укажите правильный день отъезда!")
document.getElementById('lgs5').style.left = 0
document.getElementById('lgs6').style.left = 99
if(Art == Art1){;dText[4] =  "Я хотел бы у Вас ";dText[6] =  "бронировать ";document.getElementById('lgs5').style.left = 9}
sText1 = new Array ("Одноместный номер","Комната на двоих","Номер на двух человек","Комната на трех человек","1/2 апартамент"," 1/3 апартамент"," 1/4 апартамент")
sText2 = new Array ("Завтрак","Полупансион")
swka = "показать календарь"
weZi  ="Следующая(ие) комната(ы)"
document.getElementById('wz1').style.width = 200
MonatNamen = new Array("Январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь")
WoTage = new Array("Пн","Вт","Cp","Чт","Пт","Сб","Bc","закрытие ")
}                                    

translate_it('16',dText)
for(var i=1; i < 5; i++) {;document.getElementById('kl'+i).title =swka;}
for(var i=1; i < 9; i++) {;document.getElementById('tw'+i).innerHTML = WoTage[i-1];}
document.getElementById('wz1').innerHTML = weZi
select_va(18,sText1,11,'sl')
select_va(23,sText2,21,'sl')
select_va(38,sText1,31,'sl')
select_va(43,sText2,41,'sl')
start1()
}
//////anfrage2
function translate_anfrage2(sprache) {
if(sprache == "eng"){
rese_oben(sprache,'ja')
dText [4] = "company"
dText [5] = "name"
dText [6] = "firstname"
dText [7] = "street"
dText [8] = "House No."
dText [9] = "ZIP"
dText [10] = "city"
dText [11] = "phone"
dText [12] = "fax"
dText [13] = "e-mail"
dText[14] =  "<B>I don't have an e-mail address I would like to print the summary and send it by fax.</B>"
dText[15] =  "of it:"
dText[16] =  "children under 10 years:"
dText[17] =  "children 11 - 12 years:"
dText[18] =  "domestic animal?"
dText[19] =  "Prefer an offer for my reservation inquiry by"
dText[20] =  "<B>I have read the</B>"
dText[21] =  "GTC"
dText[22] = "."
dText[23] =  "Please, check your specifications!"
if(Art == Art1){;dText[19] =  "Prefer my reservation confirmation by";}
sText1 = new Array ("e-mail","fax","phone")
Melder2 = new Array ("Please enter your name!","Please enter your firstname!","Please enter your street!","<BR>Please enter your house number!","<BR>Please enter your postal code!","<BR>Please enter your place of residence!","<BR>Please enter your telephone number!","Please enter your fax number!","Please enter your e-mail adress and don't<BR>forget &quot;@&quot; and &quot;.&quot;!","<BR>Please, check that you have read the GTC.","I have read the","GTC",".")
}
if(sprache == "rus"){
rese_oben(sprache,'ja')
dText [4] = "Фирма"
dText [5] = "Фамилия"
dText [6] = "Имя"
dText [7] = "Улица"
dText [8] = "Номер дома"
dText [9] = "Пи"
dText [10] = "Место"
dText [11] = "Телефон"
dText [12] = "Факс"
dText [13] = "Э-адрес"
dText[14] =  "<B>У меня нет электронного адреса я хотел бы напечатать  резюме и послать  факсом.</B>"
dText[15] =  "в.т.ч.:"
dText[16] =  "Дети до 10 лет:"
dText[17] =  "Дети 11 - 12 лет:"
dText[18] =  "Домашнее животное?"
dText[19] =  "Пожалуйста, подтверждение по"
dText[20] =  "<B>Я  прочитал</B>"
dText[21] =  "КЗОТ"
dText[22] = "."  
dText[23] =  "<B>Пожалуйста, проверьте Ваши данные!</B>"
if(Art == Art1){;dText[19] =  "Пожалуйста, подтверждение по";}
sText1 = new Array ("Э-адрес","Факс","----")
Melder2 = new Array ("Укажите, пожалуйста, Вашу фамилию!","Пожалуйста, укажите Ваше имя!","Укажите, пожалуйста, Вашу улицу!","Укажите, пожалуйста, Ваш<BR>номер дома!","Укажите, пожалуйста, Ваш почтовый<BR>индекс!","Укажите, пожалуйста, Ваше место<BR>жительства!","Укажите, пожалуйста, Ваш телефонный<BR>номер!","Укажите, пожалуйста, Ваш<BR>номер факса!","Пожалуйста, укажите Ваш электронный<BR>адрес, обращайте внимание на и&quot. &quot!","Пожалуйста, ставьте галочку, которую<BR>Вы прочитали КЗОТ.","Я прочитал","КЗОТ",".")
}
translate_it('24',dText)
select_va(14,sText1,11,'sl')
}

//////Zusammenfassung
function translate_zusam(sprache) {
if(sprache == "eng"){
rese_oben(sprache,'nein')
dText [4] = "All your specifications are summarized in "
dText [5] = " an e-mail format.<BR>"
if(parent.document.Buchung3.mailfax.value =="true"){;dText [5] = "a fax format.";}
dText [6] = "<BR>Please, check all dates once again and make changes if necessary!"
dText[7] = "address:"
dText[8] = "company:"
dText[9] = "phone:"
dText[10] = "fax:"
dText[11] = "e-mail:"
dText[12] = "reservation text"
dText[13] = "If the dates are not correctly transferred, please click "
dText[14] = "here"
dochier = dText[14]
}

if(sprache == "rus"){
rese_oben(sprache,'nein')
dText [4] = "Итоговые сведения "
dText [5] = "повторяются еще раз  электронной почтой."
if(parent.document.Buchung3.mailfax.value =="true"){;dText [5] = "для повторения факсом.";}
dText [6] = "<BR>Пожалуйста, проверьте все данные еще раз и измените их при необходимости. с!"
dText[7] = "Адрес:"
dText[8] = "Фирма"
dText[9] = "Телефон:"
dText[10] = "Факс"
dText[11] = "Э-адрес:"
dText[12] = "Учетный текст:"
//dText[13] = "Если данные переносятся не правильно, нажмите, пожалуйста, "
//dText[14] = "здесь"
//dochier = dText[14]
tzl = 3
}

if(parent.document.Buchung3.mailfax.value == "true"){
translate_it('13',dText)
}
else{
//translate_it('15',dText)
translate_it('13',dText)
}
}
//////Hilfe
function translate_hilfe(sprache) {
if(sprache == "eng"){
dText [0] = "Enter the number of the rooms<BR>as well as your arrival and departure date<BR><BR><B>You can also enter your arrival and departure date with help of the calendar.</B><BR><BR>If a field was forgotten in the form, you will receive a request<BR>to enter the missing information, this is only for the purpose<BR>of completing the form."
top.document.getElementById('I1').title = "print"
top.document.getElementById('I2').title  = "close"
translate_it('1',dText)
setTimeout("top.document.getElementById('tl').innerHTML = 'help:Online-form'",400)
}
if(sprache == "rus"){
dText [0] = "Укажите количество комнат, а также  даты въезда и отъезда.<BR><BR><B>Этие данные могут быть внесены с помощью<BR>электронного календаря. ейдате отъезда также<BR>с кнопками календаря</B> <BR><BR>Если Вы неполностью заполили формуляр , то Вы получите<BR>указния дополнить его."
top.document.getElementById('I1').title = "Печатают"
top.document.getElementById('I2').title  = "закрытие"
translate_it('1',dText)
setTimeout("top.document.getElementById('tl').innerHTML = 'Помощь: Онлайн-формуляр'",400)
}

}
//////Hilfe2
function translate_hilfe2(sprache) {
if(sprache == "eng"){
dText [0] = "After you have filled out all fields marked with &quot;*&quot;,<BR>click on &quot;continue&quot;.<BR><BR>On the following page all data is summarized in an e-mail<BR>format where you have the possibility to check your<BR>information and make changes or add text if necessary.<BR><BR>You can also print the page out, cancel or send the reservation<BR>or inquiry about a reservation.<BR><BR>If a field was forgotten in the form, you will receive a request<BR>to enter the missing information, this is only for the purpose<BR>of completing the form"
top.document.getElementById('I1').title = "print"
top.document.getElementById('I2').title  = "close"
translate_it('1',dText)
setTimeout("top.document.getElementById('tl').innerHTML = 'help:Online-form'",400)
}
if(sprache == "rus"){
dText [0] = "Если Вы заполнили все поля, которые снабжены с &quot;*&quot;, нажимите их на &quot;дальше&quot;.<BR><BR>На следующей странице все данные  в виде приложения <BR>к e-mail показаны и имеется возможность ещё раз проверить данные и провести корректуры.<BR><BR>Далее Вы можете эту страницу отпечатать ,удалить её или отправить .<BR><BR>Если Вы неполностью заполнили формуляр, то Вы <BR>получите указания дополнить его."
top.document.getElementById('I1').title = "Печатают"
top.document.getElementById('I2').title  = "закрытие"
translate_it('1',dText)
setTimeout("top.document.getElementById('tl').innerHTML = 'Помощь: Онлайн-формуляр'",400)
}
}