function updateSaleStats(id, mode){
				var content = document.getElementById('TransactionSince').value;
				new Ajax.Updater('saleStats','/authors/ajaxSaleStats/'+content+'/'+id+'/'+mode, 
									{onLoading:function(){ Element.show('indicator');}, 
									 onComplete:function(){ Element.hide('indicator');}, asynchronous:true, evalScripts:true});
				
			}
			
function PassCheck(){
		var pass1 = document.getElementById('UserPasswd').value;
		var pass2 = document.getElementById('UserRepeat').value;
		if(pass1 != pass2){
			document.getElementById('passCheck').style.display = 'block';
			return false;
		}
		else
			document.getElementById('passCheck').style.display = 'none';
			return false;
	}
function blind(id){
			content = document.getElementById(id);
			if(content.style.display=="none"){
				new Effect.BlindDown(id);
			}else{
				new Effect.BlindUp(id);
			}
		}
		
function updateTransactionInfo(id, field){
				var content = document.getElementById(field).value;
				new Ajax.Updater('transaction_info','/authors/moneyRequestInfoFill/'+id+'/'+content, 
									{ asynchronous:true, evalScripts:true});
				
			}		
