// Inicio sesion en la base de datos.

function SQLconnect(obj, action, query_str, func)
{
	var xml_w = new XMLwrite();
 	var xml_res = xml_w.createTag("action", action) + xml_w.createTag("query_str", query_str);

	var xml = xml_w.createXML(xml_res);

	new net.ContentLoader("../php/ajax_asw.php", func, "", "tipo=SQL_CONNECTION&xml="+ xml, obj); 
}

/*

	getConnection: function(req)
	{
		var xmld = req.responseXML;	

		var action = xmld.getElementsByTagName("action")[0].firstChild;
		var div_id = xmld.getElementsByTagName("div_id")[0].firstChild.nodeValue;

		if(action)
			new Form(xmld, this.props, this.props_n, this);

	},

	addProperties: function(field, f_name, regexp, def_value, type)
	{
		this.props[this.props_n] = Array();

		this.props[this.props_n]["field"] = field;
		this.props[this.props_n]["f_name"] = f_name;
		this.props[this.props_n]["regexp"] = regexp;
		this.props[this.props_n]["def_value"] = def_value;
		this.props[this.props_n]["type"] = type;

		this.props_n++;

	}
		
}		
*/
