function saveContact(pAction)
{
	if(trim(document.getElementById('CONV_Name').value)=='')
	{
		window.alert('Ingrese su Nombre');
		document.getElementById('CONV_Name').focus();
		return;
	}
	/*
	if (mOlnlyAlnumhyphen(document.getElementById('CONV_Name')))
	{
		window.alert('se permite solo caracteres A-Z,a-z,0-9,- y _');
		document.getElementById('CONV_Name').focus();
		return;
	}
	*/
	if(trim(document.getElementById('CONV_Lastname').value)=='')
	{
		window.alert('Ingrese su Apellido');
		document.getElementById('CONV_Lastname').focus();
		return;
	}
	/*
	if (mOlnlyAlnumhyphen(document.getElementById('CONV_Lastname')))
	{
		window.alert('se permite solo caracteres A-Z,a-z,0-9,- y _');
		document.getElementById('CONV_Lastname').focus();
		return;
	}
	*/
	if(trim(document.getElementById('CONV_Email').value)=='')
	{
		window.alert('Ingrese su E-mail');
		document.getElementById('CONV_Email').focus();
		return;
	}
	else
	{
		if(!checkEmail(trim(document.getElementById('CONV_Email').value)))
		{
			window.alert('Ingrese un E-mail valido');
			document.getElementById('CONV_Email').focus();
			return;
		}
	}

//	if(document.getElementById('INAI_Id').selectedIndex==0)
//	{
//		window.alert('Ingrese su Area de Interes');
//		document.getElementById('INAI_Id').focus();
//		return;
//	}
//
	if(trim(document.getElementById('CONT_Comment').value)=='')
	{
		window.alert('Ingrese su Mensaje');
		document.getElementById('CONT_Comment').focus();
		return;
	}

	document.getElementById('general').action = pAction;
	document.getElementById('general').submit();
}


function saveContactEn(pAction)
{
	if(trim(document.getElementById('CONV_Name').value)=='')
	{
		window.alert('Enter Name');
		document.getElementById('CONV_Name').focus();
		return;
	}
	/*
	if (mOlnlyAlnumhyphen(document.getElementById('CONV_Name')))
	{
		window.alert('haracters allowed are A-Z,a-z,0-9,- and _');
		document.getElementById('CONV_Name').focus();
		return;
	}
	*/
	if(trim(document.getElementById('CONV_Lastname').value)=='')
	{
		window.alert('Enter Lastname');
		document.getElementById('CONV_Lastname').focus();
		return;
	}
	/*
	if (mOlnlyAlnumhyphen(document.getElementById('CONV_Lastname')))
	{
		window.alert('haracters allowed are A-Z,a-z,0-9,- and _');
		document.getElementById('CONV_Lastname').focus();
		return;
	}
	*/
	if(trim(document.getElementById('CONV_Email').value)=='')
	{
		window.alert('Enter Email');
		document.getElementById('CONV_Email').focus();
		return;
	}
	else
	{
		if(!checkEmail(trim(document.getElementById('CONV_Email').value)))
		{
			window.alert('Incorrect Email');
			document.getElementById('CONV_Email').focus();
			return;
		}
	}
	
	if(trim(document.getElementById('CONT_Comment').value)=='')
	{
		window.alert('Enter Comment');
		document.getElementById('CONT_Comment').focus();
		return;
	}	

	document.getElementById('general').action = pAction;
	document.getElementById('general').submit();
}

function cleanContact()
{
	document.getElementById('CONV_Name').value='';
	document.getElementById('CONV_Lastname').value='';
	document.getElementById('CONV_Email').value='';
	document.getElementById('CONV_Telephone').value='';
//	document.getElementById('INAI_Id').selectedIndex=0;
	document.getElementById('CONT_Comment').value='';
	document.getElementById('CONV_Name').focus();	
}
