function updateIframeById(id,url)
{
	//alert("id:"+id);
	//alert("url:"+url);
	document.getElementById(id).src = url;
}

function updateIframeByName(name,url)
{
	document.getElementsByName(name)[0].src = url;
}

function setHeader(property,content)
{
	try
	{
	alert(property+" " +content);
	var tag1 = document.createElement('meta'); 
	tag1.setAttribute('property',property); 
	tag1.setAttribute('content',content);
	document.getElementsByTagName('head')[0].appendChild(tag1);
	}
	catch (e)
	{
		alert(e);
	}
	
}

   function abrirPopUp(id) 
       {
            //select all the a tag with name equal to modal
         
                //Get the screen height and width
                var maskHeight = $(document).height();
                var maskWidth = $(window).width();

                //Set height and width to mask to fill up the whole screen
                $('#masku').css({ 'width': maskWidth, 'height': maskHeight });

                //transition effect		
                $('#masku').fadeIn(1000);
                $('#masku').fadeTo("slow", 0.8);

                //Get the window height and width
                var winH = $(window).height();
                var winW = $(window).width();

                //Set the popup window to center
                $(id).css('top', winH / 2 - $(id).height() / 2);
                $(id).css('left', winW / 2 - $(id).width() / 2);

                //transition effect
                $(id).fadeIn(2000);

       }
       
	   
	   

   function abrirPopUps(id) 
       {
            //select all the a tag with name equal to modal
         
                //Get the screen height and width
                var maskHeight = $(document).height();
                var maskWidth = $(window).width();

                //Set height and width to mask to fill up the whole screen
                $('#masks').css({ 'width': maskWidth, 'height': maskHeight });

                //transition effect		
                $('#masks').fadeIn(1000);
                $('#masks').fadeTo("slow", 0.8);

                //Get the window height and width
                var winH = $(window).height();
                var winW = $(window).width();

                //Set the popup window to center
                $(id).css('top', winH / 2 - $(id).height() / 2);
                $(id).css('left', winW / 2 - $(id).width() / 2);

                //transition effect
                $(id).fadeIn(2000);
       }
       
      
       
       function closewinu() {
        $('#masku, .windowu').hide();
       }

	   function closewins() {
        $('#masks, .windows').hide();
       }

	   function openRegister()
	   {
	     window.location="http://www.fedco.com.co/loginfedco.aspx";
	   }
	   
	   
	   function gohome()
	   {
		 window.location ="http://www.fedco.com.co"; 
	   }
	   
	   
	   function openhistorial()
	   {
		 window.location ="http://www.fedco.com.co/historialcompras.aspx"; 
	   
	   }
	   
	   
	   function openLogin()
	   {
		 window.location ="http://www.fedco.com.co/loginfedco.aspx"; 
	   }
	   
	   function opentips()
	   {
	     window.location ="http://www.fedco.com.co/tips.aspx"; 
	   }
	   

