function toonInit() {
	var ToonTip = new TipsX3 ($$('.ToonTip'), {
		fixed: true,
		hideDelay: 50,
		showDelay: 0
	});
}

function getSpec() {
	$('class').addEvent('change', function() {
		var req = new Request.HTML({
			url: 'getspec.php',
			method: 'get',
			data: { 'cid' : $('class').getProperty('value') },
			update: $('spec'),
		}).send();
		var req = new Request.HTML({
			url: 'getspec.php',
			method: 'get',
			data: { 
				's' : '1',
				'cid' : $('class').getProperty('value') 
			},
			update: $('spec2'),
		}).send();
	});
}

function changeMonth(calid, month, year, showall) {
	var req = new Request.HTML({
		url: 'showmonth.php',
		method: 'get',
		data: { 'n' : calid, 'y' : year, 'm': month, 'a': showall },
		update: $(calid)
	}).send();
}