function check(obj)
{
if ( obj.Anketa_first_name.value == '' || obj.Anketa_second_name.value == '' || obj.Anketa_pers_kod.value == ''
|| obj.Anketa_address.value == '' || obj.Anketa_phone.value == '' || obj.Anketa_doctor.value == '')
{
alert( "Please fill all obligate fields(*)!" );
return false;
}
if ( *!* !/\d{6}-\d{5}/.test( obj.Anketa_pers_kod.value ) */!* )
)
{
alert("Personal code format is incorrect!");
return false;
}
obj.submit();
}