var domainroot="www.sodemasa.com"; //dominio para las busquedas

function Busqueda(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}

function CambiaContenido(url) {    

        var browser = navigator.appName;
           var ver = navigator.appVersion;
           var thestart = parseFloat(ver.indexOf("MSIE"))+1;
           var brow_ver = parseFloat(ver.substring(thestart+4,thestart+7));
   
            
            
            if ((browser=="Microsoft Internet Explorer"))
            {
                if (brow_ver < 7)
                {
                   //alert("IE <7");
                    document.getElementById('frmContenido').src=url;              
                }
                else
                {
                   //alert("IE >= 7");
                   document.getElementById('frmContenido').src=url;                      
                }
            }
            else                
            {
                //alert("no IE");                                            
                document.getElementById('frmContenido').src=url;                  
            }

} 

function RecogeParam()
{



var Url = location.href;
Url = Url.replace(/.*\?(.*?)/,"$1");
Variables = Url.split ("&");
for (i = 0; i < Variables.length; i++) {
       Separ = Variables[i].split("=");
       eval ('var '+Separ[0]+'="'+Separ[1]+'"');
}
// para la url de ejemplo
// wwww.midominio.com/page.php?id=13&ref=12
// tendriamos dos variables id y ref con sus valores
//
//Para comprobarlo:
//alert(id);
//alert(ref);

    return (Separ[1]);
}


function CargaContenido()
{
 
    CambiaContenido( RecogeParam() );
}
