function getCookie(name)
{ var offset,cookieValue;
var search=name "=";
if(document.cookie.length>0)
{
offset=document.cookie.indexOf(search);
if(offset!=-1)
)
end = document.cookie.length; Return cookieValue;
}
//name represents the name of the cookie key