Uncaught TypeError: Cannot read property 'firstChild' of null error message
I've been trying to pass through JS variables via the onChange event but keep receiving the 

> Uncaught TypeError: Cannot read property 'firstChild' of null

under Google Chrome. Here is my code below:

		artistID = album_select.substring(0, album_select.indexOf('/'));
		albumID = album_select.substring(album_select.indexOf('/')+1, album_select.length);		
		var count = 0;
		var tracklist = '';
		for(track in albumlist[albumID][2]){
			count++;
			tracklist+="<option id='"+album+"'>"+track+"</option>";				
			} 
		hstr+="<form><select size='"+count+"' onChange='parent.loadSong(this.value, document.getElementById(\"album_select\").firstChild.nodeValue, document.getElementById(\"artistID\").firstChild.nodeValue)' style='font-size:2em;'>";
		hstr+=tracklist;
		hstr+="</form></select>";
Uncaught TypeError: Cannot read property 'firstChild' of null error message
===

I've been trying to pass through JS variables via the onChange event but keep receiving the 

> Uncaught TypeError: Cannot read property 'firstChild' of null

under Google Chrome. Here is my code below:

		artistID = album_select.substring(0, album_select.indexOf('/'));
		albumID = album_select.substring(album_select.indexOf('/')+1, album_select.length);		
		var count = 0;
		var tracklist = '';
		for(track in albumlist[albumID][2]){
			count++;
			tracklist+="<option id='"+album+"'>"+track+"</option>";				
			} 
		hstr+="<form><select size='"+count+"' onChange='parent.loadSong(this.value, document.getElementById(\"album_select\").firstChild.nodeValue, document.getElementById(\"artistID\").firstChild.nodeValue)' style='font-size:2em;'>";
		hstr+=tracklist;
		hstr+="</form></select>";