function encode_utf8(s)
{
  return unescape( encodeURIComponent( s ) );
}

function decode_utf8(s)
{
  return decodeURIComponent( escape( s ) );
}

function facebookShare(filename)
{
    var u = "http://www.thankyou.saab.it/workview.php?f=" + filename;
    var t = "Thank you Saab";
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
    return false;
}
