<tr><td height=25 class="question" valign=center>&nbsp;{questionRequire}<span class="textEdit" id="questionName_{questionID}">{questionName}</span>&nbsp;<span class=notes>{questionNotes}</span></td></tr>
<tr><td class="tips"><span class="textEdit" id="questionNotes_{questionID}">{questionTips}</span></td></tr>
<tr><td>
	  <table cellSpacing=0 cellPadding=0 width="100%">
	     <tr><td class="answer"><input type="text" readonly id="{optionID}" name="{optionID}" size="{length}" value="{value}"/>&nbsp;<input type="button" name="takePic{optionID}" id="takePic{optionID}" class=btn value="&nbsp;&nbsp;Photo&nbsp;&nbsp;" onClick="javascript:takePic_{optionID}('{optionID}');" style="display:{hiddenVarName_1}">&nbsp;<input type="button" class=btn name="takeViedo{optionID}" id="takeViedo{optionID}" value="&nbsp;&nbsp;Viedo&nbsp;&nbsp;" onClick="javascript:takeViedo_{optionID}('{optionID}');" style="display:{hiddenVarName_2}">&nbsp;<input type="button" class=btn name="takeAudio{optionID}" id="takeAudio{optionID}" value="&nbsp;&nbsp;Audio&nbsp;&nbsp;" onClick="javascript:takeAudio_{optionID}('{optionID}');" style="display:{hiddenVarName_3}"></td></tr>
		 <tr><td id="fsUploadProgress_{optionID}"></td></tr>
	   </table>
</td></tr>

<script type=text/javascript>
var path = rexseeStorage.getRoot() + "EnableQ";
var uploadFlag = '';
var uploadURL = "Android/FileUpload.php";
</script>

{fileUploadIncludeFile}

<script type=text/javascript>
function takePic_{optionID}(optionID){
	if ( !rexseeStorage.isReady() ) { alert("The SD card is not ready!"); rexseeApplication.quit(); }
	if ( !rexseeFile.exists(path) && !rexseeFile.newDir(path) ) { alert("Create a temporary storage folder fail!"); return false; }

	var txt = document.getElementById("{optionID}");
    txt.value = "";

	uploadFlag = optionID;
	rexseeCamera.takePicture(0,path+"/"+rexseeAlarm.getCurrentTime()+".jpg");
}
function takeViedo_{optionID}(optionID){
	if ( !rexseeStorage.isReady() ) { alert("The SD card is not ready!"); rexseeApplication.quit(); }
	if ( !rexseeFile.exists(path) && !rexseeFile.newDir(path) ) { alert("Create a temporary storage folder fail!"); return false; }

	var txt = document.getElementById("{optionID}");
    txt.value = "";

	uploadFlag = optionID;
	rexseeCamera.takeVideo(0);
}
function takeAudio_{optionID}(optionID){
 	if ( !rexseeStorage.isReady() ) { alert("The SD card is not ready!"); rexseeApplication.quit(); }
    if ( !rexseeFile.exists(path) && !rexseeFile.newDir(path) ) { alert("Create a temporary storage folder fail!"); return false; }

	var txt = document.getElementById("{optionID}");
    txt.value = "";
	
	uploadFlag = optionID;
	rexseeAudioRecorder.record();
}
</script>
