function ShowHide(lc_Show,lc_Hide) 
{
  document.getElementById(lc_Hide).style.visibility = 'hidden';
  document.getElementById(lc_Hide).style.display = 'none';
  document.getElementById(lc_Show).style.visibility = 'visible';
  document.getElementById(lc_Show).style.display = 'block';
}


function Show(lc_Show) 
{
  document.getElementById(lc_Show).style.visibility = 'visible';
  document.getElementById(lc_Show).style.display = 'block';
}

function Hide(lc_Hide) 
{
  document.getElementById(lc_Hide).style.visibility = 'hidden';
  document.getElementById(lc_Hide).style.display = 'none';
}

function RemovePack(ln_Pack)
{
	document.getElementById('calcWidth').value = '';
	document.getElementById('calcHeight').value = '';
	document.getElementById('packs').value = '';
		lc_Hide = ln_Pack
		Hide(lc_Hide);
	}	
	
function RemovePack1(ln_Pack)
{
	document.getElementById('calcWidth1').value = '';
	document.getElementById('calcHeight1').value = '';
	document.getElementById('packs1').value = '';
		lc_Hide = ln_Pack
		Hide(lc_Hide);
	}	

	

function RemoveAttribute(ln_Attribute)
{
	document.getElementById('att' + ln_Attribute + 'val').value = '';
	document.getElementById('att' + ln_Attribute + 'name').value = '';
	
	lc_Hide = 'attribute' + ln_Attribute;
	Hide(lc_Hide);
	
	if (ln_Attribute == 1)
	{
		document.getElementById("attributes").checked = true;
	}
	
}

function RemoveAdditionalImg(ln_Image)
{
	var lc_ImgField = 'newimgmain' + ln_Image;
	
	document.getElementById(lc_ImgField).value = '';
	
	lc_Hide = 'additionalimg' + ln_Image;
	Hide(lc_Hide);
	
	if (ln_Image == 1)
	{
		document.getElementById("additionalimgs").checked = true;
	}
	
}

function RemoveAssociated(ln_Associated)
{
	document.getElementById('associated_prod' + ln_Associated + '_display').value = '';
	document.getElementById('associated_prod' + ln_Associated + '_display').disabled = false;
	document.getElementById('associated_prod' + ln_Associated).value = '';
	
	lc_Hide = 'show_associated_prod' + ln_Associated;
	Hide(lc_Hide);
	
	if (ln_Associated == 1)
	{
		document.getElementById("associated").checked = true;
	}
}

function RemoveLocation(ln_Location)
{
	document.getElementById('level1id' +  ln_Location).selectedIndex = 0;
	document.getElementById('level2id' +  ln_Location).selectedIndex = 0;
	document.getElementById('level3id' +  ln_Location).selectedIndex = 0;
	
	if (ln_Location != 1)
	{
		lc_Hide = 'div_level3id' + ln_Location
		Hide(lc_Hide);
		
		lc_Hide = 'div_level2id' + ln_Location
		Hide(lc_Hide);
		
		lc_Hide = 'location' + ln_Location;
		Hide(lc_Hide);
	}	
	
}
