// JavaScript Document
function objectAjax()
	{
	var xmlhttp=false;
	try 
		{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} 
	catch (e) 
		{
		try 
			{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} 
		catch (E) 
			{
			xmlhttp = false;
			}
		}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
  		xmlhttp = new XMLHttpRequest();
  		}
  	return xmlhttp;
  	}

function validateForm(e)
{
	sw0=true;
	
	sw0 = is_validate('domain', 'text2', 'inputB', 'inputError', true, 'Este campo es requerido', 'Solo texto');
	if (sw0==false)
	{
	document.getElementById('domain').className='req';
	$('#domain').show();
	}
	
	if ((sw0==true)) document.getElementById(e).submit();
}

