 
	try {
		var err = document.location.toString().match(/errorcode=\d+/).toString().match(/\d+/).toString();
		try {
			var msg = document.location.toString().match(/errorcontrol=.*/).toString();
			msg = msg.split(/errorcontrol=/);
			if (msg.length>1) msg = unescape(msg[1]);
		} catch (e) {
		}
		var error = false;
		switch (err) {
			case '1': error=("An error has occurred while attempting to save your subscriber information."); break;
			case '2': error=("The list provided does not exist."); break;
			case '3': error=("Information was not provided for a mandatory field:"); break;
			case '4': error=("Invalid information was provided:"); break;
			case '5': error=("Information provided is not unique."); break;
			case '6': error=("An error has occurred while attempting to save your subscriber information."); break;
			case '7': error=("An error has occurred while attempting to save your subscriber information."); break;
			case '8': error=("Subscriber already exists."); break;
			case '9': error=("An error has occurred while attempting to save your subscriber information."); break;
			case '10': error=("An error has occurred while attempting to save your subscriber information."); break;
			case '12': error=("The subscriber you are attempting to insert is on the master unsubscribe list or the global unsubscribe list."); break;
		}
		if (error) {
			document.getElementById('errors').innerHTML = error + ' ' + (msg ? msg : '');
		}
		var danks = document.location.toString().match(/thanks=\d+/).toString().match(/\d+/).toString();
		var thanksset = false;
		switch (danks) {
			case '1':
				thanksset = ("Thanks For Subscribing!");break;
		}
		if (thanksset) {
			document.getElementById('thanks').innerHTML = thanksset;
		}
	} catch (e) {
	}
	
	page = document.location.toString().split(/\?/);
	document.getElementById('err').value=page[0];
	document.getElementById('thx').value='http://www.funkybatz.com/7029546_38396.htm';
	

