// JavaScript Document

function setHome()
  {
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(window.location.href);
  }

function addfav()
  {
   if (document.all)
     {
      window.external.AddFavorite
      (window.location.href, document.title)
     }
   }


function addFav(){
    var url      = "http://www.as2.com.br";
    var title    = "AS2.com.br - Grandes soluções para você e seus negócios!";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}

function openform(url) {
var url = url + "?url=" + document.location
	var NS = (document.layers) ? true : false;
	var IE = (document.all) ? true : false;

if(NS) {
	window.open(url,"","scrollbars=no,menubar=no,personalbar=no,width=500,height=310,screenX=220,screenY=0");
} else if(IE) {
	window.open(url,"","scrollbars=no,menubar=no,personalbar=no,width=500,height=280,left=220,top=0");
}

}


function emailRecomende(){
	window.open("recomende.php", "Recomende", "width=530, height=330");
    }

