function VerifyRangeNum(Field1, Value2, Value3) {
	
	if ((Field1.value < Value2 || Field1.value > Value3) ) 
		{
		Field1.style.backgroundColor =  '#FFC0CB';
		Field1.focus();
		return01=false; 
		} 
	else 
		{Field1.style.backgroundColor =  'transparent';
		return01=true;} 

	return return01;

}

function VerifyRangeData(Field1, Date2, Date3) {
    var Date1=Field1.value;
    var Obj1=new Date(parseInt(Date1.substr(6,4)), parseInt(Date1.substr(3, 2)), parseInt(Date1.substr(0, 2)));
    var Obj2=new Date(parseInt(Date2.substr(6,4)), parseInt(Date2.substr(3, 2)), parseInt(Date2.substr(0, 2)));
    var Obj3=new Date(parseInt(Date3.substr(6,4)), parseInt(Date3.substr(3, 2)), parseInt(Date3.substr(0, 2)));

    if (Obj1 <= Obj2 || Obj1 >= Obj3) {
                          Field1.style.backgroundColor =  '#FFC0CB';
                          Field1.focus();
                          return false; }
    else	                {
                          Field1.style.backgroundColor =  'transparent';
                          return true;  }
}

function VerifyReqRFQIT(Field1,Field2,Field3,Field4,Field5,Field6) {

	if (Field1.value == '' || Field2.value == '' || Field3.value == '' || Field4.value == '' || Field5.value == '' || Field6.value == '' )
		{
		return01=false; 
		alert('Verificare di aver compilato tutti i campi obbligatori.');
		} 
	else
		{return01=true;
		alert('La presente RFQ è stata accettata, preghiamo di mandare eventuali documenti o informazioni aggiuntive via email citando sempre il numero di preventivo RFQ sulla testata della corrispondenza.');}

	return return01; 

}

function VerifyCloRFQIT(Field1,Field2,Field3,Field4) {

	if ((Field1.value == '' || Field3.value == '' || Field4.value == '' ) || (Field1.value == 1 && Field2.value == '' ))
		{
		return01=false; 
		alert('Verificare di aver compilato tutti i campi obbligatori.');
		} 
	else
		{return01=true;
		alert('La presente RFQ è stata chiusa con successo.');}

	return return01; 

}


function VerifyReqRFQENG(Field1,Field2,Field3,Field4,Field5,Field6) {

	if (Field1.value == '' || Field2.value == '' || Field3.value == '' || Field4.value == '' || Field5.value == '' || Field6.value == '' )
		{
		return01=false; 
		alert('Please fill in compulsory items.');
		} 
	else
		{return01=true;
		alert('Your RFQ has been accepted. Please send all relevant documents by email always mentioning the RFQ number on the subject and in any further follow-up.');}

	return return01; 

}

function VerifyCloRFQENG(Field1,Field2,Field3,Field4) {

	if ((Field1.value == '' || Field3.value == '' || Field4.value == '' ) || (Field1.value == 1 && Field2.value == '' ))
		{
		return01=false; 
		alert('Please fill in compulsory items.');
		} 
	else
		{return01=true;
		alert('RFQ has been succesfully completed.');}

	return return01; 

}


