var imgcounter = 0;
function startUpload(){ document.getElementById('f1_upload_process').style.visibility = 'visible'; $(".msg").html(''); $(".emsg").html(''); $("#f1_upload_process").show(); return true;
document.getElementById('f1_upload_process1').style.visibility = 'visible'; $(".msg").html(''); $(".emsg").html(''); $("#f1_upload_process1").show(); return true; }
function stopUpload(success){ var result = '';
if (success != '0'){
document.getElementById('result').innerHTML = 'The file was uploaded successfully! '+success+'<\/span>
'; document.getElementById('add_image_url_hidden').value = success; document.getElementById('add_overimage_url_hidden').value = success;
var did = "#img_" + imgcounter; $(did).attr("src", success);
}else { document.getElementById('result').innerHTML = 'There was an error during file upload!<\/span>
'; } // document.getElementById('myfile_div').style.visibility = 'hidden'; $("#f1_upload_process").hide();
return true; }
function stopUpload2(success){ var result1 = ''; console.log(success); if (success != ''){ // document.getElementById('result1').innerHTML = 'The file was uploaded successfully! '+success+'<\/span>
'; $('#add_overimage_url_hidden').val(success); document.getElementById('add_overimage_url_hidden').value = success; }else { document.getElementById('result1').innerHTML = 'There was an error during file upload!<\/span>
'; } $("#f1_upload_process2").hide(); return true; }