﻿// JScript File
//Функции для работы со страницей школы



//Версия для печати (школа)
function printschool()
{
    var printArea1 = document.getElementById("printArea1");
    var printArea2 = document.getElementById("printArea2");
    var printArea3 = document.getElementById("printArea3");
    var pageTitle = document.title;
    var newWindow = window.open("", "printVersion");
    with (newWindow)
        {
            document.write("<HTML>\n<head>\n<title>" + pageTitle + "</title>\n");
            document.write("<link rel='stylesheet' href='/styles/studyexpress.css' type='text/css' />\n");
            document.write("</head>\n");
            document.write("<body >\n");
            document.write(printArea1.innerHTML);
            document.write(printArea2.innerHTML);
            document.write(printArea3.innerHTML);
            document.write("\n<hr>\n");
            document.write("\n<center>информация предоставлена 'Образовательным Центром Стади Флайт', Москва, тел.+7 495 772-4865</center>\n");
            document.write("\n</body>\n");
            document.write("</html>");
            document.close();
            focus();
        }
}

//Открыть окно для добавления рассказа
function addstory(id_schools)	{
hot = window.open("addstory-"+id_schools+".htm", "AddStory", "copyhistory=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,width=700,height=600");
hot.focus();
}

//Открыть окно для отправки описания школы
function sendschool(id_schools)	{
hot = window.open("sendschool-"+id_schools+".htm", "SendSchool", "copyhistory=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,width=530,height=550");
hot.focus();
}

//Открыть окно для отправки тарифов
function sendtariff(id_schools, id_school_groups)	{
hot = window.open("sendschool-"+id_schools+".htm?send=tariff&id_school_groups="+id_school_groups, "SendSchool", "copyhistory=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,width=530,height=550");
hot.focus();
}
