function intranet_login(strClickmenu)
{
//alert('b');
	strUsername = document.getElementById('username').value;
	strPassword = document.getElementById('password').value;
	arrValue = { 'username' : strUsername, 'password' : strPassword }
	str_postvars='action=intranet_login&json_value='+escape(arrValue.toJSONString());

//alert('a');

	ajax_httprequest('/ajax/intranet_login.php', 'ajax_intranet_login','',
		'username='+escape(strUsername)+'&password='+escape(strPassword));
}

function ajax_intranet_login(strLayer, strResponseText)
{
//alert(strResponseText);
//document.getElementById('debug').innerHTML=strResponseText;
	window.location.href='/intranet/portal';
}

function intranet_requestpassword(strClickmenu)
{
//alert('b');
	strEmail = document.getElementById('email').value;
	arrValue = { 'email' : strEmail };
	str_postvars='action=request_password&json_value='+escape(arrValue.toJSONString());
//alert('a');
	ajax_httprequest('/ajax/intranet_requestpassword.php', 'ajax_intranet_requestpassword','',
		str_postvars);
}

function ajax_intranet_requestpassword(strLayer, strResponseText)
{
alert("Het wachtwoord is aangevraagd en wordt direct via email verstuurd!");
//document.getElementById('debug').innerHTML=strResponseText;
	window.location.href='/intranet';
}

