function linkBox() {
 var linkBox = $('linkBox');
 linkBox.style.position = 'absolute';
 linkBox.style.top = yMousePos + 'px';
 linkBox.style.left = xMousePos + 'px';
 Effect.Appear(linkBox, {duration: 0.3});
}

function abort() {
 var linkBox = $('linkBox');
 Effect.Fade(linkBox, {duration: 0.3});
}

function linkPic(whereTo) {
 var galid = $('galid').value;
 var picid = $('picid').value;
 if( whereTo == 'album' ) {
  var destURL = '/p_album.php?galid='.concat(galid).concat('&picid=').concat(picid).concat('&action=sav');
  location.href = destURL;
 } else if( whereTo == 'profil' ) {
  var destURL = '/p_yourprofile.php?update=bildlink&galid='.concat(galid).concat('&pic=').concat(picid);
  location.href = destURL;
 } else {
  alert('Bitte Profil oder Fotoalbum wählen.');
 }
}

function checkForm(){
 if( document.all.emailform.email.value=="" ) {
  alert('Bitte eine eMail-Adresse eingeben!');
  return false;
 }
 if( document.all.emailform.nachricht.value=="" ) {
  alert('Bitte eine Nachricht eingeben!');
  return false;
 } else {
  document.emailform.submit();
  return true;
 }
}

function delimg(url) {
 var reason = prompt("Warum soll das Bild gelöscht werden?", "Wunsch eines Nutzers");
 if( null == reason || reason == "" ) return;
 var destURL = url.concat('&reason=').concat(encodeURIComponent(reason));
 location.href = destURL;
}

