//************************************************
//
// Write inside the following function the actions 
// you want to be perfomed where the attribute was 
// changed.
//
//************************************************
function triggerAttributeChange(attributeId)
 {
 setFrameSrc('products/getPhoto.php?id='+attributeId);
 }
 
 
//************************************************
//LEAVE THE FOLLOWING UNCHANGED
//************************************************

function setSubAttributes(id,suba)
 {
  var sa=document.getElementById('subattributes');
  var att='';
  var attributes='';
  var sval=1;
  
  for (var i=0;i<sa.childNodes.length;i++)
   {
	var did=String(sa.childNodes[i].id);
    if (did.indexOf('div_')>-1) 
	 {
      att=att+did.substring(4)+';';

	  if (did.substring(4)!=suba)
	   {
        if (sval==1) attributes=attributes+document.getElementById(did.substring(4)).value+';;';
	   }else
	    {
	     sval=0;
		}
	 }
   }
  var url='attributespliter/subAttributes.php?id='+id+'&subattribute='+suba+'&subattributes='+att+'&attributes='+attributes;
  setFrameSrc(url);
 }

