function POPUP(href, top, left, width, height, style) {
  if (style==1) {
    var win = window.open(href, 'POPUP', "status=no,resizable=no,scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,copyhistory=no,width="+width+",height="+height+",top="+top+",left="+left);
  } else if (style==2) {
    var win = window.open(href, 'POPUP', "status=no,resizable=no,scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,copyhistory=no,width="+width+",height="+height+",top="+top+",left="+left);
  }
  if (win.window) { win.window.focus(); } else { win.focus(); }
}

function HINFO(id,vc,oc,date) {
  var url = '/site/hotelbeschreibung.html?id='+id+'&vc='+vc+'&oc='+escape(oc)+'&date='+date;
  if (arguments.length == 5) {
    url += '&tab=' + arguments[4];
  }
  if (id == 0 || (vc == '' && oc == '')) {
    alert('Zu diesem Angebot liegen uns momentan keine weiteren Details vor!');
  } else {
    var win = window.open(url,'HINFO', 'width=715,height=545,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,copyhistory=no');
    if (win.window) { win.window.focus(); } else { win.focus(); }
  }
}

function VIDADO(iff,lc,vc,hotel,ort) {
  if (iff == 0) {
    alert('Zu diesem Angebot liegen uns momentan keine weiteren Details vor!');
  } else {
    var url = 'http://www.vidado.com/content_page/lmweb.php?KID=615000&IFF='+iff+'&VA='+vc+'&CRS_CODE='+escape(lc)+'&HNAME='+escape(hotel)+'&ORT='+escape(ort);
    win = window.open(url,'VIDADO', 'width=610,height=465,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,copyhistory=no');
    if (win.window) { win.window.focus(); } else { win.focus(); }
  }
}
