Round to the Nearest Odd Integer
:)
HTML
<script src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>
<input id='inp' type='text' placeholder='Enter a number to round to the nearest odd integer.' size='50'/><button id='btn' >Submit</button>
JavaScript
var inp = document.getElementById('inp');
var btn = document.getElementById('btn');
btn.onclick = function(e){
var n = inp.value;
var noe = 2* Math.r(n/2) + 1;
console.log( noe );
};