﻿//        $(document).ready(function() {
//        $("#Button_login").click(function() {
//                jAlert('This is a custom alert box', 'Alert Dialog');
//            });
//        });

function Button_sostoyanie_onclick() {
    var googlewin2 = dhtmlwindow.open("Информация", "iframe", "Info_Nakladnaya.aspx?id=" + document.getElementById("TextBox_Состояние").value, "Информация", "width=700px,height=220px,resize=0,scrolling=0,center=1", "recal");
}

function offer() {
//    var X = (screen.width / 2) - (657 / 2);
    //    var Y = ((screen.height / 2) - (666 / 2)) / 2;
    var googlewin = dhtmlwindow.open("Сообщение", "iframe", "offer.aspx", "Сообщение", "width=660px,height=666px,resize=0,scrolling=0,center=1", "recal");
//    var img_win = window.open("offer.aspx", "Сообщение", "dependent=yes,resizable=yes,scrollbars=yes,titlebar=yes,top=" + Y + ",left=" + X + ",height=666,width=657");
}

function Button_Raschet_onclick() {
    var googlewin = dhtmlwindow.open("Расчет", "iframe", "Info_Calc.aspx?Откуда=" + document.getElementById("DropDownList_From").value + "&Куда=" + document.getElementById("DropDownList_To").value + "&Вес=" + document.getElementById("DropDownList_Ves").value, "Расчет", "width=496px,height=320px,resize=0,scrolling=0,center=1", "recal");
}


function MaxFillSearch() {
    var searcht = document.getElementById('TextBox_Состояние');
    if (searcht.value == "Введите номер накладной") {
        searcht.value = "";
    }
    MaxCheckSearch();
}

function MaxOutSearch() {
    var searcht = document.getElementById('TextBox_Состояние');
    if (searcht.value == "" || searcht.value == " ") {
        searcht.value = "Введите номер накладной";
    }
}

function MaxCheckSearch() {
}

function Button_zakaz_onclick() {
//    var X = (screen.width / 2) - (690 / 2);
//    var Y = ((screen.height / 2) - (350 / 2)) / 2;
//    var img_win = window.open("New_zakaz.aspx?Откуда=" + document.getElementById("DropDownList_Откуда").value + "&Куда=" + document.getElementById("DropDownList_Куда").value + "&Вес=" + document.getElementById("DropDownList_Вес").value, "Накладная", "dependent=yes,resizable=yes,scrollbars=yes,titlebar=yes,top=" + Y + ",left=" + X + ",height=350,width=690");
    var googlewin = dhtmlwindow.open("Новый заказ", "iframe", "New_zakaz.aspx?Откуда=" + document.getElementById("HiddenField_Откуда").value + "&Куда=" + document.getElementById("HiddenField_Куда").value + "&Вес=" + document.getElementById("HiddenField_Вес").value, "Новый заказ", "width=690px,height=350px,resize=0,scrolling=0,center=1", "recal");
}




