
<!--
function doSiteSearch()
{	
	
	var searchVal = document.getElementById("SiteSearch").value;
	location.href = '/search/default.aspx?Search=' + searchVal;
}

function switchImages( name1, source1 ){
		if ( document.images ){
			document[name1].src=source1;

        }
}

function openPopCenter(url,height,width,features){
    
	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var featureList = 'height=' + height + ',width=' + width + ',left=' + screenx + ',top=' + screeny;
	if (features != '')
		featureList += ',' + features
		
	var newWin = window.open(url,"window",featureList);
}

function openEmailWindow(url,height,width,features){

	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var featureList = 'height=' + height + ',width=' + width + ',left=' + screenx + ',top=' + screeny;
	if (features != '')
		featureList += ',' + features

	url = url + "?CallingPage=" + window.location

	var newWin = window.open(url,"window",featureList);
}


function showHide(tblId)
{

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		tblId.oldLeft = tblId.style.left
		tblId.style.left = tblId.style.left + 10
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft
	}
}

function showHideIcon(tblId, ico)
{

	var icoObj

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		tblId.oldLeft = tblId.style.left
		tblId.style.left = tblId.style.left + 10

		icoObj = document.all(ico)
		icoObj.src = "/images/minus_icon.gif"
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft

		icoObj = document.all(ico)
		icoObj.src = "/images/plus_icon.gif"
	}
}


function doNothing(){}

/*
 * Gets the value of the specified cookie.
 *
 * name  Name of the desired cookie.
 *
 * Returns a string containing value of specified cookie, or null if cookie does not exist.
 *
 */
function getCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

/*
 * Writes out either "Healthcare Professional" or "Consumer", based on value of HollisterUserGroup cookie.
 *
 */

function writeOstomyUserGroupName()
{
	var userGroup;	
	userGroup = getCookie("HollisterUserGroup");
	
	if (userGroup == "3")
		document.write('<tr><td><img border="0" src="/germany/images/ln_label_consumer.gif" width="155" height="10" /></td></tr>')
	else if (userGroup == "4")
		document.write('<tr><td><img border="0" src="/germany/images/ln_label_PK.gif" width="155" height="19" alt="Pflegefachkraft – Krankenhaus" title="Pflegefachkraft – Krankenhaus" /></td></tr>')
	else if (userGroup == "5")
		document.write('<tr><td><img border="0" src="/germany/images/ln_label_PS.gif" width="155" height="19" alt="Pflegefachkraft – Sanitätsfachhandel" title="Pflegefachkraft – Sanitätsfachhandel" /></td></tr>')
}

function writeContinenceUserGroupName()
{
	var userGroup;	
	userGroup = getCookie("HollisterUserGroup");
	
	if (userGroup == "6")
		document.write('<tr><td><img border="0" src="/germany/images/ln_label_cc_consumer.gif" width="155" height="10" alt="Endkunden" title="Endkunden" /></td></tr>')
	else if (userGroup == "8")
		document.write('<tr><td><img border="0" src="/germany/images/ln_label_cc_hcp.gif" width="155" height="22" alt="Fachkräfte aus Medizin, Pflege und Handel" title="Fachkräfte aus Medizin, Pflege und Handel" /></td></tr>')
}

// End --> 



