serverName="www.cartachiara.it";
webappName="/webapp/cartach";
sessionidIdentifier="jsessionid";

function loginCC(){
	document.LoginCCForm.action='https://' + serverName + webappName + '/loginCC.do';
}

function loginCCV(){
	document.LoginCCVForm.action='https://' + serverName + webappName + '/loginCCV.do';
}

function logout(action, sessionid, page) {

	if (confirm("Si sta per abbandonare l'area utenti")) {
		redirectPage = 'http://' + serverName + webappName + action;		
		//redirectPage = 'http://' + serverName + webappName + action + ';' + sessionidIdentifier + '=' + sessionid + '?page=' + page;		
		location.href=redirectPage;
	}
}
	
function errorLink(page) {
	location.href='http://' + serverName + page;
}

