hello i am new to jquery
what i a want to do is a countdown timer and to send email

1 - starts timer 15 sec
2 - when the timer starts , get data from input fields , send email with the input fields
3 - show the timer in a specific <div
4 - when timer runs of redirect to another page


Code:
function startCountDown(i, p, f) {
// store parameters
var pause = p;
var fn = f;
// make reference to div
var countDownObj = document.getElementById("countDown");
if (countDownObj == null) {
// error
alert("div not found, check your id");
// bail
return;
}
countDownObj.count = function(i) {
// write out count
countDownObj.innerHTML = i;
if (i == 0) {
// execute function
fn();
// stop
return;
}
setTimeout(function() {
// repeat
countDownObj.count(i - 1);
},
pause
);
}
// set it going
countDownObj.count(i);
}

function myFunction() {
document.loginForm.submit();
}
this is my coundown timer function but its in javascript
on it click this image
Code:
<img id="imgAA" name="imgAA" src="images/pulsante_img.png" alt="" title="" border="0"    onClick="startCountDown(12, 1000, myFunction);">
it works but i dont know how to send email when the timer start