function box_ugform(an, box) {
  var cleft = -10;
  var ctop = 0;
  var obj = an;
  while (obj.offsetParent) {
    cleft += obj.offsetLeft;
    ctop += obj.offsetTop;
    obj = obj.offsetParent;
  }
  box.style.left = cleft + 'px';
  ctop += an.offsetHeight + 5;
  if (document.body.currentStyle &&
    document.body.currentStyle['marginTop']) {
    ctop += parseInt(
      document.body.currentStyle['marginTop']);
  }
  box.style.top = ctop + 'px';
}

function giris_formu(an, width, height, borderStyle) {
  var href = an.href;
  var boxug = document.getElementById(href);

  if (boxug != null) {
    if (boxug.style.display=='none') {
      box_ugform(an, boxug);
      boxug.style.display='block';
    } else
      boxug.style.display='none';
    return false;
  }

  boxug = document.createElement('div');
  boxug.setAttribute('id', href);
  boxug.style.display = 'block';
  boxug.style.position = 'absolute';
  boxug.style.width = width + 'px';
  boxug.style.height = height + 'px';
  boxug.style.border = borderStyle;
  boxug.style.backgroundColor = '#fff';

  var contents = document.createElement('iframe');
  contents.scrolling = 'no';
  contents.frameBorder = '0';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.src = href;

  boxug.appendChild(contents);
  document.body.appendChild(boxug);
  box_ugform(an, boxug);

  return false;
}
