//' Version :
//' ---------
//' 1.03 / 2003-05-05 / DB => Modif Si CLI commence par 8 montant kdo = 2.16
//' 1.02 / 2003-05-05 / DB => Modif Si CLI commence par 9 montant kdo = 2.16
//' 1.02 / 2003-03-05 / DB => Modif Si CLI commence par 9 montant kdo = 2.44
//' 1.01 / 2002-09-03 / CB => Modif 'checkUserPIN'
//' 1.00 / 2002-02-14 / DB => Création

var vLOC_type_9_checkForm_1=	null;
var vLOC_type_9_checkForm_2=	'Debes indicar una línea telefónica.';
var vLOC_type_9_checkForm_3=	'Linea 1';
var vLOC_type_9_checkForm_4=	'Linea 2';
var vLOC_type_9_checkForm_5=	'Código secreto';
var vLOC_type_9_checkForm_6=	'EMail';
var vLOC_type_9_checkForm_7=	'EMail de un amigo';
var vLOC_type_9_checkForm_8=	'EMail de otro amigo';
var vLOC_type_9_checkForm_9=	'EMail de un tercer amigo';


function submit_form_offer() {
	//' Check CLIs
	if (document.form_offer.cli_1.value=="") {
		alert(vLOC_type_9_checkForm_2);
		return;
	}
	if (document.form_offer.cli_1.value!="" &&
		 checkPhone(document.form_offer.cli_1,				vLOC_type_9_checkForm_3						, 9	)==false)	return;


	
	if (checkUserPIN	(document.form_offer.cli_userPin,	vLOC_type_9_checkForm_5	, 4	)==false)	return;
	if (document.form_offer.email.value!="" &&
	    checkEMailField	(document.form_offer.email,		vLOC_type_9_checkForm_6							, 5	)==false)	return;
	    
	if (document.form_offer.Email_1.value!="" && 
		checkEMailField (document.form_offer.Email_1, vLOC_type_9_checkForm_7, 5)==false) return;
	
	if (document.form_offer.Email_2.value!="" && 
		checkEMailField (document.form_offer.Email_2, vLOC_type_9_checkForm_8, 5)==false) return;
	
	if (document.form_offer.Email_3.value!="" &&
		checkEMailField (document.form_offer.Email_3, vLOC_type_9_checkForm_9, 5)==false) return;
	
	document.form_offer.action= 'OfferDelivery.asp';
	document.form_offer.submit();
}

