﻿// O2LMS.js

function NewWindow(url, gen, yuk)
{
    var rnd = Math.random()+'';
    rnd = rnd.replace('.','');
    if ((gen == '-1') || (yuk == '-1'))
    {
        eval(window.open(url,"_O2LMS"+rnd,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"));
    }
    else
    {
        eval(window.open(url,"_O2LMS"+rnd,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + gen + ",height=" + yuk + ",top=(screen.availHeight -" + yuk + ")/2, left=(screen.availWidth-" + gen + ")/2"));
    }
}
