<!--

//==============================================================================
	function round_decimals(num,bSign){
//==============================================================================
		num = num.toString().replace(/\£|\,| /g , '');
		if(isNaN(num))
			num = "0.00";
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num*100+0.50000000001);
		pennies = num%100;
		num = Math.floor(num/100).toString();
		if(pennies<10)
			pennies = "0" + pennies;
		for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
			num = num.substring(0,num.length-(4*i+3)) + ',' + num.substring(num.length-(4*i+3));
		return (((sign)?'':'-') + (bSign?'£':'') + num + '.' + pennies);
	}
//------------------------------------------------------------------------------

//==============================================================================
	function CheckNumeric(){
//==============================================================================
	
	   // Get ASCII value of key that user pressed
	   var key = window.event.keyCode;
	
	   // Was key that was pressed a numeric character (0-9)?
	   if ( key > 45 && key < 58 )
		  return; // if so, do nothing
	   else
		  window.event.returnValue = null; // otherwise, 
									   // discard character
	}
//------------------------------------------------------------------------------

//==============================================================================
	function ShowConflictingFormInputs(bDisplay,strExcept) {
//==============================================================================
		//alert("In ShowConflictingFormInputs");
		if ( navigator.appName.indexOf("MSIE") ) {
			//for ( var S = 0; S < document.forms.length; S++ ){
				for ( var R = 0; R < document.quoteform.length; R++ ) {
					if ( document.quoteform.elements[R].options ) {
						//alert(document.quoteform.elements[R].name);
						if (document.quoteform.elements[R].name != strExcept){
							if ( bDisplay ){
								document.quoteform.elements[R].style.visibility = 'visible';
							}else{
								document.quoteform.elements[R].style.visibility = 'hidden';
							}
						}
					}
				} 
			//}
		}
		//alert("Out ShowConflictingFormInputs");
	}
//------------------------------------------------------------------------------

//==============================================================================
function CheckPositiveInteger()
//==============================================================================
{
	// Get ASCII value of key that user pressed
	var key = window.event.keyCode;
	
	// Was key that was pressed a numeric character (0-9)?
	if (( key > 47 && key < 58 ) ){
		//alert("NO!!!");
		return; // if so, do nothing
	}else
		window.event.returnValue = null; // otherwise, 
	// discard character
}
//------------------------------------------------------------------------------
-->
