// makes an base64 element out of the file and uploades it ; shows a wait animation
// name = name of the uploading       waitid = id of the div where animation shut be shown
function GetBase64(name,waitid) {
//document.body.style.cursor=\"wait\";
document.body.style.cursor='progress';
document.getElementById(waitid).innerHTML='<img src=\"./ICO/load.gif\" alt=\"loading...\" />loading...';
var image = '';

if(document.getElementById(name).files) {

image = document.getElementById(name).
files.item(0).getAsDataURL();

};

return image;
}
