SHARE
TWEET

CU lecture Assesment

ABGEO Jan 22nd, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function updateadmin(str){
  2.   var id=str;
  3.    var positiveSide21 = $('#positiveSide21').val();
  4.    var negativeSide21 = $('#negativeSide21').val();
  5.    var ucx =0;
  6.       var action = "updateadmin";
  7.          var datas="action="+action+"&positiveSide21="+positiveSide21+"&negativeSide21="+negativeSide21;
  8.  
  9.         $.ajax({
  10.         type: "POST",
  11.         url:  "../../controllers/students/C_LectureAssesment.php?id="+id,
  12.         data: datas
  13.          }).done(function(data){
  14.        
  15.        if (ucx==0) {alert("ინფორმაცია შეინახა");}else {alert("Information saved");}
  16.          window.location.reload(false);  
  17.  
  18. });
  19.  }
  20.  
  21.  
  22.  function updatedep(str){
  23.   var id=str;
  24.    var positiveSide22 = $('#positiveSide22').val();
  25.    var negativeSide22 = $('#negativeSide22').val();
  26.   var ucx =0;
  27.    
  28.    
  29.       var action = "updatedep";
  30. var datas="action="+action+"&positiveSide22="+positiveSide22+"&negativeSide22="+negativeSide22;
  31.  
  32.         $.ajax({
  33.         type: "POST",
  34.         url:  "../../controllers/students/C_LectureAssesment.php?id="+id,
  35.         data: datas
  36.          }).done(function(data){
  37.        
  38.      if (ucx==0) {alert("ინფორმაცია შეინახა");}else {alert("Information saved");}
  39.        window.location.reload(false);  
  40.  
  41. });
  42.  }
  43.  
  44.   function updatedata(str){
  45.                var cxr_id=str;
  46.             var k =$('#k'+str).val();
  47. var ucx =0;
  48. if (k==0){
  49. if ($("input[name=assessment10]:checked").length > 0){
  50.    var assessment1 = $("input[name=assessment10]:checked").val();  
  51.    }else{
  52.        if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}
  53.        else {alert("Please answer the first question");}
  54.  
  55.    document.getElementById("assessment10").focus();return false;}
  56. if ($("input[name='assessment20']:checked").length > 0){
  57.    var assessment2 = $("input[name='assessment20']:checked").val();  
  58.   }else{
  59.        if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}
  60.        else {alert("Please answer the second question");}
  61.    document.getElementById("assessment20").focus();return false;}
  62. if ($("input[name='assessment30']:checked").length > 0){
  63.    var assessment3 = $("input[name='assessment30']:checked").val();  
  64.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}
  65.        else {alert("Please answer the third question");}
  66.   document.getElementById("assessment30").focus();return false;  }
  67. if ($("input[name='assessment40']:checked").length > 0){
  68.   var assessment4 = $("input[name='assessment40']:checked").val();  
  69.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}
  70.        else {alert("Please answer the fourth question");}
  71.    
  72.   document.getElementById("assessment40").focus();return false;}
  73. if ($("input[name='assessment50']:checked").length > 0){
  74.     var assessment5 = $("input[name='assessment50']:checked").val();  
  75.     }else {
  76.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}
  77.        else {alert("Please answer the fifth question");}
  78.            
  79.   document.getElementById("assessment50").focus();return false;}
  80. if ($("input[name='assessment60']:checked").length > 0){
  81.      var assessment6 = $("input[name='assessment60']:checked").val();  
  82.     }else{
  83.          if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}
  84.        else {alert("Please answer the sixth question");}
  85.  
  86.   document.getElementById("assessment60").focus();return false;}
  87. if ($("input[name='assessment70']:checked").length > 0){
  88.      var assessment7 = $("input[name='assessment70']:checked").val();  
  89.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}
  90.        else {alert("Please answer the seventh question");}
  91.  
  92.    document.getElementById("assessment70").focus();return false;}
  93. if ($("input[name='assessment80']:checked").length > 0){
  94.     var assessment8 = $("input[name='assessment80']:checked").val();  
  95.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}
  96.        else {alert("Please answer the eighth question");}
  97.  
  98.    document.getElementById("assessment80").focus();return false;}
  99. if ($("input[name='assessment90']:checked").length > 0){
  100.     var assessment9 = $("input[name='assessment90']:checked").val();  
  101.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}
  102.        else {alert("Please answer the ninth question");}
  103.  
  104.    document.getElementById("assessment90").focus();return false;}
  105. if ($("input[name='assessment100']:checked").length > 0){
  106.     var assessment10 = $("input[name='assessment100']:checked").val();  
  107.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}
  108.        else {alert("Please answer the tenth question");}
  109.        
  110.            
  111.   document.getElementById("assessment100").focus();return false;}
  112. if ($("input[name='assessment110']:checked").length > 0){
  113.     var assessment11 = $("input[name='assessment110']:checked").val();  
  114.     }else{
  115.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}
  116.        else {alert("Please answer the eleventh question");
  117.  
  118.     }
  119.   document.getElementById("assessment110").focus();return false;}
  120. if ($("input[name='assessment120']:checked").length > 0){
  121.    var assessment12 = $("input[name='assessment120']:checked").val();  
  122.    }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}
  123.        else {alert("Please answer the twelfth question");
  124.        
  125.    }
  126.   document.getElementById("assessment120").focus();return false;}
  127. if ($("input[name='assessment130']:checked").length > 0){
  128.     var assessment13 = $("input[name='assessment130']:checked").val();  
  129.    }else{
  130.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}
  131.        else {alert("Please answer the thertinth question");
  132.    }
  133.    document.getElementById("assessment130").focus();return false;}
  134. if ($("input[name='assessment140']:checked").length > 0){
  135.      var assessment14 = $("input[name='assessment140']:checked").val();  
  136.     }else{
  137.          if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  138.        else {alert("Please answer the fourteenth question");
  139.                
  140.     }
  141.    document.getElementById("assessment140").focus();return false;}
  142. if ($("input[name='assessment150']:checked").length > 0){
  143.     var assessment15 = $("input[name='assessment150']:checked").val();  
  144.     }else{
  145.          if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");}
  146.        else {alert("Please answer the fifteenth question");
  147.  
  148.     }
  149.   document.getElementById("assessment150").focus();return false;}
  150. if ($("input[name='assessment160']:checked").length > 0){
  151.     var assessment16 = $("input[name='assessment160']:checked").val();  
  152.     }else{
  153.          if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}
  154.        else {alert("Please answer the sixteenth question");
  155.                
  156.     }
  157.   document.getElementById("assessment160").focus();return false;}
  158. if ($("input[name='assessment170']:checked").length > 0){
  159.     var assessment17 = $("input[name='assessment170']:checked").val();  
  160.     }else{
  161.          if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}
  162.        else {alert("Please answer the seventeenth question");
  163.                
  164.     }
  165.   document.getElementById("assessment170").focus();return false;}
  166.  
  167.          var positiveSide18 = $('#positiveSide180').val();
  168.          var positiveSide19 = $('#positiveSide190').val();
  169.          var positiveSide20 = $('#positiveSide200').val();
  170.          var negativeSide18 = $('#negativeSide180').val();
  171.          var negativeSide19 = $('#negativeSide190').val();
  172.          var negativeSide20 = $('#negativeSide200').val();  
  173. }      
  174.  
  175. if (k==1){
  176. if ($("input[name=assessment11]:checked").length > 0){
  177.    var assessment1 = $("input[name=assessment11]:checked").val();  
  178.    }else{
  179.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}
  180.        else {alert("Please answer the first question");}
  181.  document.getElementById("assessment11").focus();return false;}
  182. if ($("input[name='assessment21']:checked").length > 0){
  183.    var assessment2 = $("input[name='assessment21']:checked").val();  
  184.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  185.    document.getElementById("assessment21").focus();return false;}
  186. if ($("input[name='assessment31']:checked").length > 0){
  187.    var assessment3 = $("input[name='assessment31']:checked").val();  
  188.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  189.  document.getElementById("assessment31").focus();return false;}
  190. if ($("input[name='assessment41']:checked").length > 0){
  191.   var assessment4 = $("input[name='assessment41']:checked").val();  
  192.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  193.   document.getElementById("assessment41").focus();return false;}
  194. if ($("input[name='assessment51']:checked").length > 0){
  195.     var assessment5 = $("input[name='assessment51']:checked").val();  
  196.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  197.   document.getElementById("assessment51").focus();return false;}
  198. if ($("input[name='assessment61']:checked").length > 0){
  199.      var assessment6 = $("input[name='assessment61']:checked").val();  
  200.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  201.   document.getElementById("assessment61").focus();return false;}
  202. if ($("input[name='assessment71']:checked").length > 0){
  203.      var assessment7 = $("input[name='assessment71']:checked").val();  
  204.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  205.    document.getElementById("assessment71").focus();return false;}
  206. if ($("input[name='assessment81']:checked").length > 0){
  207.     var assessment8 = $("input[name='assessment81']:checked").val();  
  208.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  209.   document.getElementById("assessment81").focus();return false;}
  210. if ($("input[name='assessment91']:checked").length > 0){
  211.     var assessment9 = $("input[name='assessment91']:checked").val();  
  212.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  213.    document.getElementById("assessment91").focus();return false;}
  214. if ($("input[name='assessment101']:checked").length > 0){
  215.     var assessment10 = $("input[name='assessment101']:checked").val();  
  216.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  217.    document.getElementById("assessment101").focus();return false;}
  218. if ($("input[name='assessment111']:checked").length > 0){
  219.     var assessment11 = $("input[name='assessment111']:checked").val();  
  220.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  221.    document.getElementById("assessment111").focus();return false;}
  222. if ($("input[name='assessment121']:checked").length > 0){
  223.    var assessment12 = $("input[name='assessment121']:checked").val();  
  224.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  225.    document.getElementById("assessment121").focus();return false;}
  226. if ($("input[name='assessment131']:checked").length > 0){
  227.     var assessment13 = $("input[name='assessment131']:checked").val();  
  228.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  229.   document.getElementById("assessment131").focus();return false;}
  230. if ($("input[name='assessment141']:checked").length > 0){
  231.      var assessment14 = $("input[name='assessment141']:checked").val();  
  232.     }else{   if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  233.        else {alert("Please answer the fourteenth question");}
  234.    document.getElementById("assessment141").focus();return false;}
  235. if ($("input[name='assessment151']:checked").length > 0){
  236.     var assessment15 = $("input[name='assessment151']:checked").val();  
  237.     }else{
  238.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");}       else {alert("Please answer the fifteenth question");
  239.     }
  240.    document.getElementById("assessment151").focus();return false;}
  241. if ($("input[name='assessment161']:checked").length > 0){
  242.     var assessment16 = $("input[name='assessment161']:checked").val();  
  243.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  244.    document.getElementById("assessment161").focus();return false;}
  245. if ($("input[name='assessment171']:checked").length > 0){
  246.     var assessment17 = $("input[name='assessment171']:checked").val();  
  247.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  248.    document.getElementById("assessment171").focus();return false;}
  249.  
  250.          var positiveSide18 = $('#positiveSide181').val();
  251.          var positiveSide19 = $('#positiveSide191').val();
  252.          var positiveSide20 = $('#positiveSide201').val();
  253.          var negativeSide18 = $('#negativeSide181').val();
  254.          var negativeSide19 = $('#negativeSide191').val();
  255.          var negativeSide20 = $('#negativeSide201').val();  
  256. }      
  257.  
  258. if (k==2){
  259. if ($("input[name=assessment12]:checked").length > 0){
  260.    var assessment1 = $("input[name=assessment12]:checked").val();  
  261.    }else{
  262.       if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}
  263.        else {alert("Please answer the first question");}
  264.    document.getElementById("assessment12").focus();return false;}
  265. if ($("input[name='assessment22']:checked").length > 0){
  266.    var assessment2 = $("input[name='assessment22']:checked").val();  
  267.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  268.       document.getElementById("assessment12").focus();return false;}
  269. if ($("input[name='assessment32']:checked").length > 0){
  270.    var assessment3 = $("input[name='assessment32']:checked").val();  
  271.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  272.       document.getElementById("assessment12").focus();return false;}
  273. if ($("input[name='assessment42']:checked").length > 0){
  274.   var assessment4 = $("input[name='assessment42']:checked").val();  
  275.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  276.       document.getElementById("assessment12").focus();return false;}
  277. if ($("input[name='assessment52']:checked").length > 0){
  278.     var assessment5 = $("input[name='assessment52']:checked").val();  
  279.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  280.         document.getElementById("assessment12").focus();return false;}
  281. if ($("input[name='assessment62']:checked").length > 0){
  282.      var assessment6 = $("input[name='assessment62']:checked").val();  
  283.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  284.         document.getElementById("assessment12").focus();return false;}
  285. if ($("input[name='assessment72']:checked").length > 0){
  286.      var assessment7 = $("input[name='assessment72']:checked").val();  
  287.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  288.          document.getElementById("assessment12").focus();return false;}
  289. if ($("input[name='assessment82']:checked").length > 0){
  290.     var assessment8 = $("input[name='assessment82']:checked").val();  
  291.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  292.         document.getElementById("assessment12").focus();return false;}
  293. if ($("input[name='assessment92']:checked").length > 0){
  294.     var assessment9 = $("input[name='assessment92']:checked").val();  
  295.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  296.         document.getElementById("assessment12").focus();return false;}
  297. if ($("input[name='assessment102']:checked").length > 0){
  298.     var assessment10 = $("input[name='assessment102']:checked").val();  
  299.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  300.         document.getElementById("assessment12").focus();return false;}
  301. if ($("input[name='assessment112']:checked").length > 0){
  302.     var assessment11 = $("input[name='assessment112']:checked").val();  
  303.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  304.         document.getElementById("assessment12").focus();return false;}
  305. if ($("input[name='assessment122']:checked").length > 0){
  306.    var assessment12 = $("input[name='assessment122']:checked").val();  
  307.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  308.        document.getElementById("assessment12").focus();return false;}
  309. if ($("input[name='assessment132']:checked").length > 0){
  310.     var assessment13 = $("input[name='assessment132']:checked").val();  
  311.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  312.        document.getElementById("assessment12").focus();return false;}
  313. if ($("input[name='assessment142']:checked").length > 0){
  314.      var assessment14 = $("input[name='assessment142']:checked").val();  
  315.     }else{   if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  316.        else {alert("Please answer the fourteenth question");}
  317.         document.getElementById("assessment12").focus();return false;}
  318. if ($("input[name='assessment152']:checked").length > 0){
  319.     var assessment15 = $("input[name='assessment152']:checked").val();  
  320.     }else{  if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");}
  321.        else {alert("Please answer the fifteenth question");
  322.      
  323.     }
  324.         document.getElementById("assessment12").focus();return false;}
  325. if ($("input[name='assessment162']:checked").length > 0){
  326.     var assessment16 = $("input[name='assessment162']:checked").val();  
  327.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  328.         document.getElementById("assessment12").focus();return false;}
  329. if ($("input[name='assessment172']:checked").length > 0){
  330.     var assessment17 = $("input[name='assessment172']:checked").val();  
  331.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  332.         document.getElementById("assessment12").focus();return false;}
  333.  
  334.          var positiveSide18 = $('#positiveSide182').val();
  335.          var positiveSide19 = $('#positiveSide192').val();
  336.          var positiveSide20 = $('#positiveSide202').val();
  337.          var negativeSide18 = $('#negativeSide182').val();
  338.          var negativeSide19 = $('#negativeSide192').val();
  339.          var negativeSide20 = $('#negativeSide202').val();  
  340. }      
  341.  
  342. if (k==3){
  343. if ($("input[name=assessment13]:checked").length > 0){
  344.    var assessment1 = $("input[name=assessment13]:checked").val();  
  345.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}
  346.        else {alert("Please answer the first question");}
  347.        document.getElementById("assessment13").focus();return false;}
  348. if ($("input[name='assessment23']:checked").length > 0){
  349.    var assessment2 = $("input[name='assessment23']:checked").val();  
  350.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  351.         document.getElementById("assessment23").focus();return false;}
  352. if ($("input[name='assessment33']:checked").length > 0){
  353.    var assessment3 = $("input[name='assessment33']:checked").val();  
  354.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  355.         document.getElementById("assessment33").focus();return false;}
  356. if ($("input[name='assessment43']:checked").length > 0){
  357.   var assessment4 = $("input[name='assessment43']:checked").val();  
  358.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  359.         document.getElementById("assessment43").focus();return false;}
  360. if ($("input[name='assessment53']:checked").length > 0){
  361.     var assessment5 = $("input[name='assessment53']:checked").val();  
  362.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  363.           document.getElementById("assessment53").focus();return false;}
  364. if ($("input[name='assessment63']:checked").length > 0){
  365.      var assessment6 = $("input[name='assessment63']:checked").val();  
  366.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  367.           document.getElementById("assessment63").focus();return false;}
  368. if ($("input[name='assessment73']:checked").length > 0){
  369.      var assessment7 = $("input[name='assessment73']:checked").val();  
  370.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  371.            document.getElementById("assessment73").focus();return false;}
  372. if ($("input[name='assessment83']:checked").length > 0){
  373.     var assessment8 = $("input[name='assessment83']:checked").val();  
  374.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  375.           document.getElementById("assessment83").focus();return false;}
  376. if ($("input[name='assessment93']:checked").length > 0){
  377.     var assessment9 = $("input[name='assessment93']:checked").val();  
  378.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  379.           document.getElementById("assessment93").focus();return false;}
  380. if ($("input[name='assessment103']:checked").length > 0){
  381.     var assessment10 = $("input[name='assessment103']:checked").val();  
  382.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  383.           document.getElementById("assessment103").focus();return false;}
  384. if ($("input[name='assessment113']:checked").length > 0){
  385.     var assessment11 = $("input[name='assessment113']:checked").val();  
  386.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  387.           document.getElementById("assessment113").focus();return false;}
  388. if ($("input[name='assessment123']:checked").length > 0){
  389.    var assessment12 = $("input[name='assessment123']:checked").val();  
  390.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  391.          document.getElementById("assessment123").focus();return false;}
  392. if ($("input[name='assessment133']:checked").length > 0){
  393.     var assessment13 = $("input[name='assessment133']:checked").val();  
  394.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  395.          document.getElementById("assessment133").focus();return false;}
  396. if ($("input[name='assessment143']:checked").length > 0){
  397.      var assessment14 = $("input[name='assessment143']:checked").val();  
  398.     }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  399.        else {alert("Please answer the fourteenth question"); }
  400.        
  401.           document.getElementById("assessment143").focus();return false;}
  402. if ($("input[name='assessment153']:checked").length > 0){
  403.     var assessment15 = $("input[name='assessment153']:checked").val();  
  404.     }else{
  405.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");
  406.     }
  407.       else {alert("Please answer the fifteenth question");
  408.     }
  409.          document.getElementById("assessment153").focus();return false;}
  410. if ($("input[name='assessment163']:checked").length > 0){
  411.     var assessment16 = $("input[name='assessment163']:checked").val();  
  412.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  413.           document.getElementById("assessment163").focus();return false;}
  414. if ($("input[name='assessment173']:checked").length > 0){
  415.     var assessment17 = $("input[name='assessment173']:checked").val();  
  416.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  417.           document.getElementById("assessment173").focus();return false;}
  418.  
  419.          var positiveSide18 = $('#positiveSide183').val();
  420.          var positiveSide19 = $('#positiveSide193').val();
  421.          var positiveSide20 = $('#positiveSide203').val();
  422.          var negativeSide18 = $('#negativeSide183').val();
  423.          var negativeSide19 = $('#negativeSide193').val();
  424.          var negativeSide20 = $('#negativeSide203').val();  
  425. }      
  426.  
  427. if (k==4){
  428. if ($("input[name=assessment14]:checked").length > 0){
  429.    var assessment1 = $("input[name=assessment14]:checked").val();  
  430.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}       else {alert("Please answer the first question");}
  431.          document.getElementById("assessment14").focus();return false;}
  432. if ($("input[name='assessment24']:checked").length > 0){
  433.    var assessment2 = $("input[name='assessment24']:checked").val();  
  434.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  435.      document.getElementById("assessment24").focus();return false;}
  436. if ($("input[name='assessment34']:checked").length > 0){
  437.    var assessment3 = $("input[name='assessment34']:checked").val();  
  438.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  439.         document.getElementById("assessment34").focus();return false;}
  440. if ($("input[name='assessment44']:checked").length > 0){
  441.   var assessment4 = $("input[name='assessment44']:checked").val();  
  442.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  443.         document.getElementById("assessment44").focus();return false;}
  444. if ($("input[name='assessment54']:checked").length > 0){
  445.     var assessment5 = $("input[name='assessment54']:checked").val();  
  446.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  447.           document.getElementById("assessment54").focus();return false;}
  448. if ($("input[name='assessment64']:checked").length > 0){
  449.      var assessment6 = $("input[name='assessment64']:checked").val();  
  450.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  451.           document.getElementById("assessment64").focus();return false;}
  452. if ($("input[name='assessment74']:checked").length > 0){
  453.      var assessment7 = $("input[name='assessment74']:checked").val();  
  454.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  455.            document.getElementById("assessment74").focus();return false;}
  456. if ($("input[name='assessment84']:checked").length > 0){
  457.     var assessment8 = $("input[name='assessment84']:checked").val();  
  458.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  459.           document.getElementById("assessment84").focus();return false;}
  460. if ($("input[name='assessment94']:checked").length > 0){
  461.     var assessment9 = $("input[name='assessment94']:checked").val();  
  462.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  463.           document.getElementById("assessment94").focus();return false;}
  464. if ($("input[name='assessment104']:checked").length > 0){
  465.     var assessment10 = $("input[name='assessment104']:checked").val();  
  466.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  467.           document.getElementById("assessment104").focus();return false;}
  468. if ($("input[name='assessment114']:checked").length > 0){
  469.     var assessment11 = $("input[name='assessment114']:checked").val();  
  470.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  471.           document.getElementById("assessment114").focus();return false;}
  472. if ($("input[name='assessment124']:checked").length > 0){
  473.    var assessment12 = $("input[name='assessment124']:checked").val();  
  474.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  475.          document.getElementById("assessment124").focus();return false;}
  476. if ($("input[name='assessment134']:checked").length > 0){
  477.     var assessment13 = $("input[name='assessment134']:checked").val();  
  478.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  479.          document.getElementById("assessment134").focus();return false;}
  480. if ($("input[name='assessment144']:checked").length > 0){
  481.      var assessment14 = $("input[name='assessment144']:checked").val();  
  482.     }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  483.        else {alert("Please answer the fourteenth question"); }
  484.           document.getElementById("assessment144").focus();return false;}
  485. if ($("input[name='assessment154']:checked").length > 0){
  486.     var assessment15 = $("input[name='assessment154']:checked").val();  
  487.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");}
  488.        else {alert("Please answer the fifteenth question"); }
  489.        
  490.           document.getElementById("assessment154").focus();return false;}
  491. if ($("input[name='assessment164']:checked").length > 0){
  492.     var assessment16 = $("input[name='assessment164']:checked").val();  
  493.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  494.  document.getElementById("assessment164").focus();return false;}
  495. if ($("input[name='assessment174']:checked").length > 0){
  496.     var assessment17 = $("input[name='assessment174']:checked").val();  
  497.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  498.     document.getElementById("assessment174").focus();return false;}
  499.  
  500.          var positiveSide18 = $('#positiveSide184').val();
  501.          var positiveSide19 = $('#positiveSide194').val();
  502.          var positiveSide20 = $('#positiveSide204').val();
  503.          var negativeSide18 = $('#negativeSide184').val();
  504.          var negativeSide19 = $('#negativeSide194').val();
  505.          var negativeSide20 = $('#negativeSide204').val();  
  506. }
  507. if (k==5){
  508. if ($("input[name=assessment15]:checked").length > 0){
  509.    var assessment1 = $("input[name=assessment15]:checked").val();  
  510.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}       else {alert("Please answer the first question");}
  511.      document.getElementById("assessment15").focus();return false;}
  512. if ($("input[name='assessment25']:checked").length > 0){
  513.    var assessment2 = $("input[name='assessment25']:checked").val();  
  514.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  515.    document.getElementById("assessment25").focus();return false;}
  516. if ($("input[name='assessment35']:checked").length > 0){
  517.    var assessment3 = $("input[name='assessment35']:checked").val();  
  518.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  519.   document.getElementById("assessment35").focus();return false;}
  520. if ($("input[name='assessment45']:checked").length > 0){
  521.   var assessment4 = $("input[name='assessment45']:checked").val();  
  522.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  523.       document.getElementById("assessment45").focus();return false;}
  524. if ($("input[name='assessment55']:checked").length > 0){
  525.     var assessment5 = $("input[name='assessment55']:checked").val();  
  526.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  527.     document.getElementById("assessment55").focus();return false;}
  528. if ($("input[name='assessment65']:checked").length > 0){
  529.      var assessment6 = $("input[name='assessment65']:checked").val();  
  530.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  531.     document.getElementById("assessment65").focus();return false;}
  532. if ($("input[name='assessment75']:checked").length > 0){
  533.      var assessment7 = $("input[name='assessment75']:checked").val();  
  534.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  535.      document.getElementById("assessment75").focus();return false;}
  536. if ($("input[name='assessment85']:checked").length > 0){
  537.     var assessment8 = $("input[name='assessment85']:checked").val();  
  538.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  539.     document.getElementById("assessment85").focus();return false;}
  540. if ($("input[name='assessment95']:checked").length > 0){
  541.     var assessment9 = $("input[name='assessment95']:checked").val();  
  542.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  543.     document.getElementById("assessment95").focus();return false;}
  544. if ($("input[name='assessment105']:checked").length > 0){
  545.     var assessment10 = $("input[name='assessment105']:checked").val();  
  546.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  547.     document.getElementById("assessment105").focus();return false;}
  548. if ($("input[name='assessment115']:checked").length > 0){
  549.     var assessment11 = $("input[name='assessment115']:checked").val();  
  550.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  551.     document.getElementById("assessment115").focus();return false;}
  552. if ($("input[name='assessment125']:checked").length > 0){
  553.    var assessment12 = $("input[name='assessment125']:checked").val();  
  554.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  555.    document.getElementById("assessment125").focus();return false;}
  556. if ($("input[name='assessment135']:checked").length > 0){
  557.     var assessment13 = $("input[name='assessment135']:checked").val();  
  558.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  559.    document.getElementById("assessment135").focus();return false;}
  560. if ($("input[name='assessment145']:checked").length > 0){
  561.      var assessment14 = $("input[name='assessment145']:checked").val();  
  562.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  563.        else {alert("Please answer the fourteenth question"); }
  564.        
  565.     document.getElementById("assessment145").focus();return false;}
  566. if ($("input[name='assessment155']:checked").length > 0){
  567.     var assessment15 = $("input[name='assessment155']:checked").val();  
  568.     }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");
  569.     }       else {alert("Please answer the fifteenth question");}
  570.    document.getElementById("assessment155").focus();return false;}
  571. if ($("input[name='assessment165']:checked").length > 0){
  572.     var assessment16 = $("input[name='assessment165']:checked").val();  
  573.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  574.    document.getElementById("assessment165").focus();return false;}
  575. if ($("input[name='assessment175']:checked").length > 0){
  576.     var assessment17 = $("input[name='assessment175']:checked").val();  
  577.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  578.     document.getElementById("assessment175").focus();return false;}
  579.  
  580.          var positiveSide18 = $('#positiveSide185').val();
  581.          var positiveSide19 = $('#positiveSide195').val();
  582.          var positiveSide20 = $('#positiveSide205').val();
  583.          var negativeSide18 = $('#negativeSide185').val();
  584.          var negativeSide19 = $('#negativeSide195').val();
  585.          var negativeSide20 = $('#negativeSide205').val();  
  586. }      
  587.  
  588. if (k==6){
  589. if ($("input[name=assessment16]:checked").length > 0){
  590.    var assessment1 = $("input[name=assessment16]:checked").val();  
  591.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}       else {alert("Please answer the first question");}
  592.    document.getElementById("assessment16").focus();return false;}
  593. if ($("input[name='assessment26']:checked").length > 0){
  594.    var assessment2 = $("input[name='assessment26']:checked").val();  
  595.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  596.    document.getElementById("assessment26").focus();return false;}
  597. if ($("input[name='assessment36']:checked").length > 0){
  598.    var assessment3 = $("input[name='assessment36']:checked").val();  
  599.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  600.    document.getElementById("assessment36").focus();return false;}
  601. if ($("input[name='assessment46']:checked").length > 0){
  602.   var assessment4 = $("input[name='assessment46']:checked").val();  
  603.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  604.     document.getElementById("assessment46").focus();return false;}
  605. if ($("input[name='assessment56']:checked").length > 0){
  606.     var assessment5 = $("input[name='assessment56']:checked").val();  
  607.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  608.      document.getElementById("assessment56").focus();return false;}
  609. if ($("input[name='assessment66']:checked").length > 0){
  610.      var assessment6 = $("input[name='assessment66']:checked").val();  
  611.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  612.      document.getElementById("assessment66").focus();return false;}
  613. if ($("input[name='assessment76']:checked").length > 0){
  614.      var assessment7 = $("input[name='assessment76']:checked").val();  
  615.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  616.      document.getElementById("assessment76").focus();return false;}
  617. if ($("input[name='assessment86']:checked").length > 0){
  618.     var assessment8 = $("input[name='assessment86']:checked").val();  
  619.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  620.      document.getElementById("assessment86").focus();return false;}
  621. if ($("input[name='assessment96']:checked").length > 0){
  622.     var assessment9 = $("input[name='assessment96']:checked").val();  
  623.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  624.      document.getElementById("assessment96").focus();return false;}
  625. if ($("input[name='assessment106']:checked").length > 0){
  626.     var assessment10 = $("input[name='assessment106']:checked").val();  
  627.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  628.      document.getElementById("assessment106").focus();return false;}
  629. if ($("input[name='assessment116']:checked").length > 0){
  630.     var assessment11 = $("input[name='assessment116']:checked").val();  
  631.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  632.      document.getElementById("assessment116").focus();return false;}
  633. if ($("input[name='assessment126']:checked").length > 0){
  634.    var assessment12 = $("input[name='assessment126']:checked").val();  
  635.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  636.     document.getElementById("assessment126").focus();return false;}
  637. if ($("input[name='assessment136']:checked").length > 0){
  638.     var assessment13 = $("input[name='assessment136']:checked").val();  
  639.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  640.     document.getElementById("assessment136").focus();return false;}
  641. if ($("input[name='assessment146']:checked").length > 0){
  642.      var assessment14 = $("input[name='assessment146']:checked").val();  
  643.     }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  644.        else {alert("Please answer the fourteenth question"); }
  645.  
  646.      document.getElementById("assessment146").focus();return false;}
  647. if ($("input[name='assessment156']:checked").length > 0){
  648.     var assessment15 = $("input[name='assessment156']:checked").val();  
  649.     }else{        
  650.   if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");
  651.     }       else {alert("Please answer the fifteenth question");}
  652.      document.getElementById("assessment156").focus();return false;}
  653. if ($("input[name='assessment166']:checked").length > 0){
  654.     var assessment16 = $("input[name='assessment166']:checked").val();  
  655.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  656.      document.getElementById("assessment166").focus();return false;}
  657. if ($("input[name='assessment176']:checked").length > 0){
  658.     var assessment17 = $("input[name='assessment176']:checked").val();  
  659.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  660.      document.getElementById("assessment176").focus();return false;}
  661.  
  662.          var positiveSide18 = $('#positiveSide186').val();
  663.          var positiveSide19 = $('#positiveSide196').val();
  664.          var positiveSide20 = $('#positiveSide206').val();
  665.          var negativeSide18 = $('#negativeSide186').val();
  666.          var negativeSide19 = $('#negativeSide196').val();
  667.          var negativeSide20 = $('#negativeSide206').val();  
  668. }      
  669. if (k==7){
  670. if ($("input[name=assessment17]:checked").length > 0){
  671.    var assessment1 = $("input[name=assessment17]:checked").val();  
  672.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}       else {alert("Please answer the first question");}
  673.   document.getElementById("assessment17").focus();return false;}
  674. if ($("input[name='assessment27']:checked").length > 0){
  675.    var assessment2 = $("input[name='assessment27']:checked").val();  
  676.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  677.     document.getElementById("assessment27").focus();return false;}
  678. if ($("input[name='assessment37']:checked").length > 0){
  679.    var assessment3 = $("input[name='assessment37']:checked").val();  
  680.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  681.  document.getElementById("assessment37").focus();return false;}
  682. if ($("input[name='assessment47']:checked").length > 0){
  683.   var assessment4 = $("input[name='assessment47']:checked").val();  
  684.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  685.     document.getElementById("assessment47").focus();return false;}
  686. if ($("input[name='assessment57']:checked").length > 0){
  687.     var assessment5 = $("input[name='assessment57']:checked").val();  
  688.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  689.      document.getElementById("assessment57").focus();return false;}
  690. if ($("input[name='assessment67']:checked").length > 0){
  691.      var assessment6 = $("input[name='assessment67']:checked").val();  
  692.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  693.      document.getElementById("assessment67").focus();return false;}
  694. if ($("input[name='assessment77']:checked").length > 0){
  695.      var assessment7 = $("input[name='assessment77']:checked").val();  
  696.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  697.        document.getElementById("assessment77").focus();return false;}
  698. if ($("input[name='assessment87']:checked").length > 0){
  699.     var assessment8 = $("input[name='assessment87']:checked").val();  
  700.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  701.       document.getElementById("assessment87").focus();return false;}
  702. if ($("input[name='assessment97']:checked").length > 0){
  703.     var assessment9 = $("input[name='assessment97']:checked").val();  
  704.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  705.       document.getElementById("assessment97").focus();return false;}
  706. if ($("input[name='assessment107']:checked").length > 0){
  707.     var assessment10 = $("input[name='assessment107']:checked").val();  
  708.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  709.       document.getElementById("assessment107").focus();return false;}
  710. if ($("input[name='assessment117']:checked").length > 0){
  711.     var assessment11 = $("input[name='assessment117']:checked").val();  
  712.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  713.       document.getElementById("assessment117").focus();return false;}
  714. if ($("input[name='assessment127']:checked").length > 0){
  715.    var assessment12 = $("input[name='assessment127']:checked").val();  
  716.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  717.      document.getElementById("assessment127").focus();return false;}
  718. if ($("input[name='assessment137']:checked").length > 0){
  719.     var assessment13 = $("input[name='assessment137']:checked").val();  
  720.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  721.      document.getElementById("assessment137").focus();return false;}
  722. if ($("input[name='assessment147']:checked").length > 0){
  723.      var assessment14 = $("input[name='assessment147']:checked").val();  
  724.     }else{  if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  725.        else {alert("Please answer the fourteenth question"); }          
  726.      document.getElementById("assessment147").focus();return false;}
  727. if ($("input[name='assessment157']:checked").length > 0){
  728.     var assessment15 = $("input[name='assessment157']:checked").val();  
  729.     }else{ if (ucx==0){  alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");
  730.     }      else {alert("Please answer the fifteenth question");}
  731.       document.getElementById("assessment157").focus();return false;}
  732. if ($("input[name='assessment167']:checked").length > 0){
  733.     var assessment16 = $("input[name='assessment167']:checked").val();  
  734.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  735.       document.getElementById("assessment167").focus();return false;}
  736. if ($("input[name='assessment177']:checked").length > 0){
  737.     var assessment17 = $("input[name='assessment177']:checked").val();  
  738.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  739.       document.getElementById("assessment177").focus();return false;}
  740.  
  741.          var positiveSide18 = $('#positiveSide187').val();
  742.          var positiveSide19 = $('#positiveSide197').val();
  743.          var positiveSide20 = $('#positiveSide207').val();
  744.          var negativeSide18 = $('#negativeSide187').val();
  745.          var negativeSide19 = $('#negativeSide197').val();
  746.          var negativeSide20 = $('#negativeSide207').val();  
  747. }
  748.  
  749. if (k==8){
  750. if ($("input[name=assessment18]:checked").length > 0){
  751.    var assessment1 = $("input[name=assessment18]:checked").val();  
  752.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ პირველი შეკითხვას");}  
  753.        else {alert("Please answer the first question");}
  754.      document.getElementById("assessment18").focus();return false;}
  755. if ($("input[name='assessment28']:checked").length > 0){
  756.    var assessment2 = $("input[name='assessment28']:checked").val();  
  757.   }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეორე შეკითხვას");}       else {alert("Please answer the second question");}
  758.     document.getElementById("assessment28").focus();return false;}
  759. if ($("input[name='assessment38']:checked").length > 0){
  760.    var assessment3 = $("input[name='assessment38']:checked").val();  
  761.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მესამე შეკითხვას");}       else {alert("Please answer the third question");}
  762.     document.getElementById("assessment38").focus();return false;}
  763. if ($("input[name='assessment48']:checked").length > 0){
  764.   var assessment4 = $("input[name='assessment48']:checked").val();  
  765.   }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეოთხე შეკითხვას");}       else {alert("Please answer the fourth question");}
  766.     document.getElementById("assessment48").focus();return false;}
  767. if ($("input[name='assessment58']:checked").length > 0){
  768.     var assessment5 = $("input[name='assessment58']:checked").val();  
  769.     }else { if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეხუთე შეკითხვას");}       else {alert("Please answer the fifth question");}
  770.       document.getElementById("assessment58").focus();return false;}
  771. if ($("input[name='assessment68']:checked").length > 0){
  772.      var assessment6 = $("input[name='assessment68']:checked").val();  
  773.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეექვსე შეკითხვას");}       else {alert("Please answer the sixth question");}
  774.       document.getElementById("assessment68").focus();return false;}
  775. if ($("input[name='assessment78']:checked").length > 0){
  776.      var assessment7 = $("input[name='assessment78']:checked").val();  
  777.      }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეშვიდე შეკითხვას");}       else {alert("Please answer the seventh question");}
  778.        document.getElementById("assessment78").focus();return false;}
  779. if ($("input[name='assessment88']:checked").length > 0){
  780.     var assessment8 = $("input[name='assessment88']:checked").val();  
  781.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მერვე შეკითხვას");}       else {alert("Please answer the eighth question");}
  782.      document.getElementById("assessment88").focus();return false;}
  783. if ($("input[name='assessment98']:checked").length > 0){
  784.     var assessment9 = $("input[name='assessment98']:checked").val();  
  785.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცხრე შეკითხვას");}       else {alert("Please answer the ninth question");}
  786.       document.getElementById("assessment98").focus();return false;}
  787. if ($("input[name='assessment108']:checked").length > 0){
  788.     var assessment10 = $("input[name='assessment108']:checked").val();  
  789.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეათე შეკითხვას");}       else {alert("Please answer the tenth question");}
  790.       document.getElementById("assessment108").focus();return false;}
  791. if ($("input[name='assessment118']:checked").length > 0){
  792.     var assessment11 = $("input[name='assessment118']:checked").val();  
  793.     }else{    if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთერთმეტე შეკითხვას");}       else {alert("Please answer the eleventh question");}
  794.      document.getElementById("assessment118").focus();return false;}
  795. if ($("input[name='assessment128']:checked").length > 0){
  796.    var assessment12 = $("input[name='assessment128']:checked").val();  
  797.    }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთორმეტე შეკითხვას");}       else {alert("Please answer the twelfth question");}
  798.      document.getElementById("assessment128").focus();return false;}
  799. if ($("input[name='assessment138']:checked").length > 0){
  800.     var assessment13 = $("input[name='assessment138']:checked").val();  
  801.    }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეცამეტე შეკითხვას");}       else {alert("Please answer the thertinth question");}
  802.      document.getElementById("assessment138").focus();return false;}
  803. if ($("input[name='assessment148']:checked").length > 0){
  804.      var assessment14 = $("input[name='assessment148']:checked").val();  
  805.     }else{
  806.         if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთოთხმეტე შეკითხვას");}
  807.        else {alert("Please answer the fourteenth question"); }
  808.    
  809.       document.getElementById("assessment148").focus();return false;}
  810. if ($("input[name='assessment158']:checked").length > 0){
  811.     var assessment15 = $("input[name='assessment158']:checked").val();  
  812.     }else{ if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთხუთმეტე შეკითხვას");
  813.     }       else {alert("Please answer the fifteenth question");}
  814.    
  815.       document.getElementById("assessment158").focus();return false;}
  816. if ($("input[name='assessment168']:checked").length > 0){
  817.     var assessment16 = $("input[name='assessment168']:checked").val();  
  818.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეთექვსმეტე შეკითხვას");}       else {alert("Please answer the sixteenth question");}
  819.       document.getElementById("assessment168").focus();return false;}
  820. if ($("input[name='assessment178']:checked").length > 0){
  821.     var assessment17 = $("input[name='assessment178']:checked").val();  
  822.     }else{if (ucx==0) {alert("გთხოვთ, უპასუხოთ მეჩვიდმეტე შეკითხვას");}       else {alert("Please answer the seventeenth question");}
  823.       document.getElementById("assessment178").focus();return false;}
  824.  
  825.          var positiveSide18 = $('#positiveSide188').val();
  826.          var positiveSide19 = $('#positiveSide198').val();
  827.          var positiveSide20 = $('#positiveSide208').val();
  828.          var negativeSide18 = $('#negativeSide188').val();
  829.          var negativeSide19 = $('#negativeSide198').val();
  830.          var negativeSide20 = $('#negativeSide208').val();  
  831. }      
  832.        
  833.         var action = "Edit";
  834.          var datas="action="+action+"&assessment1="+assessment1+"&assessment2="+assessment2  +"&assessment3="+assessment3+"&assessment4="+assessment4+"&assessment5="+assessment5+"&assessment6="+assessment6+"&assessment7="+assessment7+"&assessment8="+assessment8+"&assessment9="+assessment9+"&assessment10="+assessment10+"&assessment11="+assessment11+"&assessment12="+assessment12+"&assessment13="+assessment13+"&assessment14="+assessment14+"&assessment15="+assessment15+"&assessment16="+assessment16+"&assessment17="+assessment17+"&positiveSide18="+positiveSide18+"&positiveSide19="+positiveSide19+"&positiveSide20="+positiveSide20+"&negativeSide18="+negativeSide18+"&negativeSide19="+negativeSide19+"&negativeSide20="+negativeSide20;
  835.  
  836.         $.ajax({
  837.         type: "POST",
  838.         url:  "../../controllers/students/C_LectureAssesment.php?cxr_id="+cxr_id,
  839.         data: datas
  840.          }).done(function(data){
  841.        if (ucx==0) {alert("ინფორმაცია შეინახა");}else {alert("Information saved");}
  842.      
  843.         window.location.reload(false);  
  844.  
  845. });
  846.  
  847.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top