function postFB(cMsg,cId,wall){FB_RequireFeatures(["CanvasUtil"],function(){FB.init("c77754ccbe78f52732f8fce3116e3dac","./resources/xd_receiver.htm");FB.ensureInit(function(){FB.Connect.showPermissionDialog("publish_stream",function(){if(wall)FB.Connect.streamPublish('I just created an encrypted message with cryptotwit. Click the \"solve this cryptotwit\" button below to try to solve it!',{'media':[{'type':'image','src':'http://cryptotwit.com/resources/btn_solve_075x075.png','href':'http://cryptotwit.com/'+cId}],'caption':cMsg});else
FB.Connect.showFeedDialog(112322173129,{text:cMsg,id:cId});});});});}function postTwitter(cMsg,cId,newWin){if(cMsg.length>140)alert("This message is longer than 140 characters and cannot be posted to Twitter.");else
{if(newWin)window.open("http://cryptotwit.com?postToTwitter="+cId,"_blank");else
document.location="http://cryptotwit.com?postToTwitter="+cId;}}