Corso = {
	splitview: function() {
		var b = document.getElementById('body');
		if (!/\bsplitview\b/.test(b.className)) {
			b.className += ' splitview';
		}
		if (!/#content$/.test(location.href)) {
//			location.href += '#content';
		}
		window.scrollTo(0,340);
	},
	closeview: function() {
		var b = document.getElementById('body');
		b.className = b.className.replace(/\bsplitview\b/, '');
		window.scrollTo(0,340);
	},
	initialize: function() {
		var sm = document.forms['sendmail'];
		if (sm) {
			var i, aa = sm.getElementsByTagName('a');
			for (i = 0; i < aa.length; i++) {
				aa[i].target = 'corsoframe';
				aa[i].href += '?page=corso';
				aa[i].onclick = Corso.splitview;
			}
		}
	}
};


