<!--

function checkminmax() 
{

//script to prevent user from selecting incorrect values from the list boxes


var perksreturnvalue
document.form1.from_price.options[document.form1.from_price.selectedIndex ].value
var varmin
var varmax

		varmin=document.form1.from_price.options[document.form1.from_price.selectedIndex ].value
		varmax=document.form1.to_price.options[document.form1.to_price.selectedIndex ].value
	
		myarray= new Array("£",",")

		count=0;
			
			while (count < myarray.length)
					{ 
						varmin=varmin.replace(myarray[count], '');
						varmax=varmax.replace(myarray[count], '');

						count++;
					}
						
	varmin=varmin.replace('Minimum', '0');
	varmax=varmax.replace('Maximum', '100000000');
	//document.form1.showdata.value= varmin +' ' +varmax;

	varmin = parseInt(varmin)
	varmax = parseInt(varmax)
	
		if (varmax > varmin)
			{
					document.perksretval=true
			}
				else
			{
					alert('Please ensure that the Upper price is greater than the Lower price!');
					document.perksretval=false
			}

}

//-->
