function notepadOfferAdd(a){try{dojo.fx.wipeOut({node:dojo.byId("linkButtonNotepad_"+a),duration:500}).play();var b=dojo.byId("notepad_"+a);dojo.xhrPost({url:dojo.attr(b,"action"),handleAs:"json",preventCache:true,form:b,load:function(e,d){if(e.success){notepadRefresh();trackNotepad(b.s_hotelName.value,a)}else{Shadowbox.open({player:"html",width:300,height:100,content:"<br /><br />Das Angebot liegt bereits auf dem Merkzettel."})}}})}catch(c){}}function notepadOfferDelete(a){trackNotepadDelete();document.location.href=a}function notepadDeleteOffers(b){var a="";for(var c in b){a+='<input type="hidden" name="identifier[]" value="'+b[c]+'">'}document.body.innerHTML+='<form id="identifierForm" action="/Notepad/deleteselected" method="post">'+a+"</form>";document.getElementById("identifierForm").submit()}function notepadRefresh(){dojo.addClass(dojo.byId("notepadRightModule").parentNode,"element-spinner-small");while(dojo.byId("notepadRightModule").childNodes[0]){dojo.byId("notepadRightModule").removeChild(dojo.byId("notepadRightModule").childNodes[0])}requestContentLoad("notepadRightModule","/Notepad/showsmall/",true,true,true)}function notepadShowAll(){Shadowbox.open({player:"iframe",width:582,height:582,content:"/Notepad/showall/"})};
