
					var herstellername = "";
					var modellhersteller = "";
					var handy = "";
					var hmodell = "";
					function changeHerstellerFormGeneral() {
						herstellername = document.handyauswahl.hersteller.value;
						herstellerOptions = document.handyauswahl.hersteller.options;
						for (var i = 0; i < herstellerOptions.length; i++) {
							if (herstellerOptions[i].value != herstellername) {
								if (document.getElementById("div-"+herstellerOptions[i].value)) {
									document.getElementById("div-"+herstellerOptions[i].value).style.display = 'none';

								}
							}
						}
						if (document.getElementById("div-"+herstellername)) {
							document.getElementById("div-"+herstellername).style.display = 'block';

						}
					}
					function showSelectedId() {
						modellhersteller = document.getElementById(herstellername).value;
						
						return modellhersteller;	
					} 
					function setCookie(name, value, domain, expires, path, secure){
					   var cook = name + "=" + unescape(value);
					   cook += (domain) ? "; domain=" + domain : "";
					   cook += (expires) ? "; expires=" + expires : "";
					   cook += (path) ? "; path=" + path : "";
					   cook += (secure) ? "; secure" : "";
					   document.cookie = cook;
					}
					function unsetCookies()
					{
						if (navigator.appName == 'Microsoft Internet Explorer')
						{
							var Zeitformat = 'UMC';
						}
						else
						{
							var Zeitformat = 'GMT';
						}
						var Verfallsdatum = 'Mon, 27 Aug 1970 08:00:01 ' + Zeitformat;	
						setCookie('modell', 'null', 'zelfi.com', Verfallsdatum, '/');
						setCookie('hersteller', 'null', 'zelfi.com', Verfallsdatum, '/');
					}
					function handyAuswahl(modellhersteller) {
					  var Verfall = 1000*60*60*24*31; 
					  var modellname = modellhersteller.split("|");
					  modell = modellname[1];
					  hersteller = modellname[0];
					  var jetzt = new Date(); 
					  var Auszeit = new Date(jetzt.getTime() + Verfall);
					  
					  if (modellname != '' || herstellername != '')
					  {
						setCookie('modell', modell, 'zelfi.com', Auszeit.toGMTString(), '/'  )
						setCookie('hersteller', hersteller, 'zelfi.com', Auszeit.toGMTString(), '/');
					  }
					}
					function loadCookie(cookiename)
					{
						allCookies=document.cookie;
						cookieArr=allCookies.split(";");
						var i=0;
						for (i=0;i<cookieArr.length;i++)
						{
							singleCookieName = cookieArr[i].split("=")[0];
							singleCookieString = cookieArr[i].split("=")[1];
							while (singleCookieName.charAt(0)==' ') singleCookieName = singleCookieName.substring(1,singleCookieName.length);
							if(singleCookieName == cookiename)
							{
								if (cookiename == "hersteller")
								{
									handy = decodeURI(singleCookieString);
								} else
								{
									hmodell = decodeURI(singleCookieString);
								}
								return true;
							} 
						}		
						return false;
					}
					document.write('<br \/>');
document.write('<\/form>');
if (loadCookie("hersteller") && loadCookie("modell"))

			{

				document.write('<div class="fett" style="margin-left:17px;"><p class="your_mobile">Your mobile:<\/p>'+ handy + ' ' + hmodell + '<\/div>');

				document.write('<form action="" method="post" id="handyauswahl_form">');
				document.write('<input type="submit" name="submit" value="Change" id="change_mobile" onclick="unsetCookies()" />');

				document.write('<\/form>');
			}

			else

			{

				dropDownMenu();

			}

			function setHerstellerFormGeneral() {
				

				if (document.handyauswahl.hersteller.value == '0') {
					alert("Choose your phone manufacturer");
					return false;
				}
                try{
                    if (document.handyauswahl.elements[herstellername].value == '0') {
    	       				alert("Choose your phone model");
    		      			return false;
                    }
                    herstellername = document.handyauswahl.hersteller.value;
                    try{
                        if (document.handyauswahl.gameid.value){
                          return true;
                        }
                    }catch(err)
                    {
                    }
				                         
                    document.handyauswahl.elements[herstellername].name = 'gameid';
                }catch(err)
                {
					alert("Choose your phone model");
					return false;
                }
				 
				return true;
}
