var message = "";
function clickIE() {
    if(document.all) {
     (message);
     return false;
 }
}

function clickNS(e) {
    if(document.layers || (document.getElementById && !document.all)) {
        if(e.which == 2 || e.which == 3) {
      (message); 
      return false;
  }
 }
}

if(document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = clickNS;
} else {
    document.onmouseup = clickNS;
    document.oncontextmenu = clickIE;
}



/*------------------------------------------------------------
*  Function:  openPopupWindow
*  
*  Description:
*  opens a popup window of a passed width and height
*  and loads the passed URL in it
*  
*  Parameters:
*  url			string		page to load
*  w			integer		width of popup window
*  h			integer		height of popup window
*  features		string		window features - see below for defaults
*  
*  Return:
*  none
*------------------------------------------------------------*/
var popupWindow=null;

function openPopupWindow(url,w,h,features) {
	if (w == null || w=='') w = 400;
	if (h == null || h=='') h = 400;
	if (features == null) features = ",status=0,location=0,directories=0,resizable=1,scrollbars=1";
	
	if (url) {

		if ( (popupWindow!=null) && !popupWindow.closed && popupWindow.location ){
			popupWindow.location.href = url;
			popupWindow.focus();
		} else {
			popupWindow = window.open(url,'popupWindow','width='+w+',height='+h+features);
			popupWindow.focus();
			if (!popupWindow.opener) popupWindow.opener = self;
		}

	}
}

function checkContactForm() {
	f = document.kontakt;
    
    if (f.vorname.value == "") {
    	alert("Bitte geben Sie Ihren Vornamen ein.");
        f.vorname.focus();
        return false;
    }
    
    if (f.name.value == "") {
    	alert("Bitte geben Sie Ihren Nachnamen ein.");
        f.name.focus();
        return false;
    }    
    
    if (f.email.value == "") {
    	alert("Bitte geben Sie Ihre E-Mail-Adresse ein.");
        f.email.focus();
        return false;
    }     
    
    return true;
}

