
//****************** MS **********************

function ToggleDiv(theDivName)
{
	InitializeGlobalData();

	if (null == theDivName || typeof(theDivName) == "undefined") return; var theDiv = allDivsInPage[theDivName]; if (null == theDiv || typeof(theDiv) == "undefined") return;

	if (theDiv.style.display.toUpperCase() != "BLOCK")
		ExpandDiv(theDivName);
	else
		CollapseDiv(theDivName);
}

function AlterAllDivs(displayStyle)
{
	InitializeGlobalData();

	if (null == allDivsInPage || typeof(allDivsInPage) == "undefined")
		return;

	if (typeof(allDivsInPage["divShowAll"]) != "undefined" &&
		typeof(allDivsInPage["divHideAll"]) != "undefined")
		{
		if (displayStyle == "block")
			{
			allDivsInPage["divShowAll"].style.display = "none";
			allDivsInPage["divHideAll"].style.display = "block";
			}
		else
			{
			allDivsInPage["divShowAll"].style.display = "block";
			allDivsInPage["divHideAll"].style.display = "none";
			}
		}

	AlterAllDivsSpans(document.body.getElementsByTagName("DIV"), displayStyle);
	AlterAllDivsSpans(document.body.getElementsByTagName("SPAN"), displayStyle);
}

function AlterAllDivsSpans(allDivsSpans, displayStyle)
{
	if (typeof(allDivsSpans) == "undefined" || null == allDivsSpans)
		return;

	for (i=0; i < allDivsSpans.length; i++)
	{
		if (typeof(allDivsSpans[i]) != "undefined" &&
			null != allDivsSpans[i] &&
			typeof(allDivsSpans[i].id) != "undefined" &&
			null != allDivsSpans[i].id &&
			allDivsSpans[i].id.length > 0)
		{
			if (0 == allDivsSpans[i].id.indexOf("divExpCollAsst_")) 
			{
				var thePic = allImagesInPage[allDivsSpans[i].id + "_img"];

				if (displayStyle == "block")
				{
					allDivsSpans[i].style.display = "block";

					if (typeof(thePic) != "undefined" && null != thePic)
					{
						thePic.src = "/global/images/default.aspx?AssetID=ZA790050011033";
						thePic.alt = strHide;
					}
				}
				else
				{
					allDivsSpans[i].style.display = "none";

					if (typeof(thePic) != "undefined" && null != thePic)
					{
						thePic.src = "/global/images/default.aspx?AssetID=ZA790050001033";
						thePic.alt = strShow;
					}
				}
			}

			if (0 == allDivsSpans[i].id.indexOf("divInlineDef_")) 
			{
				if (displayStyle == "block")
					allDivsSpans[i].style.display = "inline";
				else
					allDivsSpans[i].style.display = "none";
			}
		}
	}
}


//****************** MS **********************

function findDomain () {<br />
s.linkTrackVars = &#39;prop31&#39;;<br />
s.linkTrackEvents = &#39;None&#39;;<br />
s.prop31 = &#39;OL Home Page Domain search&#39;;<br />
s.tl(true,&#39;o&#39;,&#39;OL Domain Search&#39;);<br />
<br />
window.location.href = signUpUrl + &#39;?sku=Domain&amp;dm=&#39; + 
document.getElementById(&#39;dm&#39;).value + &#39;&amp;lc=en-US&#39;;<br />
}<br />
<br />
function moveDomain () {window.location.href = signUpUrl + 
&#39;?rt=transfer&amp;sku=Domain&amp;lc=en-US&#39;;}<br />
function clickGO(){if (window.event.keyCode == 13){window.event.keyCode = 
0;findDomain();}}<br />



  
// Initialize global variables
var Flash_Version = 0;
var Flash_Menus_Enabled = false;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;


// Obtain integer for Flash version installed
if (plugin) {
		numPlugins = navigator.mimeTypes.length;
		for (i = 0; i < numPlugins; i++)	{
			plugin = navigator.mimeTypes[i];			
			if ((plugin.type == "application/x-shockwave-flash") && (plugin.enabledPlugin)) {
				pluginDesc = plugin.enabledPlugin.description;
				plugVersionPoz = pluginDesc.indexOf(".")	
				Flash_Version = parseInt(pluginDesc.substring(plugVersionPoz -1, plugVersionPoz));
				}
		}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write("<SCR" + "IPT LANGUAGE='VBScript'\> \n");
	document.write("Function VBGetFlashControlVersion() \n");
	document.write("On Error Resume Next \n");
	document.write("Dim Control, server, theversion \n");
	document.write("server = \"ShockwaveFlash.ShockwaveFlash\" \n");
	document.write("set Control = CreateObject(server) \n");
	document.write("if (IsObject(Control)) then \n");
	document.write("Dim majorVersion, controlVersion \n");
	document.write("controlVersion = Control.FlashVersion() \n");
	document.write("majorVersion = int(controlVersion / 65536) \n");
	document.write("theversion = CStr(majorVersion) \n");
	document.write("theversion = left(theversion,InStr(theversion,\".\")-1) \n");
	document.write("end if \n");
	document.write("if IsNull(theversion) or IsEmpty(theversion) or theversion = \"\" then \n");
	document.write("	theversion = 0 \n");
	document.write("end if \n");
	document.write("set Control = nothing \n");
	document.write("VBGetFlashControlVersion = theversion \n");
	document.write("End Function \n");
	document.write("</SCR" + "IPT\> \n");

	Flash_Version = parseInt(VBGetFlashControlVersion());
}

// Begin Global JS Functions
function TriggerFlash() {
var args = TriggerFlash.arguments;
	for (x = 0; x < args.length; x++) {
		Root = eval("window." + args[x]);
		if (Root) {
			Root.Play();
		}
	}
}



function getSelVal(sel)
{
	return sel.options[sel.selectedIndex].text;
}



function dataCheck()
{
	msg='';
	if(form1.surname.value=='')
		msg+='\nBitte geben Sie Ihren << Nachname >>';
	if(form1.uMail.value=='')
		msg+='\nBitte geben Sie Ihren << E-Mail >>';
	if(msg=='')
		return 1;
	alert(msg);
	return 0;
}


