if(isset($_GET["ipconfig-routes"])){ipconfig_routes();exit;}
	if(isset($_GET["ifconfig-route-list"])){ipconfig_routes_list();exit;}
	if(isset($_GET["ifconfig-route-add-js"])){ipconfig_routes_add_js();exit;}
	if(isset($_GET["ifconfig-route-add-popup"])){ipconfig_routes_add_popup();exit;}
	if(isset($_GET["ipconfig-routage"])){ipconfig_routage();exit;}
	
	if(isset($_GET["ipconfig-qos"])){ipconfig_qos();exit;}
	
	if(isset($_POST["QOSMAX"])){ipconfig_qos_save();exit;}
	if(isset($_POST["add-routes"])){ipconfig_routes_add();exit;}
	if(isset($_GET["del-routes"])){ipconfig_routes_del();exit;}	
	if(isset($_POST["ipv6-enable"])){UseIpv6();exit;}
	if(isset($_GET["ipconfig-tools"])){ipconfig_tools();exit;}
	if(isset($_GET["flush-arp-cache-js"])){flus_arp_cache_js();;exit;}
	if(isset($_GET["flush-arp-cache-popup"])){flus_arp_cache_popup();;exit;}
	if(isset($_POST["MII-TOOL"])){MII_TOOLS();exit;}
	js();

	
function js(){
	$page=CurrentPageName();
	header("content-type: application/x-javascript");
	$html="YahooWin2('650','$page?tabs=yes&netconfig={$_GET["nic"]}&button={$_GET["button"]}&noreboot={$_GET["noreboot"]}&OnLyQOS={$_GET["OnLyQOS"]}','{$_GET["nic"]}');";
	echo $html;
	
	
}	

function flus_arp_cache_js(){
	
	$nic=$_GET["nic"];
    exit;
}
if (isset($_GET["ipconfig-tools"])) {
    ipconfig_tools();
    exit;
}
if (isset($_GET["flush-arp-cache-js"])) {
    flus_arp_cache_js();
    exit;
}
if (isset($_GET["flush-arp-cache-popup"])) {
    flus_arp_cache_popup();
    exit;
}
if (isset($_POST["MII-TOOL"])) {
    MII_TOOLS();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    header("content-type: application/x-javascript");
    $html = "YahooWin2('650','{$page}?tabs=yes&netconfig={$_GET["nic"]}&button={$_GET["button"]}&noreboot={$_GET["noreboot"]}&OnLyQOS={$_GET["OnLyQOS"]}','{$_GET["nic"]}');";
    echo $html;
}
function delete_nic_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $nic = $_GET["servername"];