I need to change this two function from javascript to JQuery can any one tell me how to convert
<pre><code>&lt;script type="text/javascript"&gt;
function setYear()
{

    var d = new Date(); 

    var cur = document.getElementById('CYear'); 
    var prev = document.getElementById('PYear'); 
    var next = document.getElementById('NYear'); 
    var optionC, optionP, optionN; 

    for (var i = d.getFullYear() - 10; i &lt;= d.getFullYear() + 10; i++) 
    { 
        optionC = document.createElement("option"); 
        optionC.setAttribute("value", i); 
        optionC.innerHTML = i; 
        cur.appendChild(optionC); 
    };
    for (var i = d.getFullYear() - 10; i &lt; d.getFullYear() + 10; i++) 
    { 
        optionP = document.createElement("option"); 
        optionP.setAttribute("value", i); 
        optionP.innerHTML = i; 
        prev.appendChild(optionP); 
    }; 
    for (var i = d.getFullYear() - 10; i &lt;= d.getFullYear() + 10; i++) 
    { 
        optionN = document.createElement("option"); 
        optionN.setAttribute("value", i); 
        optionN.innerHTML = i; 
        next.appendChild(optionN); 
    }; 
    cur.value=d.getFullYear();
    prev.value=d.getFullYear()-1;
    next.value=d.getFullYear()+1;   
}
function setYear1(obj)
{
    var prev = document.getElementById('PYear');
    var next = document.getElementById('NYear');   

    prev.value = Number(obj.value) - 1;
    next.value = Number(obj.value) + 1;
}

function onlyNumbers(evt)
            {
                var evt = (evt) ? evt : event;
                var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));
                if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57) &amp;&amp; charCode!=44)
                {
                    alert("Enter numerals only in this field!");
                    return false;
                }
                return true;
            }


&lt;/script&gt;
</code></pre>

<p>I need to change this two function from javascript to JQuery can any one tell me how to conver.  Are there any converters for converting from javascript to Jquery?  Thanks in advance.</p>
