function clearInput( inp, val ) {
	var doin = document.getElementById( inp ) ;
	if( val == doin.value )
		doin.value = '' ;
}

function precobj( id ) {
	if( id ) {
		var frm = document.forms["basketform"].getElementsByTagName( 'input' ) ;
		var poc = 0 ;

		for ( i = 0; i < ( frm.length - 1 ); ++i ) {
			if( frm[i].type == 'text' ) {
				poc = poc + parseFloat( frm[i].value ) ;
			}
		}

		document.getElementById( 'celr' ).innerHTML = poc ;
	}
}
