﻿function showCalendarWin() {
    var CalUrl
    var chkSE = "package";
    var Des = document.all.Destination.value;
    if (Des != "0") {
        //document.frmSE.submit();
    } else {
        alert("נא בחר יעד לנסיעה \n יעד שדה חובה");
        return false;
    }
    CalUrl = "../../lib/calendarNet/CalendarNetW.aspx?Des=" + Des + "&flddepDate=frmSE.tbFromDate&CurDate=&fldReturnDate=frmSE.tbReturnDate&ReturnDate=&Dep=youth";
    SearchWin = window.open(CalUrl, "CalWin", "width=550,height=300,resizable=yes,left=230,top=170");
    SearchWin.focus();
}

function CheckData() {
    if ((document.getElementById("Destination").value == "") || (document.getElementById("Destination").value == "0")) {
        alert("נה בחר יעד");
        document.getElementById("Destination").focus();
        return false;
    }
    var Dep = ""    //document.getElementById("DepartmentID").value;
    if (Dep == "0") { Dep = ""; }
    var link = "../../basic/youth/se.aspx?Destination=" + document.getElementById("Destination").value + "&Country=" + document.getElementById("Country").value + "&DepID=" + Dep
    link = link + "&departureDate=" + document.getElementById("tbFromDate").value + "&returnDate=" + document.getElementById("tbReturnDate").value + "&cPage=1";
    SearchWin = window.open(link, "_self");
}