function openWindow(theURL, winName, features) 
{ 
  window.open(theURL,winName,features);
}

function getXY(e)
{
    var posx = 0;   
    var posy = 0;   
    if (!e) var e = window.event;   
    if (e.pageX || e.pageY)     
    {       
        posx = e.pageX;     
        posy = e.pageY; 
    }   
    else if (e.clientX || e.clientY)    
    {       
        posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;      
        posy = e.clientY + document.body.scrollTop  + document.documentElement.scrollTop;   
    }

    var pos = new Array();
    pos[0] = posx;
    pos[1] = posy;

    return pos;
}

function checkRange(startDate, endDate) 
{
    if (startDate < endDate) {
        return true;
    } else {
        return false;
    }
}
