function processUpload(a){var b=a.contentWindow||a.contentDocument;if(b.document){b=b.document}var c=b.getElementById('code');var d=b.getElementById('message');if(c&&d){$('#'+a.id).hide('fast',function(){$(this).attr('src','FileUploader.html');if(c.value=="SUCCESS"){currentCustomisation.logo=d.value;$get('uploadedlogo').innerHTML='<a href="'+d.value+'" target="_blank">View uploaded file</a>&nbsp;'+'<a id="removeuploadedfile" href="javascript:void(0)"><img alt="Remove" src="images/cart/delete.gif" /></a>';$('#removeuploadedfile').click(function(){CustomCards.Client.Data.DeleteCustomerLogo(currentCustomisation.logo,function(e){if(!hasError(e)){currentCustomisation.logo=null;$get('uploadedlogo').innerHTML='';$('#iupload').show('fast')}},handleError)})}else{alert("Error: "+d.value);$(this).show('fast')}})}}