		countrycode = new Array();
		countrycode["de"] = "+49";
		countrycode["ch"] = "+41";
		countrycode["at"] = "+43";
		countrycode["al"] = "+355";
		
		countrycode["ad"] = "+376";
		countrycode["be"] = "+32";
		countrycode["ba"] = "+387";
		countrycode["bg"] = "+359";
		countrycode["ca"] = "+1";
		countrycode["dk"] = "+45";
		countrycode["ee"] = "+372";
		countrycode["fi"] = "+358";
		countrycode["fr"] = "+33";
		
		countrycode["gr"] = "+30";
		countrycode["uk"] = "+44";
		countrycode["ie"] = "+353";
		countrycode["is"] = "+354";
		countrycode["it"] = "+39";
		countrycode["yu"] = "+381";
		countrycode["hr"] = "+385";
		countrycode["li"] = "+423";
		countrycode["lt"] = "+370";
		
		countrycode["lu"] = "+352";
		countrycode["nl"] = "+31";
		countrycode["no"] = "+47";
		countrycode["pl"] = "+48";
		countrycode["pt"] = "+351";
		countrycode["ro"] = "+40";
		countrycode["ru"] = "+7";
		countrycode["se"] = "+46";
		countrycode["cs"] = "+381";
		
		countrycode["sk"] = "+421";
		countrycode["si"] = "+386";
		countrycode["es"] = "+34";
		countrycode["cz"] = "+420";
		countrycode["ua"] = "+380";
		countrycode["hu"] = "+36";
		countrycode["us"] = "+1";
		countrycode["by"] = "+375";
		
		function change_form() {
//			alert (window.document.getElementById("ismember").value+'=ismember\n'+window.document.getElementById("notamember").value+'=notamember');
			if (window.document.getElementById("ismember").checked) {
				document.getElementById("memberdiv").style.display = "";
				document.getElementById("addydiv").style.display = "none";
				document.getElementById("captcha").style.display = "none";
//				document.getElementById("memberdiv").style.height = "auto";
//				document.getElementById("addydiv").style.height = "0px";
			}
			else {
				document.getElementById("memberdiv").style.display = "none";
				document.getElementById("addydiv").style.display = "";
//				document.getElementById("memberdiv").style.height = "0px";
//				document.getElementById("addydiv").style.height = "auto";
				document.getElementById("captcha").style.display = "block";
			}
		}
		function cou_code() {
//			var code = window.document.forms[0].elements[10].value;
			var code = document.getElementById("country_code").value;
			code = countrycode[code];
			
			var i;
			for (i=0; i < document.getElementById("tel_cc").options.length; i++){
				if (document.getElementById("tel_cc").options[i].value==code) {
					document.getElementById("tel_cc").selectedIndex=i;
					document.getElementById("fax_cc").selectedIndex=i;
				}
				}
		}
		
		function check() {
			var text = " ";
			if (document.getElementById("ismember").checked) {
				if (document.getElementById("kdnr").value=="") {
					text = text + "Bitte geben Sie die Kundennummer Ihres NetBeat-Accounts an.\r\n";

				}
				if (document.getElementById("kdpw").value=="") {
					text = text + "Bitte geben Sie das Paßwort Ihres NetBeat-Accounts an.\r\n";
				}
				if (text!=" ") {
					alert (text);
					return false;
				}
			}
			else {
				
				if (document.getElementById("firma").checked==true) {
					if (document.getElementById("org").value=="") {
						text = text + "Bitte geben Sie den Namen (Firma) der juristischen Person an.\r\n";
					}
				}
				if (document.getElementById("name").value=="") {
					text = text + "Bitte geben Sie Ihren Nachnamen an.\r\n";
				}
				if (document.getElementById("vorname").value=="") {
					text = text + "Bitte geben Sie Ihren Vornamen an.\r\n";
				}
				if (document.getElementById("email").value=="") {
					text = text + "Bitte geben Sie Ihre E-Mail-Adresse an.\r\n";
				}
				if (document.getElementById("strasse").value=="") {
					text = text + "Bitte geben Sie den Strassennamen an.\r\n";
				}
				if (document.getElementById("num").value=="") {
					text = text + "Bitte geben Sie die Hausnummer an.\r\n";
				}
				if (document.getElementById("plz").value=="") {
					text = text + "Bitte geben Sie Ihre Postleitzahl an.\r\n";
				}
				if (document.getElementById("ort").value=="") {
					text = text + "Bitte geben Sie den Ort an.\r\n";
				}
				if (document.getElementById("tel").value=="") {
					text = text + "Bitte geben Sie Ihre Telefonnummer an.\r\n";
				}
				if (document.getElementById("agb").checked==false) {
					text = text + "Bitte erklären Sie sich durch Anwählen des entsprechenden Felds mit unseren AGB einverstanden. \r\n";
				}
				if (document.getElementById("security_code").value.length!='4') {
                                        text = text + "Bitte geben Sie den folgenden 4-stelligen Code ein. \r\n";
                                }
				if (text != " ") {
					alert (text);
					return false;
				}
			}
		}
		function jura() {
			if (document.getElementById("firma").checked==true) {
				document.getElementById("jura").style.color = "#FFFFFF";
//				document.getElementById("org").style.background-color = "#FFFFFF";
//				document.getElementById("org").style.background-color = "#FFFFFF";
			}
		}
		function juschange() {
			if (document.getElementById("firma").checked) {
			//	document.getElementById("firma").checked=false;
				document.getElementById("jupediv").style.display = "block";
			} else {
			//	document.getElementById("firma").checked=true;
				document.getElementById("jupediv").style.display = "none";
			}
		}
		function divinit() {
			document.getElementById("jupediv").style.visibility = "hidden";
			document.getElementById("jupediv").style.height = "0px";
			document.getElementById("memberdiv").style.visibility = "hidden";
			document.getElementById("addydiv").style.visibility = "visible";
			document.getElementById("memberdiv").style.height = "0px";
			document.getElementById("addydiv").style.height = "auto";
		}
		function comment(){ 
			var com;
			var StrLen;
			com = document.getElementById("com").value;
			StrLen = document.getElementById("com").value.length;
			if (StrLen > 1 && StrLen < 500){
				document.getElementById("com").value = " ";
				window.open("/support/kommentare-sidebar.html?text="+com,"master_popup","width=470,height=50");
			}
		}
	
		function sub_domain(x){			
			switch(x){
			case 'D':
				document.getElementById("subdomain_dns").style.display = "block";
				document.getElementById('subdomain_background').style.display = "block";
				document.getElementById("subdomain_frameset").style.display = "none";
				document.getElementById('subdomain_feature').style.display = "none";
				break;
			case 'F':
				document.getElementById("subdomain_frameset").style.display = "block";
				document.getElementById('subdomain_background').style.display = "block";
				document.getElementById("subdomain_dns").style.display = "none";
				document.getElementById('subdomain_feature').style.display = "none";
				break;
			case 'R':
				document.getElementById('subdomain_feature').style.display = "block";
				document.getElementById('subdomain_background').style.display = "block";
				document.getElementById("subdomain_frameset").style.display = "none";
				document.getElementById("subdomain_dns").style.display = "none";
				break;
			default:
				document.getElementById("subdomain_frameset").style.display = "none";
				document.getElementById('subdomain_background').style.display = "none";
				document.getElementById("subdomain_dns").style.display = "none";
				document.getElementById('subdomain_feature').style.display = "none";
				break;
			}
		}

