if we use the full script tag iphone pull this out and it causes an error var javaScript = ajaxRequest.responseText.slice(scriptStart+7, scriptEnd); //alert(javaScript); eval(javaScript); } } if(callback){ //redirect(ajaxRequest.responseText); //alert("calling "+callback+" with "+output+""+ajaxRequest.responseText); callback(output, ajaxRequest.responseText); } else if(output != ""){ var ajaxDisplay = document.getElementById(output); if(!ajaxDisplay){ alert ("ajaxDisplay is NULL for "+output); } else{ ajaxDisplay.innerHTML = ajaxRequest.responseText; //alert("innerHTML => "+ajaxDisplay.innerHTML); //move user to specified anchor if(moveToAnchor == "TOP") window.scrollTo(0,1); else if (moveToAnchor !=""){ window.location.hash=moveToAnchor; //alert("Moving to Anchor "+moveToAnchor) } } } } if(reload != ""){ if(reload == "2" || reload == "full_reload") window.location.replace(location.pathname); else if(reload == "reload" || reload == "1") window.location.reload(); else window.location = reload; } } } if(url_params.length > 500){ ajaxRequest.open("POST", target, true); ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); ajaxRequest.send(url_params); }else{ ajaxRequest.open("GET", target+"?"+ url_params, true); ajaxRequest.send(null); } } function callBrandFunction(functionName, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; var url_params = "function=callBrandFunction&functionName="+functionName; if(reload) SendAjaxRequest(url_params, '', reload, '', returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', '', returnFunction, '', containsScript); } function callBrandFunction1(functionName, arg1, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); var url_params = "function=callBrandFunction1&functionName="+functionName+"&arg1="+arg1; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction2(functionName, arg1, arg2, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); var url_params = "function=callBrandFunction2&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction3(functionName, arg1, arg2, arg3, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); var url_params = "function=callBrandFunction3&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction4(functionName, arg1, arg2, arg3, arg4, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; returnFunction = typeof returnFunction !== 'undefined' ? returnFunction : ''; moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); var url_params = "function=callBrandFunction4&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction5(functionName, arg1, arg2, arg3, arg4, arg5, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); var url_params = "function=callBrandFunction5&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction6(functionName, arg1, arg2, arg3, arg4, arg5, arg6, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); var url_params = "function=callBrandFunction6&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction7(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; var url_params = "function=callBrandFunction7&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction8(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); var url_params = "function=callBrandFunction8&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8; if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction9(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : '1'; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); arg9 = encodeURIComponent(arg9); var url_params = "function=callBrandFunction9&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8+"&arg9="+arg9; //alert(url_params); if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction10(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); arg9 = encodeURIComponent(arg9); arg10 = encodeURIComponent(arg10); var url_params = "function=callBrandFunction10&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8+"&arg9="+arg9+"&arg10="+arg10; //alert(url_params); if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction11(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); arg9 = encodeURIComponent(arg9); arg10 = encodeURIComponent(arg10); arg11 = encodeURIComponent(arg11); var url_params = "function=callBrandFunction11&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8+"&arg9="+arg9+"&arg10="+arg10+"&arg11="+arg11; //alert(url_params); if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction12(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); arg9 = encodeURIComponent(arg9); arg10 = encodeURIComponent(arg10); arg11 = encodeURIComponent(arg11); arg12 = encodeURIComponent(arg12); var url_params = "function=callBrandFunction12&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8+"&arg9="+arg9+"&arg10="+arg10+"&arg11="+arg11+"&arg12="+arg12; //alert(url_params); if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction13(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); arg9 = encodeURIComponent(arg9); arg10 = encodeURIComponent(arg10); arg11 = encodeURIComponent(arg11); arg12 = encodeURIComponent(arg12); arg13 = encodeURIComponent(arg13); var url_params = "function=callBrandFunction13&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8+"&arg9="+arg9+"&arg10="+arg10+"&arg11="+arg11+"&arg12="+arg12+"&arg13="+arg13; //alert(url_params); if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } function callBrandFunction14(functionName, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13,arg14, updateDiv, reload, moveToAnchor, returnFunction, containsScript){ moveToAnchor = typeof moveToAnchor !== 'undefined' ? moveToAnchor : ''; containsScript = typeof containsScript !== 'undefined' ? containsScript : ''; arg1 = encodeURIComponent(arg1); arg2 = encodeURIComponent(arg2); arg3 = encodeURIComponent(arg3); arg4 = encodeURIComponent(arg4); arg5 = encodeURIComponent(arg5); arg6 = encodeURIComponent(arg6); arg7 = encodeURIComponent(arg7); arg8 = encodeURIComponent(arg8); arg9 = encodeURIComponent(arg9); arg10 = encodeURIComponent(arg10); arg11 = encodeURIComponent(arg11); arg12 = encodeURIComponent(arg12); arg13 = encodeURIComponent(arg13); arg13 = encodeURIComponent(arg14); var url_params = "function=callBrandFunction13&functionName="+functionName+"&arg1="+arg1+"&arg2="+arg2+"&arg3="+arg3+"&arg4="+arg4+"&arg5="+arg5+"&arg6="+arg6+"&arg7="+arg7+"&arg8="+arg8+"&arg9="+arg9+"&arg10="+arg10+"&arg11="+arg11+"&arg12="+arg12+"&arg13="+arg13+"&arg14="+arg14; alert(url_params); if(reload) SendAjaxRequest(url_params, '', reload, moveToAnchor, returnFunction, '', containsScript); else SendAjaxRequest(url_params, updateDiv, '', moveToAnchor, returnFunction, '', containsScript); } //callBrandFunction1("setScreenWidth", screen.width, "", ""); function insertValueAtCursor(name, myValue){ if(myValue == "0" || myValue == "") return; myField = document.getElementById(name); //IE support if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = myValue; } //MOZILLA/NETSCAPE support else if (myField.selectionStart || myField.selectionStart == '0') { var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0, startPos) + myValue + myField.value.substring(endPos, myField.value.length); } else { myField.value += myValue; } } function toggleVisibility(objName){ var obj = document.getElementById(objName); if(obj != null){ //hide last help item if(obj.style.display == "none") obj.style.display = "block"; else obj.style.display = "none"; } } function toggleTableRowVisibility(objName){ var obj = document.getElementById(objName); if(obj != null){ //hide last help item if(obj.style.display == "none") obj.style.display = "table-row"; else obj.style.display = "none"; } } var helpObj; function showHelp(fieldObj){ //alert(fieldObj.name); if(helpObj != null) //hide last help item helpObj.style.display = "none"; helpObj = document.getElementById(fieldObj.name+"Help"); if(helpObj != null){ helpObj.style.display = "block"; } } function hideHelp(fieldObj){ var helpObj = document.getElementById(fieldObj.name+"Help"); if(helpObj != null) helpObj.style.display = "none"; } function setpMenu(name, menu){ callBrandFunction2('setpMenu', name, menu, "none", "index.php"); } function setURLArg(Obj){ //alert(Obj.value); window.location.assign("./index.php?URLArg="+Obj.name+"&URLArgValue="+Obj.value); } function setURLArgDirect(Obj){ //alert(Obj.value); window.location.assign("./index.php?"+Obj.name+"="+Obj.value); } function setURLParam(name, value){ window.location.assign("./index.php?URLArg="+name+"&URLArgValue="+value); } function setURLParam2(name, value){ window.location.assign("./index.php?"+name+"="+value); } function applyFilter(filterObj, name){ window.location.replace("./index.php?"+name+"="+filterObj.value); } // file selection function FileSelectHandler(e, tag, target_dir, max_file_size) { // cancel event and hover styling //FileDragHover(e); // fetch FileList object //var files = e.target.files || e.dataTransfer.files; var files = e.files; // process all File objects for (var i = 0, f; f = files[i]; i++) { //ParseFile(f, tag); UploadFile(f, tag, target_dir, max_file_size); } } // output file information function ParseFile(file, tag) { Output( "
File information: " + file.name + " type: " + file.type + " size: " + file.size + " bytes
" ,tag); // display an image if (file.type.indexOf("image") == 0) { var reader = new FileReader(); reader.onload = function(e) { Output( "" + file.name + ":
" +
'
" + file.name + ":
" + e.target.result.replace(//g, ">") + "" ,tag); } reader.readAsText(file); } } // upload JPEG files function UploadFile(file, tag, target_dir, max_file_size) { // following line is not necessary: prevents running on SitePoint servers //if (location.host.indexOf("sitepointstatic") >= 0) return var xhr = new XMLHttpRequest(); //alert(file.type); if (xhr.upload && (file.type == "image/jpeg" || file.type == "application/pdf") && file.size <= max_file_size) { //if (xhr.upload && file.size <= $id("MAX_FILE_SIZE").value) { // create progress bar var o = $id("progress"+tag); var progress = o.appendChild(document.createElement("p")); progress.appendChild(document.createTextNode("upload " + file.name)); // progress bar xhr.upload.addEventListener("progress", function(e) { var pc = parseInt(100 - (e.loaded / e.total * 100)); progress.style.backgroundPosition = pc + "% 0"; }, false); // file received/failed xhr.onreadystatechange = function(e) { if (xhr.readyState == 4) { Status(xhr.responseText, tag); } }; // start upload xhr.open("POST", "upload.php?target_dir="+target_dir, true); //xhr.setRequestHeader("X_FILENAME", file.name); xhr.setRequestHeader("X-FILENAME", file.name); xhr.send(file); }else{ if(file.size >= max_file_size){ Status("Upload Failed - file to big ( "+file.size/1000 +" > "+max_file_size/1000 +"KB).", tag); }else Status("Upload Failed - Not a valid upload file format.", tag); } } function $id(id) { var obj = document.getElementById(id); if(obj == null) alert("Obj '"+id+"' not found"); return document.getElementById(id); } // output information function Output(msg, tag) { var m = $id("messages"+tag); m.innerHTML = msg;// + m.innerHTML; } // output information function Status(msg, tag) { var m = $id("status"+tag); m.innerHTML = msg;// + m.innerHTML; } function streamFile(dmID, filename, version, userID, iframeID){ //iframeObj = $id(iframeID); //iframeObj var iframeObj = document.getElementById(iframeID); if(iframeObj == null){ alert("iframeObj '"+iframeID+"' not found"); return; } //alert("setting iframe src to /filestream.php?"+filename); iframeObj.src = "./filestream.php?filename="+filename; if(dmID != "") callBrandFunction4("recordDownload", dmID, filename, version, userID, "", ""); } //disables the obj for ? seconds ~ stop double clicks function disableFor1sec(obj, disbale_time){ obj.disabled = true; setTimeout( function() { obj.disabled = false; }, disbale_time); } function htmlToPng(objName, ){ obj = document.getElementById(objName); html2canvas(obj).then(function(canvas) { document.body.appendChild(canvas); var png_preview = canvas.toDataURL("image/png"); }); } function sendEmailCard(membersID, email, status_div){ //alert("sendEmailCard("+membersID+", "+email+", "+status_div+")"); objName = "card_preview"; obj = document.getElementById(objName); var png_preview = ""; if(obj != null){ html2canvas(obj).then(function(canvas) { png_preview = canvas.toDataURL("image/png"); //jpg_preview = canvas.toDataURL("image/jpg"); //var img = new Image(); //img.src = png_preview; //document.body.appendChild(img); //console.log(png_preview); //png_preview= 'Is this data the issue;' callBrandFunction3("sendEmailCard", membersID, email, png_preview, status_div); }); } else{ //alert("Could not find obj card_preview"); callBrandFunction3("sendEmailCard", membersID, email, png_preview, status_div); } } function setInnerHTML(objName, contents){ var Obj = document.getElementById(objName); if(Obj == null){ alert("Unable to find screen Obj "+objName); return; } Obj.innerHTML = contents; } function setEditObjMessages(idList, msg){ msg = typeof msg !== 'undefined' ? msg : ''; if(msg == "DONOT CLEAR") return; var idArray = idList.split("|"); for(var i = 0; i < idArray.length; i++) { var msgObj = document.getElementById(idArray[i]); if(msgObj != null) msgObj.innerHTML = msg; } } function show_hideRow(id, value, showValue){ //console.log("show_hide("+id+", "+value+", "+showValue+")"); //alert("show_hideRow("+id+", "+value+", "+showValue+")"); if(value == "false") value = false; if(value == "true") value = true; if(showValue == "false") showValue = false; if(showValue == "true") showValue = true; //console.log(value+" "+showValue); var valuesMatched = false; if(typeof showValue !== "boolean"){ var showValues = showValue.split(";"); for(var v=0; v