when page loads
you should retrive information about intime entry exist or not
if exist then
add function of js to confirm this
if not exist then
no needed to add function and post your data direct
like
protected void Page_Load(object sender, EventArgs e)
{
if(exist)
{
button1.OnClientClick="return confirm('you have already timein .Do you want to timeout(punchout)?');"
}
}