﻿if(location.protocol)
{
	var vsPro = new String(location.protocol)
	var vsHost = new String(location.host)
    if (vsPro.toUpperCase() != 'HTTPS:' || vsHost.toUpperCase() != "WWW.MEDIMANAGE.COM")
    {
        if(location.pathname == "/")
        {
	        //window.location.replace("https://www.medimanage.com/Forms/frm_G_Home_Page.aspx")
	        window.location.replace("https://www.medimanage.com/")
        }
        else
        {
	        window.location = 'https://www.medimanage.com' + location.pathname + location.search;
        }
    }
}
else
{
	//window.location.replace("https://www.medimanage.com/Forms/frm_G_Home_Page.aspx")
	window.location.replace("https://www.medimanage.com/")
}