added OPEN_TYPE variable: open in new window or in a tab?