function chkdiv(divid)
{
var chkid=document.getElementById(divid);
if(chkid != null)
{
return true;
}
else
{
return false; 
}
}

