var g_is_home = false;var g_download_is_open = false;var g_currentproducttab = 1;window.onload = function (){    initAll();};/**  * Set global variable g_is_home. */function initAll(){    var sClass = "";    if (document.body.className) {        sClass = document.body.className;    }    else {        sClass = document.body.getAttribute("class");    }    if (sClass != undefined) {        g_is_home = sClass.indexOf("home") >= 0;    }    else {        g_is_home = false;    }}/** * Select the content of the element specified. Used in the onfocus event of the search field. * @param {Object} elm Element, whose content will be selectec. */function selectAllInput(elm){    if (elm)    {        elm.focus();        elm.select();    }}function switchHomepageClaim(target){	var elmTarget = returnObjectByID(target);		var elmClaims = document.getElementsByTagName("div");	if (elmClaims && elmTarget) {		for (i = 0; i < elmClaims.length; i++){			if (elmClaims[i].className == "claim") {				elmClaims[i].style.display = "none";			}		}		elmTarget.style.display = "block";		return false;	}}/** * Switch the product table tabs to the target tab number specified. * @param {Integer} target Number of tab to switch to. */function switchProductTab(target){		var elm_currentproductcontent = returnObjectByID("tabcontent"+g_currentproducttab);	var elm_targetproductcontent = returnObjectByID("tabcontent"+target);	var elm_currentproducttab = returnObjectByID("tab"+g_currentproducttab);	var elm_targetproducttab = returnObjectByID("tab"+target);		var prod = document.getElementById('productDetailInformation');	var firstchild = prod.firstChild;	if (elm_currentproductcontent && elm_targetproductcontent && elm_currentproducttab && elm_targetproducttab)	{		elm_currentproductcontent.style.display = "none";		elm_targetproductcontent.style.display = "block";		elm_currentproducttab.className = "inactive";		elm_targetproducttab.className = "active";		elm_currentproducttab.blur();		g_currentproducttab = target;	}}/* Additions by SP Integration GmbH *//** * Get an element by its ID (cross-browser). * @param strID {String} ID of the element to return * @return {Object} Element if found. */function returnObjectByID(strID){	if (document.getElementById)		var returnVar = document.getElementById(strID);	else if (document.all)		var returnVar = document.all[strID];	else if (document.layers)		var returnVar = document.layers[strID];	return returnVar;}