exit;
}
if (isset($_GET["js-all-localdomains"])) {
    echo js_all_localdomains();
    exit;
}
if (isset($_GET["ajax"])) {
    echo js_popup();
    exit;
}
if (isset($_GET["round-robin"])) {
    round_robin_js();
    exit;
}
if (isset($_GET["roundrobin_ipaddress"])) {
    round_robin_save();
    exit;
}
if (isset($_GET["round-robin-popup"])) {
    round_robin_popup();
    exit;
}
if (isset($_GET["round-robin-list"])) {
    echo round_robin_list();
    exit;
}
if (isset($_GET["round-robin-delete"])) {
    round_robin_delete();
    exit;
}
INDEX();
	if(isset($_GET["AddNewInternetDomainDomainName"])){AddNewInternetDomain();exit;}
	if(isset($_GET["AddNewRelayDomainName"])){AddNewRelayDomain();exit;}
	if(isset($_GET["DeleteInternetDomain"])){DeleteInternetDomain();exit;}
	if(isset($_GET["EditRelayDomainIP"])){EditRelayDomain();exit();}
	if(isset($_GET["DeleteRelayDomainName"])){DeleteRelayDomainName();exit;}
	if(isset($_GET["LocalDomainList"])){echo DOMAINSLIST($_GET["ou"]);exit;}
	if(isset($_GET["RelayDomainsList"])){echo RELAY_DOMAINS_LIST($_GET["ou"]);exit;}
	if(isset($_GET["EditInfosLocalDomain"])){echo EditInfosLocalDomain();exit;}
	if(isset($_GET["EditLocalDomain"])){EditLocalDomain();exit();}
	if(isset($_GET["duplicate_local_domain"])){COPY_DOMAINS_SAVE();exit;}
	
	if(isset($_GET["js"])){echo js_script();exit;}
	if(isset($_GET["ajax"])){echo js_popup();exit;}
	
	if(isset($_GET["round-robin"])){round_robin_js();exit;}
	if(isset($_GET["roundrobin_ipaddress"])){round_robin_save();exit;}
	if(isset($_GET["round-robin-popup"])){round_robin_popup();exit;}
	if(isset($_GET["round-robin-list"])){echo round_robin_list();exit;}
	if(isset($_GET["round-robin-delete"])){round_robin_delete();exit;}
	INDEX();
	
	
function VerifyRights(){
	$usersmenus=new usersMenus();
	if($usersmenus->AsMessagingOrg){return true;}
	if(!$usersmenus->AllowChangeDomains){return false;}
}
	
function round_robin_js(){
	$page=CurrentPageName();
	//&ou=$ou&domain=$num