CRM 2011 JS: popup Window with HTML contents

    // popup Window with HTML contents

    function openWin(ht) {

        myWindow = window.open('', '', 'width=200,height=100,scrollbars=yes,resizable=yes');

        myWindow.document.write(ht);

        myWindow.focus();

    }