
/**
* con|comm loginbox ajax / js
* © Timo Besenreuther
**/


function concommLogin(form) {
	url = "front_content.php?";
	url += "&ajax=loginbox";
	
	// get entered username and password
	for (var i=0; i < form.elements.length; i++) {
		if (form.elements[i].name == 'username') {
			url += "&ccusername="+escape(form.elements[i].value);
		}
		if (form.elements[i].name == 'password') {
			url += "&ccpassword="+escape(form.elements[i].value);
		}
	}
	
	// ajax call to store entered username and pass in case of error
	ajax(url, function() { });
	
	return true;
}