function popUp(URL, width, height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = 390,top = 262');");
}

//Get a date string
    function GetAge(dob)
    {
        var birthday = new Date();
        var today = new Date();
        birthday.setTime(Date.parse(dob));
        var CalculatedDate;
        CalculatedDate = birthday.getFullYear() * 10000 + (birthday.getMonth()+1) * 100 + birthday.getDate() ;
        CalculatedToday = today.getYear() * 10000 + (today.getMonth()+1) * 100 + today.getDate();
        return (Math.floor((CalculatedToday-CalculatedDate)/10000)).toString();
    }