function tarifs (tplanins) { var timeopl = document.regform.timeopl.value; var zone = document.regform.zone.value; if (document.regform.tarid[0].checked) {tplanins = document.regform.tarid[0].value}; if (document.regform.tarid[1].checked) {tplanins = document.regform.tarid[1].value}; if (document.regform.tarid[2].checked) {tplanins = document.regform.tarid[2].value}; if (document.regform.tarid[3].checked) {tplanins = document.regform.tarid[3].value}; if (document.regform.tarid[4].checked) {tplanins = document.regform.tarid[4].value}; if (document.regform.tarid[5].checked) {tplanins = document.regform.tarid[5].value}; if (document.regform.tarid[6].checked) {tplanins = document.regform.tarid[6].value}; if (document.regform.tarid[7].checked) {tplanins = document.regform.tarid[7].value}; if (document.regform.tarid[8].checked) {tplanins = document.regform.tarid[8].value}; if (document.regform.tarid[9].checked) {tplanins = document.regform.tarid[9].value}; if (document.regform.tarid[10].checked) {tplanins = document.regform.tarid[10].value}; if (document.regform.tarid[11].checked) {tplanins = document.regform.tarid[11].value}; if (document.regform.tarid[12].checked) {tplanins = document.regform.tarid[12].value}; if (document.regform.tarid[13].checked) {tplanins = document.regform.tarid[13].value}; if (document.regform.tarid[14].checked) {tplanins = document.regform.tarid[14].value}; if (document.regform.tarid[15].checked) {tplanins = document.regform.tarid[15].value}; if (tplanins == -1 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == -1 && timeopl == 2) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == -1 && timeopl == 3) {document.regform.toplata.value="1";} if (tplanins == -1 && timeopl == 4) {document.regform.toplata.value="1";} if (tplanins == -1 && timeopl == 4) {document.regform.toplata.value="1";} if (tplanins == 23 && timeopl == 1) {document.regform.toplata.value=110;} if (tplanins == 23 && timeopl == 2) {document.regform.toplata.value=510;} if (tplanins == 23 && timeopl == 3) {document.regform.toplata.value="800";} if (tplanins == 23 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 23 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 38 && timeopl == 1) {document.regform.toplata.value=300;} if (tplanins == 38 && timeopl == 2) {document.regform.toplata.value=1600;} if (tplanins == 38 && timeopl == 3) {document.regform.toplata.value="3000";} if (tplanins == 38 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 38 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 53 && timeopl == 1) {document.regform.toplata.value=129;} if (tplanins == 53 && timeopl == 2) {document.regform.toplata.value=699;} if (tplanins == 53 && timeopl == 3) {document.regform.toplata.value="1299";} if (tplanins == 53 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 53 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 54 && timeopl == 1) {document.regform.toplata.value=199;} if (tplanins == 54 && timeopl == 2) {document.regform.toplata.value=999;} if (tplanins == 54 && timeopl == 3) {document.regform.toplata.value="1899";} if (tplanins == 54 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 54 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 65 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 65 && timeopl == 2) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 65 && timeopl == 3) {document.regform.toplata.value="64";} if (tplanins == 65 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 65 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 58 && timeopl == 1) {document.regform.toplata.value=100;} if (tplanins == 58 && timeopl == 2) {document.regform.toplata.value=450;} if (tplanins == 58 && timeopl == 3) {document.regform.toplata.value="800";} if (tplanins == 58 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 58 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 59 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 59 && timeopl == 2) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 59 && timeopl == 3) {document.regform.toplata.value="199";} if (tplanins == 59 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 59 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 60 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 60 && timeopl == 2) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 60 && timeopl == 3) {document.regform.toplata.value="249";} if (tplanins == 60 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 60 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 61 && timeopl == 1) {document.regform.toplata.value=24;} if (tplanins == 61 && timeopl == 2) {document.regform.toplata.value=139;} if (tplanins == 61 && timeopl == 3) {document.regform.toplata.value="249";} if (tplanins == 61 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 61 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 62 && timeopl == 1) {document.regform.toplata.value=39;} if (tplanins == 62 && timeopl == 2) {document.regform.toplata.value=159;} if (tplanins == 62 && timeopl == 3) {document.regform.toplata.value="239";} if (tplanins == 62 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 62 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 63 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 63 && timeopl == 2) {document.regform.toplata.value=115;} if (tplanins == 63 && timeopl == 3) {document.regform.toplata.value="179";} if (tplanins == 63 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 63 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 67 && timeopl == 1) {document.regform.toplata.value=69;} if (tplanins == 67 && timeopl == 2) {document.regform.toplata.value=299;} if (tplanins == 67 && timeopl == 3) {document.regform.toplata.value="549";} if (tplanins == 67 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 67 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 66 && timeopl == 1) {document.regform.toplata.value=47;} if (tplanins == 66 && timeopl == 2) {document.regform.toplata.value=219;} if (tplanins == 66 && timeopl == 3) {document.regform.toplata.value="349";} if (tplanins == 66 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 66 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 68 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 68 && timeopl == 2) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 68 && timeopl == 3) {document.regform.toplata.value="160";} if (tplanins == 68 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 68 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 69 && timeopl == 1) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 69 && timeopl == 2) {document.regform.toplata.value="Тариф на указанный срок не предоставляется.";} if (tplanins == 69 && timeopl == 3) {document.regform.toplata.value="199";} if (tplanins == 69 && timeopl == 4) {document.regform.toplata.value="";} if (tplanins == 69 && timeopl == 4) {document.regform.toplata.value="";} //alert("План " +tplanins+ "- Скрок " +timeopl); }