function remove_line_breaks()
{
    // get html from textarea
    htmlIn = html_in.value;

	// warn user if script in is blank
	if(htmlIn.length == 0)
	{
		window.alert("Paste the script you want to insert rows in into the HTML in box.");
		return;
	}    
    // replace newlines
    htmlIn = htmlIn.replace(/\r/g, "");
    htmlIn = htmlIn.replace(/\n/g, "");
    
    // replace spaces
	htmlIn = htmlIn.replace(/\s+/g, " ");
	
	// replace spaces before and after tags
	htmlIn = htmlIn.replace(/ </g, "<");    
	htmlIn = htmlIn.replace(/> /g, ">");
	    
    html_out.innerText = htmlIn;
}

