﻿// JScript File
function thisMovie(movieName) {
    var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName][1];
}
function showPause(id,questionText){    
          ScreenConvert();
          for(i=0;i<id.length;i++)
          {
            c = id.charAt(i);
            if(c == '/' || c == '.')
                id = id.replace(c,'_');
          }
          id = id.toLowerCase();
          questionText = questionText.substring(6,questionText.length - 7);
          var ShowDiv="<div style=\"padding:0px;\">"
            + "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">"
            +  "  <tr>"
            +  "      <td style=\"width:100%; height:20px; background-color:Green;color:white;\" align=\"center\">Prompt card</td>"
            +  "  </tr>"
            +  "  <tr>"
            +  "      <td align=\"center\" style=\"padding:15px 5px 15px 5px;height:120px;\">" + questionText + "</td>"
            +  "  </tr>"
            +  "  <tr>"
            +  "      <td align=\"center\" style=\"height:30px;\" valign=\"bottom\">"
            +  "      <input type=\"button\" value=\"Continue\" onclick=\"playmovie('" + id + "');DialogHide();\" />"
            +  "      <br><br></td>"
            +  "  </tr>"
            + "</table>  "
            + "</div>";  
          DialogShow(ShowDiv,450,230,400,200);
}
function playmovie(id) {
    thisMovie(id).reStart();
}
