//############################################################################
//                 GELIEVE DEZE BOODSCHAP NIET TE VERWIJDEREN                #
//############################################################################
//                         CREATED BY MARCO PELSSERS                         #
//                                   FOR                                     #
//                                ARTIMEDES                                  #
//   info@mpolo.be                                             24/11/2009    #
//############################################################################
//                 		   ALLE RECHTEN VOORBEHOUDEN                         #
//############################################################################

var xmlHttp;

function GetXmlHttpObject() {
	var xmlHttp=null;
	try {
	 // Firefox, Opera 8.0+, Safari
	 xmlHttp=new XMLHttpRequest();
	}catch (e) {
	 // Internet Explorer
	 try  {
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e)  {
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	 }
	}
	return xmlHttp;
}


function RenameImgFields(myid,maxnr) {
	//alert(myid+" - "+maxnr);
	
		for(var i=myid;i<maxnr;i++){
			var j = ((i+1)*1);
			document.getElementById('qty'+j).name = 'qty'+i;
			document.getElementById('product'+j+'[bestandsnaam]').name = 'product'+i+'[bestandsnaam]';
			document.getElementById('product'+j+'[breedte]').name = 'product'+i+'[breedte]';
			document.getElementById('product'+j+'[hoogte]').name = 'product'+i+'[hoogte]';
			document.getElementById('product'+j+'[omlijsting]').name = 'product'+i+'[omlijsting]';
			document.getElementById('product'+j+'[effect]').name = 'product'+i+'[effect]';
			document.getElementById('price'+j).name = 'price'+i;
			
			document.getElementById('remove'+j).id = 'remove'+i;
			document.getElementById('qty'+j).id = 'qty'+i;
			document.getElementById('product'+j+'[bestandsnaam]').id = 'product'+i+'[bestandsnaam]';
			document.getElementById('product'+j+'[breedte]').id = 'product'+i+'[breedte]';
			document.getElementById('product'+j+'[hoogte]').id = 'product'+i+'[hoogte]';
			document.getElementById('product'+j+'[omlijsting]').id = 'product'+i+'[omlijsting]';
			document.getElementById('product'+j+'[effect]').id = 'product'+i+'[effect]';
			document.getElementById('price'+j).id = 'price'+i;	
			
			document.getElementById('pcont'+j+'[aantal]').id = 'pcont'+i+'[aantal]';
			document.getElementById('pcont'+j+'[breedte]').id = 'pcont'+i+'[breedte]';
			document.getElementById('pcont'+j+'[hoogte]').id = 'pcont'+i+'[hoogte]';
			document.getElementById('pcont'+j+'[omlijsting]').id = 'pcont'+i+'[omlijsting]';
			document.getElementById('pcont'+j+'[effect]').id = 'pcont'+i+'[effect]';
			document.getElementById('pcont'+j+'[price]').id = 'pcont'+i+'[price]';
		}
	}
	

