Hi Raghu,
I don't no, why you are going with document.getElementById methodology instead of nor MS CRM syntax.
you can change the form title . follow the below link
http://raju2565.blogspot.in/2014/03/change-mscrm-2013-form-header-using.html
Regards,
Bangar Raju Sunkari
S.B.RAju...!