var isNN = (navigator.appName.indexOf("Netscape") != -1);

var isIE = (navigator.appName.indexOf("Microsoft") != -1);



function popUpCal(type) {

    // If type is 1, we'll use the calendar to set the end date.  Otherwise,

    // we'll set the start date.

    var name = "CALENDER";

    if (type == 0) {

        var url = "/StartDateCal.html";

    } else if (type == 1) {

        var url = "/EndDateCal.html";

    } else if (type == 2) {

        var url = "/EventSearchStartDate.html";

    } else if (type == 3) {

        var url = "/EventSearchEndDate.html";

    }



    // features = "width=300,height=190,status,scrollbars,resizable";

    features = "width=325,height=165,status";



    if(isNN) {

        features += ",screenX=0,screenY=0";

    }



    if(isIE) {

        features += ",left=0,top=0";

    }



    var CALWin = window.open(url, name, features);

}

