/** * @desc kMagic BnB JavaScript Library * @author kubus media * @package BnB */ /** * @desc Opens new window and set focus to it * @param url to open, name of window, options of windows * @return void */ function openWindow( url, name, options){ var f = window.open( url, name, options); f.focus(); } /** * @desc Opens addtional window for picture preview * @param url to open * @return void */ function openPrint( url){ openWindow( url, 'print', 'scrollbars=1,resizable=1,menubar=0,toolbar=0,location=0,status=0' ); }