function confirmar(msg,url) {
 self.rValue = false;
 if (confirm(msg) == true) {
  window.location.href = url;
 }
}

function over(element,estilo){
	element.addClassName(estilo);
}
function out(element,estilo){
	element.removeClassName(estilo);
}

function libreta(id,tipo,cat){
  new Ajax.Request('libreta.php?rsac=add&tipo='+tipo+'&cat='+cat, { parameters: 'id_modulo='+id , onSuccess: alert('El proveedor ha sido agregado') }); 
}


function addfav() {
	title = "MiPlandeBoda.com";
	url = "http://www.miplandeboda.com";

if (window.sidebar) {
 // Mozilla Firefox Bookmark
 window.sidebar.addPanel(title, url,"");
} else if( window.external ) {
 // IE Favorite
 window.external.AddFavorite( url, title);
} else if(window.opera && window.print) {
 // Opera Hotlist
 return true;} 
} 

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



