<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ISPConfig</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="themes/default/style.css" rel="stylesheet" type="text/css">
<script src="js/prototype.js"></script>
<script language= "JavaScript">



function submitLoginForm(formname) {
	var params = Form.serialize($('pageForm'));
	var req1 = new Ajax.Request( 
		'content.php', 
		{
			method:'post',
			asynchronous: false, 
			parameters: params,
			onFailure: reportError,
			onComplete: showLoginResponse
		}
	); 
}

function showLoginResponse(request) {
	$('pageContent').innerHTML = request.responseText;
	loadMenus('');
}




function submitForm(formname) {
	var params = Form.serialize($('pageForm'));
	var req1 = new Ajax.Request( 
		'content.php', 
		{
			method:'post',
			asynchronous: false, 
			parameters: params,
			onFailure: reportError,
			onComplete: showResponse
		}
	); 
}

function showResponse(request) {
	$('pageContent').innerHTML = request.responseText;
}


/*
function showResponse(request) {
	if(request.responseText.indexOf("HEADER_REDIRECT:") > -1) {
		var parts = request.responseText.split(":");
		//alert(parts[1]);
		loadContent2(parts[1],'');
	} else {
		$('pageContent').innerHTML = request.responseText;
	}
}
*/

function loadContent2(pagename,params) {
	
	var req1 = new Ajax.Request( 
		'admin/index.php', 
		{
			method:'post',
			asynchronous: false, 
			parameters: params,
			onFailure: reportError,
			onComplete: showResponse
		}
	); 

}

function loadContent(pagename,params) {
	
	var contentAjax = new Ajax.Updater(
			'pageContent', 
			pagename, 
			{
				method: 'post', 
				parameters: parameters,
				asynchronous: false,
				onFailure: reportError
			});

}

function loadInitContent() {
	
	var contentAjax = new Ajax.Updater(
			'pageContent', 
			'content.php?s_mod=login&s_pg=index', 
			{
				method: 'get', 
				parameters: '',
				onFailure: reportError
			});
	
	loadMenus();

}

function loadMenus() {
	
	var sideNavAjax2 = new Ajax.Updater(
			'sideNav', 
			'nav.php', 
			{
				method: 'get', 
				parameters: 'nav=side',
				onFailure: reportError
			});
	
	var topNavAjax2 = new Ajax.Updater(
			'topNav', 
			'nav.php', 
			{
				method: 'get', 
				parameters: 'nav=top',
				onFailure: reportError
			});
}

function reportError(request)
	{
		alert('Sorry. There was an error.');
	}

</script>
</head>
<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad="loadInitContent()"><form method="post" action="" id="pageForm" enctype="multipart/form-data" style="margin:0px;">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr bgcolor="#496FA8">
    <td height="30" colspan="2" align="right" valign="top" background="themes/default/images/bg_nav_1.jpg"><img src="themes/default/images/mydnsconfig_logo.gif" border="0" alt=""></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="1" colspan="2" align="center" valign="bottom"><img src="themes/default/images/x.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td width="128" height="18" align="left" valign="middle" bgcolor="#496FA8"><img src="themes/default/images/login_logout.gif" width="115" height="10" border="0" usemap="#Map"><br>
    </td>
    <td height="18" align="left" valign="bottom" bgcolor="#496FA8"><div id="topNav">&nbsp;</div></td>
  </tr>
  <tr>
    <td width="128" height="26" background="themes/default/images/nav_top_bg.gif">&nbsp;</td>
    <td rowspan="3" class="mainContent"><div id="pageContent" style="width:100%; height:100%;"></div></td>
  </tr>
  <tr>
    <td width="128" align="right" valign="top" bgcolor="#DEE4F2"><div id="sideNav">&nbsp;</div></td>
  </tr>
  <tr>
    <td align="left" valign="bottom" bgcolor="#DEE4F2">&nbsp;</td>
  </tr>
</table></form>
<map name="Map">
  <area shape="rect" coords="66,1,106,19" href="login/logout.php?phpsessid=d4307711e9e4905b0bf590198a1fc4a5">
  <area shape="rect" coords="5,1,50,10" href="help/index.php?phpsessid=d4307711e9e4905b0bf590198a1fc4a5" target="content">
</map>
</body>
</html>