/* --- Print-Funktion ---------- */
function myprint() {
if (window.print) {
parent.content.focus();
parent.content.print();
}
return false;
}

/* --- Radiert vordefinierte Werte in Inputs aus */
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

/* --- Dropdown-Navi 1 ----------  */
function showquicklinks( menuform ) {
selecteditem = menuform.quicklinks.selectedIndex ;
gotolink = menuform.quicklinks.options[ selecteditem ].value ;
if ( gotolink.length != 0) {
window.open(gotolink) ;
}
}

/* --- Dropdown-Navi 2 ----------  */
function showquicktips( menuform ) {
selecteditem = menuform.quicktips.selectedIndex ;
gototip = menuform.quicktips.options[ selecteditem ].value ;
if ( gototip.length != 0) {
window.open(gototip) ;
}
}

/* --- Dropdown-Navi 3 ----------  */
function changethestyle( menuform ) {
selecteditem = menuform.changestyles.selectedIndex ;
gototip = menuform.changestyles.options[ selecteditem ].value ;
if ( gototip.length != 0) {
window.parent.location=gototip;
}
}

/* --- Popup-Opener ----------  */
var sUserAgent = navigator.userAgent.toLowerCase();
var isIE = document.all?true:false;
var isNS4 = document.layers?true:false;
var isOp = (sUserAgent.indexOf('opera')!=-1)?true:false;
var isMoz = (sUserAgent.indexOf('mozilla/5')!=-1 && sUserAgent.indexOf('opera')==-1 && sUserAgent.indexOf('msie')==-1)?true:false;
function pop(oAnchor,sWindow,sProps){
var sUrl = '';
if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');
if(sUrl=='' && isIE) sUrl = window.event.srcElement.getAttribute('href');
if(sUrl=='') sUrl = oAnchor.href;
var sWindowName = sWindow?sWindow:'_blank';
if(!sProps) sProps = 'width=640,height=480,scrollbars,resizable,toolbar,status,menubar,location,top=20,left=20';
if(sUrl) var oPopup = window.open(sUrl,sWindowName,sProps);
if(oPopup && !isOp) oPopup.focus();
return (oPopup)?false:true;
}
