// JavaScript Document

/*
function show(id)
{
        if(document.getElementById(id).style.display=="none")
        {
                document.getElementById(id).style.display="block";
        }
        else
        {
                document.getElementById(id).style.display="none";
        }
}


function changeImage(imgID, imgPath, targForm) {

	parent.document.forms[targForm].form_image.src=imgPath;
	parent.document.forms[targForm].image.value=imgID;
}
*/

function openWindow(myFile, myWidth, myHeight)
{
 var myOpt = "scrollbars=yes, width=" + myWidth + ", height=" + myHeight;
 sptv_win = window.open(myFile,'',myOpt);
}
/*

function DDM_changeStatus(selObj, targObj) {

	var targ = document.getElementById(targObj);
	var sel  = document.getElementById(selObj);

	if(sel.value=="") {
		targ.value="";
		targ.disabled=true;
	}
	else
		targ.disabled=false;
}





function SLD_focusElementsInit() {

	var elementsLabel = document.getElementsByTagName('label');
	var elementsInput = document.getElementsByTagName('input');
	var elementsTextArea = document.getElementsByTagName('textarea');

	//input elements
	for (i=0; i<elementsInput.length; i++ ) {
	   if((elementsInput[i].type == "text")||(elementsInput.type == "radio")||(elementsInput.type == "checkbox")) {

			elementsInput[i].onfocus = function() {
				this.className += ' focus';
				for(j=0; j<elementsLabel.length; j++) {
					if(this.id === elementsLabel[j].htmlFor)
						elementsLabel[j].className += ' focus';
					else if((this.id == 'go_frm220') && (elementsLabel[j].htmlFor == 'go_frm200'))
						elementsLabel[j].className += ' focus';
				}
			}

			elementsInput[i].onblur = function() {
				this.className = this.className.replace( ' focus', '' );
				for(j=0; j<elementsLabel.length; j++) {
					if(this.id === elementsLabel[j].htmlFor)
						elementsLabel[j].className = elementsLabel[j].className.replace( ' focus', '' );
					else if((this.id == 'go_frm220') && (elementsLabel[j].htmlFor == 'go_frm200'))
						elementsLabel[j].className = elementsLabel[j].className.replace( ' focus', '' );
				}
			}
		}
	}

	//textarea elements
	for(i=0; i<elementsTextArea.length; i++) {

		elementsTextArea[i].onfocus = function() {
			this.className += ' focus';
			for(j=0; j<elementsLabel.length; j++) {
				if(this.id === elementsLabel[j].htmlFor)
					elementsLabel[j].className += ' focus';
			}
		}

		elementsTextArea[i].onblur = function() {
			this.className = this.className.replace( ' focus', '' );
			for(j=0; j<elementsLabel.length; j++) {
				if(this.id === elementsLabel[j].htmlFor)
					elementsLabel[j].className = elementsLabel[j].className.replace( ' focus', '' );
			}
		}
	}
}


function SLD_focusRowsInit() {

    var rows = document.getElementsByTagName('tr');

	//row elements
	for ( var i = 0; i < rows.length; i++ ) {

		if ( 'odd' != rows[i].className.substr(0,3) && 'even' != rows[i].className.substr(0,4)) {
            continue;
        }

		if ( navigator.appName == 'Microsoft Internet Explorer' ) {
            rows[i].onmouseover = function() {
                this.className += ' hover';
            }
            rows[i].onmouseout = function() {
                this.className = this.className.replace( ' hover', '' );
            }
        }
    }
}




*//*
function openChild(childUrl,childName,childWidth,childHeight,childStatus,childScrollbars,childLocation,childTollbar,childMenubar,childResizable) {
	var newChild = null;
    
    if (childResizable == undefined) {childResizable = 1;}

	if (childWidth>0) {
		childPosLeft = Math.floor((screen.width - childWidth) / 2);
		childPosTop = Math.floor((screen.height - childHeight) / 2);
        newChild = window.open(childUrl,childName,'width='+childWidth+',height='+childHeight+',innerwidth='+childWidth+',innerheight='+ childHeight+',top='+childPosTop+',left='+childPosLeft+',status='+childStatus+',scrollbars='+childScrollbars+',location='+childLocation+',toolbar='+childTollbar+',menubar='+childMenubar+',resizable='+childResizable);
	} else {
		newChild = window.open(childUrl,childName,'status='+childStatus+',scrollbars='+childScrollbars+',location='+childLocation+',toolbar='+childTollbar+',menubar='+childMenubar+',resizable='+childResizable);
	}
	if (newChild != null)
		newChild.window.focus();
}
/*
function OpenLightbox(strURL) {
  winLightbox = window.open(strURL, 'winLightbox', 'location=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,scrollbars=yes,width=640,height=530');
  winLightbox.focus();
}

function ActivateInput()
{
	alert(document.form_client_pass.sswitch.selectedIndex());
/*	switch(document.form_client_pass.switch.selectedIndex)	{

		case 0 : document.form_client_pass.form_1.disabled = true; break;
		case 1 : document.form_client_pass.form_1.disabled = false; break; 
	} 
}
// -->
/*

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function checkForm() {

	formErrors = false;

	if (document.form_news_add.form_title.value.length < 3) {
		formErrors = "Du musst zu deinem Beitrag einen Text eingeben.";
	}

	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		//formObj.preview.disabled = true;
		//formObj.submit.disabled = true;
		return true;
	}
}

function loadImage() {
	zweitbild = new Image(104, 102);
	zweitbild.src = document.forms.form_file_edit.form_file;
	document.images.form_image.src = Zweitbild.src;
}


function emoticon(text) {
	text = ' ' + text + ' ';
	if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos) {
		var caretPos = opener.document.forms['post'].message.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		opener.document.forms['post'].message.focus();
	} else {
	opener.document.forms['post'].message.value  += text;
	opener.document.forms['post'].message.focus();
	}
}

function addPhoto(sourceUrl, width, height, title) {
    var html = '<img src="'+sourceUrl+'" alt="'+title+'" width="'+width+'" height="'+height+'" border="0" />'

    if ( richedit ) {
        win.tinyMCE.execCommand('mceInsertContent', false, html);
    } else {
        win.edInsertContent(win.edCanvas, html);
    }
    return false;
}



function loadImage() {
	zweitbild = new Image(104, 102);
	zweitbild.src = document.forms.form_file_edit.form_file;
	document.images.form_image.src = Zweitbild.src;
}


window.onload=SLD_focusRowsInit;
window.onload=SLD_focusElementsInit;

*/



