
<!--
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 popDefinition(category){

	var frm = document.forms['Products'];
	var id;
	
	if (category == 'OnePiece'){
		// Get value of selected element and pass it on query string to pop-up definition window
		id = frm.elements['OnePiece'].options[frm.elements['OnePiece'].selectedIndex].value;
		if (id != 'x')
			openPopCenter('ostomy_onepiece.asp?id=' + id,390,570,'scrollbars');
	}

	if (category == 'TwoPiece'){
		// Get value of selected element and pass it on query string to pop-up definition window
		id = frm.elements['TwoPiece'].options[frm.elements['TwoPiece'].selectedIndex].value;
		if (id != 'x')
			openPopCenter('ostomy_twopiece.asp?id=' + id,390,570,'scrollbars');
	}
}

function showHideTable(sTblId)
{

	var tblId
	var moveTable

	tblId = document.getElementById(sTblId)

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"
		
		if(isNaN(parseInt(tblId.style.left)))
			tblId.oldLeft = 0
		else
			tblId.oldLeft = parseInt(tblId.style.left)

		moveTable = tblId.oldLeft + 10
		tblId.style.left = eval(String.fromCharCode(34) + moveTable + "px" + String.fromCharCode(34))
		
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft
	}
}

function showHideTableIcon(sTblId, ico)
{

	var icoObj
	var tblId
	var moveTable

	tblId = document.getElementById(sTblId)
	

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"
		
		if(isNaN(parseInt(tblId.style.left)))
			tblId.oldLeft = 0
		else
			tblId.oldLeft = parseInt(tblId.style.left)

		moveTable = tblId.oldLeft + 10		
		tblId.style.left = eval(String.fromCharCode(34) + moveTable + "px" + String.fromCharCode(34))
		
		icoObj = document.getElementById(ico)
		icoObj.src = "/us/images/icon_minus.gif"
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		
		if(!isNaN(tblId.oldLeft))
			tblId.style.left = tblId.oldLeft
		
		icoObj = document.getElementById(ico)
		icoObj.src = "/us/images/icon_plus.gif"
	}
}

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(){}

// End --> 



