﻿
function Getbgcolor(trbgcol, row) {
    if (document.all) {
        var thestyle = eval('document.all.' + row + '.style');
        thestyle.backgroundColor = trbgcol;
    }
}

function GetDialogMsg(strTitle, strRemark, intSugMsg) {
    var param = new Array();
    param[0] = strTitle;
    param[1] = strRemark;
    param[2] = intSugMsg;
    var val = window.showModalDialog("../../lib/msgDialog/addItemDialog.htm", param, "dialogWidth:300px;dialogHeight:170px;help:no;resizable:no;status:no;scroll:no;");
}
function showCalendarWin() {
    var CalUrl
    var chkSE = "CRUISE";
    var Des = document.all.Destination.value;
    if (Des != "0") {
        //document.frmSE.submit();
    } else {
        var par1 = "נא בחר יעד לנסיעה"
        var par2 = "יעד שדה חובה"
        GetDialogMsg(par1, par2, 1);
        return false;
    }
    //CalUrl = "../../lib/calendarNet/setParam.asp?Des="+Des+"&flddepDate=frmSE.tbFromDate&CurDate=&fldReturnDate=frmSE.tbReturnDate&ReturnDate=&Dep="+chkSE;
    CalUrl = "../../lib/calendarS/calendarS.aspx?Des=" + Des + "&flddepDate=frmData.tbFromDate&Dep=" + chkSE;
    window.open(CalUrl, "CalWin", "width=350,height=470,resizable=yes,left=230,top=90");

}

function CheckData() {
    var Des = document.getElementById("Destination").value;
    var Contry = document.getElementById("Country").value;

    if ((document.getElementById("Destination").value == "") || (document.getElementById("Destination").value == "0")) {

        alert("אנא בחר יעד");
        document.getElementById("Destination").focus();
        return false;
    }

    var link = "http://www.netravel.co.il/basic/cruise/cruisesr.aspx?Des=" + Des + "&Country=" + Contry + "&Dep=&depDate=" + frmData.tbFromDate.value;

    SearchWin = window.open(link, "_self");
    SearchWin.focus();
}
