function isSecure()
{
   return window.location.protocol == 'https:';
}
