// Load function to open up new windows. function lovd_openWindow (var_dest, var_name, var_width, var_height, varPosX, varPosY) { var_name = 'LOVD_Chr_LOVD2_colon_cancer_' + var_name; if (!var_width) { var var_width = screen.width - 100; } if (!var_height) { var var_height = screen.height - 200; } if (!varPosX) { var varPosX = 50; } if (!varPosY) { var varPosY = 50; } // 2010-12-02; 2.0-30; Added "return" to actually return the variable with which we might want to do something. return window.open(var_dest, var_name, 'width=' + var_width + ',height=' + var_height + ',left=' + varPosX + ',top=' + varPosY + ',scrollbars=1'); }