function GetDoaminName()
//document.location.href this will be returning url of the current page
var domainName = fnGetDomain(document.location.href);
}
//Function is returning Domain Name.
function fnGetDomain(url) {
return (url.match(/:\/\/(.[^/]+)/)[1]);
}