
/*
 * @version Id: stylesParser.js 30/mar/07
 * @package Parcelle
 * @copyright Copyright (C) 2007 Andrea Bizzotto - Tecnobit S.R.L. All rights reserved.
 * @license 
 * Created on 30/mar/07
 */
 
function removeDiv(html, id) {

	var result = getParcelDivById(html, id);
	if (result == false)
		return false;
	if (result == -1)
		return -1;

	var pos = result.split('-');
	
	//alert(html.substring(0, pos[0]) + "\n\n" + html.substring(pos[0], pos[2]) + "\n\n" + html.substring(pos[2]));
	return html.substring(0, pos[0]) + html.substring(pos[2]);
}

