you means
function logout_html($tourl)
{
// Delete cookies when logout and redirect to ./logout
?>
<script type="text/javascript">
function DelLoginzaCookies() {
//alert("is Work");
document.cookie = 'qa_loginza_id=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
document.cookie = 'qa_loginza_scr=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
document.location = 'http://localhost/question2answer/';
}
</script>
<a href="#" onclick="DelLoginzaCookies()">Exit</a>