function Form_ch(selObj)
{
var val = selObj.options[selObj.selectedIndex].value;

if(val != "NULL")
    {
    switch (val)
        {
        case "raschet1":
            
            the_form.p_pogr.style.backgroundColor = "#FFFFFF";
            the_form.p_pogr.disabled = false;
            the_form.p_vigr.style.backgroundColor = "#FFFFFF";
            the_form.p_vigr.disabled = false;
            the_form.tnved.style.backgroundColor = "#FFFFFF";
            the_form.tnved.disabled = false;
            the_form.invoice.style.backgroundColor = "#FFFFFF";    
            the_form.invoice.disabled = false;
            the_form.srok.style.backgroundColor = "#FFFFFF";            
            the_form.srok.disabled = false;    
            break;

        case "raschet2":
        
            the_form.p_pogr.style.backgroundColor = "#FFFFFF";
            the_form.p_pogr.disabled = false;
            the_form.p_vigr.style.backgroundColor = "#FFFFFF";
            the_form.p_vigr.disabled = false;
            the_form.tnved.style.backgroundColor = "#FFFFFF";
            the_form.tnved.disabled = false;
            the_form.invoice.style.backgroundColor = "#FFFFFF";            
            the_form.invoice.disabled = false;        
            the_form.srok.style.backgroundColor = "#FFFFFF";            
            the_form.srok.disabled = false;        
            
            break;

        case "raschet3":

            the_form.p_pogr.style.backgroundColor = "#AAAAAA";
            the_form.p_pogr.disabled = true;
            the_form.p_vigr.style.backgroundColor = "#AAAAAA";
            the_form.p_vigr.disabled = true;
            the_form.tnved.style.backgroundColor = "#AAAAAA";
            the_form.tnved.disabled = true;
            the_form.invoice.style.backgroundColor = "#AAAAAA";            
            the_form.invoice.disabled = true;

            the_form.srok.style.backgroundColor = "#AAAAAA";            
            the_form.srok.disabled = true;


            break;
        }
    }
}

function FormDataCheck( frm )
{
	if( frm.req_firm.value != '' && frm.req_country.value != '' && ( frm.req_email.value != '' || frm.req_tel.value != '' || frm.req_fax.value != '' ) && req_face.value != '' ) {
		return true;
	} else {
		alert( 'Пожалуйста, введите Ваши реквизиты (внизу формы).' );
		return false;
	}
}