var ie = (document.all)? true:false

function opcionMenu(opcion){
	if(ie){
		parent.document.all.homeDoc.src = opcion;
	}
	else
	{
		parent.document.getElementById('homeDoc').src=opcion;
	}
}

function marcarMenu(op){
	for (var i = 0;parent.document.all.tags("div").length-1;i++)
	{
		if (document.all.tags("div").item(i).className == "opMenuM" )
			//|| document.all.tags("div").item(i).className == "cabMenu"'
		{
				document.all.tags("div").item(i).className = "opMenu"; 	
		} 
		
		if (document.all.tags("div").item(i).id == "divMenu"+op )
			//|| document.all.tags("div").item(i).className == "cabMenu"'
		{
				document.all.tags("div").item(i).className = "opMenuM"; 
		}
		
		
	}
}

function accesoportal(){
	
	if(QueryString("accesoportal") == "si"){
		opcionMenu('busquedaM.aspx');
		marcarMenu('2');
	}
	else{
		window.location.href="http://www.madrid.org/donarsangre";
		
	}
}
