// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults




 Effect.Combo = function(element) {
     element = $(element);
     if(element.style.display == 'none') { 
	 	

          new Effect.SlideDown(element, { duration: 1.0 }); 
		 
     }else { 
          new Effect.SlideUp(element, { duration: 1.0 });
     }
	 element.style.display == 'none'
 }
 
 
 function popup(url, title) {
  window.newwindow = window.open(url,title, 'height=350,width=650,status=no');
  return false;
}
function show(element){

	if (element == 'order_Detail') {
		element2 = $('order_preview');
	element = $(element);
	element.style.visibility = 'visible'
		
			element2.style.visibility = 'hidden'
			
	}
	else {	
	
	if (element == 'order_preview') {
	element2 = $('order_Detail');
	element = $(element);
	element.style.visibility = 'visible'
		
			element2.style.visibility = 'hidden'
			
			
	
	
	}
}}


function imprSelec(nombre)
{
  var ficha = document.getElementById(nombre);
  var ventimp = window.open(' ', 'popimpr');
  ventimp.document.write( ficha.innerHTML );
  ventimp.document.close();
  ventimp.print( );
  ventimp.close();
} 