Hi there,

I had already asked on the other forum but still don't know where is a problem.
could anybody check why this script is not working please?
I tried almost everything... It should load season.js only on days between Jun and March.
Code:
<script>
function load_script(url) {
   var e = document.createElement("script");
   e.src = url;
   e.type = "text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e);
}

window.onload = function( ) {
	var date = new Date;
	var month = date.getMonth( ) + 1;

	if ((6 <= month) || (3 >= month)) {
		load_script("season.js");
	}
}

</script>
Many thanks!