1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- var flashVar = 1;
- var lcId = new Date().getTime();
- function validateFlashVar(counter, lang_1, lang_2)
- {
- return true;
-
-
- if(counter != flashVar)
- {
- alert(lang_1 + counter + lang_2);
- return false;
- }
- else
- {
- return true;
- }
- }
- function updateFlashVar()
- {
-
- flashVar++;
- }
- function saveHotspot(question_id, hotspot_id, answer, hotspot_x, hotspot_y)
- {
- newHotspot = document.createElement("input");
- newHotspot.type = "hidden";
- newHotspot.name = "hotspot["+question_id+"]["+hotspot_id+"]";
- newHotspot.value = hotspot_x + ";" + hotspot_y;
- document.frm_exercise.appendChild(newHotspot);
- newHotspot = document.createElement("input");
- newHotspot.type = "hidden";
- newHotspot.name = "choice["+question_id+"]["+hotspot_id+"]";
- newHotspot.value = answer;
- document.frm_exercise.appendChild(newHotspot);
- }
- function saveDelineationUserAnswer(question_id, hotspot_id, answer, coordinates)
- {
- newHotspot = document.createElement("input");
- newHotspot.type = "hidden";
- newHotspot.name = "hotspot["+question_id+"]["+hotspot_id+"]";
- newHotspot.value = coordinates;
- document.frm_exercise.appendChild(newHotspot);
- newHotspot = document.createElement("input");
- newHotspot.type = "hidden";
- newHotspot.name = "choice["+question_id+"]["+hotspot_id+"]";
- newHotspot.value = answer;
- document.frm_exercise.appendChild(newHotspot);
- }
- function saveShapeHotspot(question_id, hotspot_id, type, x, y, w, h)
- {
- document.frm_exercise["hotspot_coordinates["+hotspot_id+"]"].value = x + ";" + y + "|" + w + "|" + h;
- document.frm_exercise["hotspot_type["+hotspot_id+"]"].value = type;
- }
- function savePolyHotspot(question_id, hotspot_id, coordinates)
- {
- document.frm_exercise["hotspot_coordinates["+hotspot_id+"]"].value = coordinates;
- document.frm_exercise["hotspot_type["+hotspot_id+"]"].value = "poly";
- }
- function saveDelineationHotspot(question_id, hotspot_id, coordinates)
- {
- document.frm_exercise["hotspot_coordinates["+hotspot_id+"]"].value = coordinates;
- document.frm_exercise["hotspot_type["+hotspot_id+"]"].value = "delineation";
- }
- function jsdebug(debug_string)
- {
- alert(debug_string);
- }
|