//objects
var startdoc_de;
var dyndoc_de;

function gate_de(form) {
	if(ie4 || dom){
		this.pulldown = document[form].auswahl_de;
	}
	else{
		this.pulldown = document.layers[div_de].document[form].auswahl_de;
	}
}

function dynforms_de(){
//position
init();

//make objects
startdoc_de = new gate_de(startform_de);
dyndoc_de = new gate_de(dynform_de);
	//delete all olds
	for (i=0; i=startdoc_de.pulldown.length; i++) {
		startdoc_de.pulldown.options[0] = null;
	}
	for (i=0; i=dyndoc_de.pulldown.length; i++) {
		dyndoc_de.pulldown.options[0] = null;
	}
	//insert
	for (j=0; j<myoption_de[0].length; j++){
		if(myoption_de[0][j][0]) {
			NeuerEintrag = new Option(myoption_de[0][j][0]);
			startdoc_de.pulldown.options[startdoc_de.pulldown.length] = NeuerEintrag;
			startdoc_de.pulldown.options[startdoc_de.pulldown.length-1].value = myoption_de[0][j][1];
			
			if (myoption_de[0][j][0] == 'Deutschland') {
				startdoc_de.pulldown.options[startdoc_de.pulldown.length-1].selected = "selected";
			}
		}
	}
}

function fuegen_de(x){
	//delete old
	for (i=0; i=dyndoc_de.pulldown.length; i++) {
		dyndoc_de.pulldown.options[0] = null;
	}
	//insert
	for (j=0; j<myoption_de[x].length; j++){
		if(myoption_de[x][j][0]) {
			NeuerEintrag = new Option(myoption_de[x][j][0]);
			dyndoc_de.pulldown.options[dyndoc_de.pulldown.length] = NeuerEintrag;
			dyndoc_de.pulldown.options[dyndoc_de.pulldown.length-1].value = myoption_de[x][j][1];
		}
	}
}

function hinzu_de(){
	fuegen_de(startdoc_de.pulldown.options[startdoc_de.pulldown.selectedIndex].value);
}

function _submit_de(){
	window.location.href=(dyndoc_de.pulldown.options[dyndoc_de.pulldown.selectedIndex].value);
}
//ns hat abstand zw. den forms => nur im ie einer rein
function abstand_de(x){
	if(ie4 || dom) document.write('<img src="gfx/transp.gif" width="1" height="'+x+'" alt="" border="0">')
}

function selectbox_de() {
	var getInput = 'Ägypten';
	for (var i =0; i < document.startform_de.auswahl_de.options.length; i++) {
		if (document.startform_de.auswahl_de.options[i].text == getInput) {
			break
		}
	document.startform_de.auswahl_de.options.selectedIndex = i+1;
	}
}
