passing value to jquery methode in jquery coundown plugin
<p>I'm using jquery countdown plugin and i've two questions .
 i have the following code</p>

<pre><code>$('#countbox').countdown({

layout:'&lt;b&gt;{d&lt;}{dnn}:{d&gt;}'+ 
    '{hnn}: {mnn} : {snn} &lt;/b&gt;',
timeSeparator: ':', 
onExpiry: sold,
onTick: highlight,
serverSync: serverTime

});
function serverTime(pid) { 
    var time = null; 
    $.ajax({
        url: 'ajax_countdown', 
        async: false,
        data: ({pid:pid}),
        dataType: 'text', 
        success: function(text) { 
            time = new Date(text); 
        },
         error: function(http, message, exc) { 
            time = new Date(); 
    }}); 
    alert(time);
    return time; 
}
</code></pre>

<p>Question 1:
 using this i 'm calling function serverTime . here i want to pass the value pid to the method.how to do this ?</p>

<hr>

<p>Question 2:</p>

<p>Second one is related to javascript date function </p>

<pre><code>$d4 ="2011,01-1,11,23,31,32";
alert(new Date(&lt;?php echo $d4; ?&gt;));
</code></pre>

<p>when i alert this i'm getting following result</p>

<blockquote>
  <p>Tue Jan 11 2011 23:31:32 GMT+0530
  (India Standard Time)</p>
</blockquote>

<p>But,the ajax call(mentioned above: question 1) also return the same result here
when i alert bellow one i'm getting  </p>

<blockquote>
  <p>Invalid Date</p>
  
  <p>alert(time);</p>
</blockquote>
