

function updateVolume(input,idm){
	var volCode = input.form.volCode.value;		
	var myregexp = eval ("/--"+idm+"-[0-9]+/g");			
	var matching = volCode.match(myregexp).toString();	
	matching = matching.replace("--"+idm+"-","");	
	input.form.volume.value = parseInt(matching)+1;
	
	var priceCode = input.form.priceCode.value;			
	var myregexp = eval ("/--"+idm+"-[0-9]+\.[0-9]*/g");		
	var matching = priceCode.match(myregexp).toString();	
	matching = matching.replace("--"+idm+"-","");
	input.form.price.value = matching;	
}

function magnifierCover(path){
	obj = document.getElementById('chkCover');
	obj.parentNode.removeChild(obj);
	document.body.appendChild(obj);
	obj.style.left = mouseX + 20 + 'px';
	obj.style.top  = mouseY + 20 + 'px';
	obj.innerHTML = '<img src="'+path+'" border="0" />';
	obj.style.display = 'block';
}

function closeMagnifier(){
	obj = document.getElementById('chkCover');	
	obj.style.display = 'none';
}
