//objects
var startdoc_en;
var dyndoc_en;

function gate_en(form) {
	if(ie4 || dom){
		this.pulldown = document[form].auswahl_en;
	}
	else{
		this.pulldown = document.layers[div_en].document[form].auswahl_en;
	}
}

function dynforms_en(){
//position
init();

//make objects
startdoc_en = new gate_en(startform_en);
dyndoc_en = new gate_en(dynform_en);
	//delete all olds
	for (i=0; i=startdoc_en.pulldown.length; i++) {
		startdoc_en.pulldown.options[0] = null;
	}
	for (i=0; i=dyndoc_en.pulldown.length; i++) {
		dyndoc_en.pulldown.options[0] = null;
	}
	//insert
	for (j=0; j<myoption_en[0].length; j++){
		if(myoption_en[0][j][0]) {
			NeuerEintrag = new Option(myoption_en[0][j][0]);
			startdoc_en.pulldown.options[startdoc_en.pulldown.length] = NeuerEintrag;
			startdoc_en.pulldown.options[startdoc_en.pulldown.length-1].value = myoption_en[0][j][1];
			
			if (myoption_en[0][j][0] == 'U.S.A') {
				startdoc_en.pulldown.options[startdoc_en.pulldown.length-1].selected = "selected";
			}
		}
	}
}

function fuegen_en(x){
	//delete old
	for (i=0; i=dyndoc_en.pulldown.length; i++) {
		dyndoc_en.pulldown.options[0] = null;
	}
	//insert
	for (j=0; j<myoption_en[x].length; j++){
		if(myoption_en[x][j][0]) {
			NeuerEintrag = new Option(myoption_en[x][j][0]);
			dyndoc_en.pulldown.options[dyndoc_en.pulldown.length] = NeuerEintrag;
			dyndoc_en.pulldown.options[dyndoc_en.pulldown.length-1].value = myoption_en[x][j][1];
		}
	}
}

function hinzu_en(){
	fuegen_en(startdoc_en.pulldown.options[startdoc_en.pulldown.selectedIndex].value);
}

function _submit_en(){
	if(startdoc_en.pulldown.options[startdoc_en.pulldown.selectedIndex].value == "1"){
		alert("Please select a country.");
		}
	else {
		window.location.href=(dyndoc_en.pulldown.options[dyndoc_en.pulldown.selectedIndex].value);
		}
}
//ns hat abstand zw. den forms => nur im ie einer rein
function abstand_en(x){
	if(ie4 || dom) document.write('<img src="gfx/transp.gif" width="1" height="'+x+'" alt="" border="0">')
}
