function clearbox(object,default_text){
	if(object.value == default_text){
		object.value= '';
		}
	}
function searchsubmit(form){
	window.location = '/search/'+escape(form.query.value);
	return false;
	}
function disablesubmit(form,btnName){
	form[btnName].disabled = true;
	form[btnName].value = 'Please Wait...';
	}
function showflag(){
	var uri;
	var fragment;
	var loc;
	arr = new Array;
	uri = ''+window.location+'';
	if(uri){
		arr = uri.split('#');
		loc = arr[0];
		fragment = arr[1];
		}
	if(fragment){
		obj = document.getElementById('div_'+fragment);
		if(obj){
			if(fragment == 'product-added'){
				obj.innerHTML = '<h1>Added to <a href="/consumer/cart.html" style="color: #f10000;">Cart</a></h1>';
			}else{
				obj.innerHTML = 'Added to <a href="/consumer/cart.html" style="color: #f10000;">Cart</a>';
				}
			
			obj.style.display = 'block';
			obj.style.color = '#c10000';
			}
		}
	}
	
function clean_decode(io){
	io = io.replace(/\/\/SQ/g,"'");
	io = io.replace(/\/\/DQ/g,'"');
	io = io.replace(/\/\/N/g,"\n");
	io = io.replace(/\/\/R/g,"\r");
	io = io.replace(/\/\/LT/g,"<");
	io = io.replace(/\/\/GT/g,">");

	return io;
	}
	
	
//document.title = document.title+' TOOLS loaded';