function buy(href){var popf;var l=(screen.availWidth-300)/2;var t=(screen.availHeight-301)/2;popf=window.open(href,"","menubar=no,location=no,toolbar=no,status=no,scrollbars=no,resizable=no,toolbar=no,width=300,height=301,left="+l+",top="+t);popf.focus();}
function buy2(href){var popf;var l=((screen.availWidth-460)/2)-25;var t=(screen.availHeight-600)/2;popf=window.open(href,"","menubar=no,location=no,toolbar=no,status=no,scrollbars=no,resizable=no,toolbar=no,width=460,height=600,left="+l+",top="+t);popf.focus();}
function zeichen(){var maxz=300;length=document.com.comment.value.length;if(length>maxz){document.com.comment.value=document.com.comment.value.substring(0,maxz);var rest=0;}else{rest=maxz-length;}
document.getElementById("zeichen").innerHTML="noch "+rest+" Zeichen";}
var x=0;var y=0;var req;function updatetooltip(){document.getElementById('tooltip').style.left=(x+15)+'px';document.getElementById('tooltip').style.top=(y)+'px';}
function Mausklick(Ereignis){if(!Ereignis){Ereignis=window.event;}
var docEl=(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat")?"documentElement":"body";y=Ereignis.pageY?Ereignis.pageY:Ereignis.clientY;x=Ereignis.pageX?Ereignis.pageX:Ereignis.clientX;if(document.all&&!document.captureEvents){x+=document[docEl].scrollLeft;y+=document[docEl].scrollTop;}
updatetooltip();}
document.onmousemove=Mausklick;function ajax_callback(){if(req.readyState==4){if(req.status==200){document.getElementById('tooltip').innerHTML=req.responseText;}else{}}}
function ajax_start(id){try{if(window.XMLHttpRequest){req=new XMLHttpRequest();}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");}else{}
req.open("GET","/short.php?id="+id,true);req.onreadystatechange=ajax_callback;req.send(null);}catch(e){}}
function showtooltip(id){document.getElementById('tooltip').style.display='block';updatetooltip();ajax_start(id);}
function hidetooltip(){document.getElementById('tooltip').style.display='none';}