function popup(sizex, sizey, fenster_id, url, prefs)
{
 fenster = window.open(url, fenster_id, 'width=' + sizex + ',height=' + sizey + ',' + prefs);
 fenster.moveTo(((screen.width/2)-(sizex/2)), 40);

 // fenster.moveTo(((screen.width/2)-(sizex/2)),((screen.height/2)-(sizey/2)));
}

function openProjectInfo(id)
{
 popup('640', '520', 'projectinfo', 'popup_project?projectid=' + id, 'resizable=0,scrollbars=0');
};

function openPreisInfo(objectid, objecttypeid)
{
 popup('650', '700', 'preisinfo', 'popup_preisInfos?objectid=' + objectid + '&objecttypeid=' + objecttypeid, 'resizable=0,scrollbars=0');
};

