var ua = navigator.userAgent.toLowerCase();
var isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );
var versionMinor = parseFloat(navigator.appVersion);
if(isIE && versionMinor >= 4)
     versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
var versionMajor = parseInt(versionMinor); 
var isIE7up = (isIE || versionMajor >= 7);
var isIE5 = (isIE && versionMajor == 5);
var isIE6 = (isIE && versionMajor == 6);

var focus = false;

function innit(){
	if(isIE){
		document.getElementById('month').onfocus = poll;
		document.getElementById('month').onblur = stoppoll;
	}else{	
		document.getElementById('monthform').onchange = autoSubmit;
	}
}
function autoSubmit(){
	document.getElementById('monthform').submit();
}
function poll(){
	startvalue = document.getElementById('month').value
	interval = setInterval('check();', 500);
}
function check(){	
	if(startvalue != document.getElementById('month').value){
		autoSubmit();
	}
}
function stoppoll(){
	clearInterval(interval);
}