
	arItems = [
	
	[ 2, 1, 'No Min'],
    [ 2, 40000, '£40,000'],
    [ 2, 50000, '£50,000'],
    [ 2, 60000, '£60,000'],
    [ 2, 70000, '£70,000'],
    [ 2, 80000, '£80,000'],
    [ 2, 90000, '£90,000'],
    [ 2, 100000, '£100,000'],
    [ 2, 111000, '£110,000'],
    [ 2, 120000, '£120,000'],
    [ 2, 130000, '£130,000'],
    [ 2, 140000, '£140,000'],
    [ 2, 150000, '£150,000'],
	[ 3, 0, 'No Min'],
    [ 3, 300, '£300 PCM'],
    [ 3, 400, '£400 PCM'],
    [ 3, 500, '£500 PCM'],
    [ 3, 600, '£600 PCM'],
    [ 3, 700, '£700 PCM'],
    [ 3, 800, '£800 PCM'],
    [ 3, 900, '£900 PCM'],
    [ 3, 1000, '£1000 PCM'],
	[ 4, 2, 'No Min'],
    [ 4, 173, '£40 PPPW'],
    [ 4, 216, '£50 PPPW'],
    [ 4, 260, '£60 PPPW'],
    [ 4, 303, '£70 PPPW'],
    [ 4, 346, '£80 PPPW'],
    [ 4, 390, '£90 PPPW'],
    [ 4, 433, '£100 PPPW'],
    [ 4, 476, '£110 PPPW'],
    [ 4, 520, '£120 PPPW'],
	[ 5, 100, 'not used']

	]

	arItems2 = [

	[ 2, 999999, 'No Max'],
    [ 2, 100000, '£100,000'],
    [ 2, 110000, '£110,000'],
    [ 2, 120000, '£120,000'],
    [ 2, 130000, '£130,000'],
    [ 2, 140000, '£140,000'],
    [ 2, 150000, '£150,000'],
    [ 2, 160000, '£160,000'],
    [ 2, 170000, '£170,000'],
    [ 2, 180000, '£180,000'],
    [ 2, 190000, '£190,000'],
    [ 2, 200000, '£200,000'],
    [ 2, 225000, '£225,000'],
    [ 2, 250000, '£250,000'],
	[ 3, 9998, 'No Max'],
    [ 3, 500, '£500 PCM'],
    [ 3, 600, '£600 PCM'],
    [ 3, 700, '£700 PCM'],
    [ 3, 800, '£800 PCM'],
    [ 3, 900, '£900 PCM'],
    [ 3, 1000, '£1000 PCM'],
    [ 3, 1100, '£1100 PCM'],
	[ 3, 1200, '£1200 PCM'],
    [ 3, 1300, '£1300 PCM'],
    [ 3, 1400, '£1400 PCM'],
    [ 3, 1500, '£1500 PCM'],
    [ 3, 1600, '£1600 PCM'],
    [ 3, 1700, '£1700 PCM'],
    [ 3, 1800, '£1800 PCM'],
	[ 4, 9999, 'No Max'],
    [ 4, 216, '£50 PPPW'],
    [ 4, 260, '£60 PPPW'],
    [ 4, 303, '£70 PPPW'],
    [ 4, 346, '£80 PPPW'],
    [ 4, 390, '£90 PPPW'],
	[ 4, 433, '£100 PPPW'],
    [ 4, 476, '£110 PPPW'],
    [ 4, 520, '£120 PPPW'],
    [ 4, 560, '£130 PPPW'],
    [ 4, 606, '£140 PPPW'],
    [ 4, 650, '£150 PPPW'],
	[ 5, 100, 'not used']

    ]

    function fillItems( intStart, intItem, intItem2 ) {

    var fMarket = document.form1.market

    var fItems = document.form1.from

	var fItems2 = document.form1.to

    var a = arItems

	var a2 = arItems2

    var b, c, d, e, intItem, intItem2, intMarket
	

    if ( intStart > 0 ) 
	{
		for ( b = 0; b < a.length; b++ ) 
		{
			if ( a[b][0] == intStart ) 
			{
			intMarket = a[b][0];
			}
		}

	    for ( c = 0; c < fMarket.length; c++ ) 
		{
		    if ( fMarket[ c ].value == intMarket && fMarket[ c ].checked) 
			{
		    fMarket.checked = true;
		    }

	    }

    }

	if ( intMarket == null ) 
	{
		for ( c = 0; c < fMarket.length; c++ ) 
		{
		    if (fMarket[ c ].checked) 
			{
		    intMarket = fMarket[ c ].value;
			}
		}
    }


	fItems.options.length = 0;
	fItems2.options.length = 0;


	for ( d = 0; d < a.length; d++ ) 
	{


		if ( a[d][0] == intMarket ) 
		{
		fItems.options[ fItems.options.length ] = new Option( a[d][2], a[d][1] ); // no line-break here
		}

		if ( a[d][1] == intItem ) 
		{
		fItems.selectedIndex = fItems.options.length - 1;
		}

	}



	for ( e = 0; e < a2.length; e++ ) 
	{


		if ( a2[e][0] == intMarket ) 
		{
		fItems2.options[ fItems2.options.length ] = new Option( a2[e][2], a2[e][1] ); // no line-break here
		}

		if ( a2[e][1] == intItem2 ) 
		{
		fItems2.selectedIndex = fItems2.options.length - 1;
		}

	}

	}


