function sendEditFields(form,bgcolor){
    if(window.onSubmitMyCheck)
	if(!onSubmitMyCheck())
	    return false;
    if(onSubmitCheck(document.getElementById(form), true)){
	elements = document.getElementsByTagName('*');
	for (var idx = 0; idx < elements.length; idx++) {
	    node = elements.item(idx);
	    field_name = node.getAttribute('name');
	    field_full_name = 'wysiwyg' + field_name;
	    if(document.getElementById(field_full_name))
		document.getElementById(field_name).value = document.getElementById(field_full_name).contentWindow.document.body.innerHTML;

	}
	document.getElementById(form).submit();
	return true;
    }else
	return false;
}
function restablecer(ele,color){
    if(color == "") color="#ffffff";
    ele.style.background=color;
}
function agregar_bk(url,titulo){
    //IE
    if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
	window.external.AddFavorite(url,titulo);
    }else{
	if(navigator.appName == "Netscape")
	    window.sidebar.addPanel(titulo, url,"");
    }

}
function agregar(url,title){

    var title=String(document.title);
    var url=String(window.location);

    if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',href);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
    }
    else if(document.all)// ie
	window.external.AddFavorite(url, title);
    else {// otros web Browsers
	alert ("Presione Crtl+D para agregar a este sitio en sus Bookmarks");
    }
}

function abrir_menu(){  
    $('#submenu_empresa').show(50); 
    // $("#submenu_empresa").effect('blind', {mode:'show'}, 400);
//$('#submenu_'+menu).css("display", "inline"); 
}
function cerrar_menu(){
        $('#submenu_empresa').hide(500); 
}









