// ActionScript Document
function checkSelection(elems) {
    for (var i=0, iL=elems.o_r.length; i<iL; i++) {
        if (elems.o_r[i].checked)
            return true
    }
    alert('Eines muss schon selektiert sein');
    return false
}
function pruefe(form) {
    var elem, valid = true;

    if((elem = form.elements.name)) {
        if(elem.selectedIndex == 0) {
            alert('W&auml;hlen Sie bitte ein Seminar.');
            valid = false;
        }
    }

    return valid;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function nospam(name,domain) {
document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write(name + '@' + domain + '</a>');
}
var max = 500;

document.vcard_form.count1.value = max;
document.vcard_form.vcard_text.focus();

function count_profil(e) {
        if (!e.which) keyCode = event.keyCode; // ie5+ op5+
        else keyCode = e.which; // nn6+

        if (document.vcard_form.vcard_profil.value.length<max+1)
            document.vcard_form.count1.value = max-document.vcard_form.vcard_profil.value.length;
        else {
          document.vcard_form.vcard_profil.value = document.vcard_form.vcard_profil.value.substring(0,max);
          document.vcard_form.count1.value = 0;
        }
      }
	  
document.vcard_form.count1.value = max;
document.vcard_form.vcard_profil.focus();

function count_text(e) {
        if (!e.which) keyCode = event.keyCode; // ie5+ op5+
        else keyCode = e.which; // nn6+

        if (document.vcard_form.vcard_text.value.length<max+1)
            document.vcard_form.count2.value = max-document.vcard_form.vcard_text.value.length;
        else {
          document.vcard_form.vcard_text.value = document.vcard_form.vcard_text.value.substring(0,max);
          document.vcard_form.count2.value = 0;
        }
      }
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
 newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",menubar=1,scrollbars=no,left="+posLeft+",top="+posTop);
 newWindow.document.open();
 newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="20" topmargin="20" marginheight="0" marginwidth="0" >');
 newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
 newWindow.document.write('</body></html>');
 newWindow.document.close();
 newWindow.focus();
}