
var choice='1'; var loc='';
function select(newloc) {
choice=newloc.options[newloc.selectedIndex].value;	
    if (choice=="")
    document.getElementById('text1').focus();}
function run_url() { 
var graal=''; var url='';
graal=document.getElementById("text1").value;
if (choice==1) {
url="http://www.google.ca/search?hl=fr&q="+graal;} 
if (choice==11) {
url="http://qc.search.yahoo.com/search?p="+graal;} 
if (choice==2) {
url="http://ca-fr.altavista.com/web/results?q="+graal;}
if (choice==12) {
url="http://www.youtube.com/results?search_query="+graal;}
if (choice==4) {
url="http://cxa.marketwatch.com/tsx/fr/market/quote.aspx?symbol="+graal;}
if (choice==14) {
url="http://www.fr.canada411.ca/search/si/1/"+graal;} 
if (choice==5) {
url="http://www.facebook.com/home.php?#/s.php?ref=search&init=q&q="+graal;}
if (choice==15) {
url="http://www.cuil.com/search?q="+graal;}
if (choice==6) {
url="http://www.bing.com/search?q="+graal;}
if (choice==16) {
url="http://twitter.com/search/users?q="+graal;}
if (choice==9) {
url="http://www.pagesjaunes.ca/search/si/1/"+graal;} 
 if (choice==3) {
url="http://shop.cafr.ebay.ca/?_from=R40&_trksid=m38&_nkw="+graal;}
if (choice==13) {
url="http://fr.wikipedia.org/wiki/"+graal;} 
 if (choice==7) {
url="http://www.mamma.com/MammaFrenchT?utfout=1&query="+graal;}
 if (choice==17) {
url="http://www26.wolframalpha.com/input/?i="+graal;}
 if (choice==8) {
url="http://www.meteomedia.com/index.php?product=search&pagecontent=results&searchterm=&prodtype=&prodname="+graal;} 
if (choice==10) {
url="http://www.toile.com/search?q="+graal;}
if (choice==18) {
url="http://recherched.gouv.qc.ca/mtq/search.do?query="+graal;}    
 window.open(url,"");
}

function ChangeUrl(formulaire)
	{
	if (formulaire.ListeUrl.selectedIndex != 0)
		{
		location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
	 	}
	else 
		{
		alert('Choisir S.V.P.');
		}
	}

function bookmark(){
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("ToileBec","http://toilebec.com",""); }
else { window.external.AddFavorite("http://toilebec.com","ToileBec"); } }  
 
function homePage(){
	var HomePage='http://toilebec.com';
	document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage(HomePage);    
  };
 
 
 var popUp = null
function citizen()
{
popUp = window.open("https://www.citizensbank.ca/");
	popUp.focus()
}

 var popUp = null
function roy()
{
popUp = window.open("https://www1.royalbank.com/cgi-bin/rbaccess/rbunxcgi?F6=1&F7=IB&F21=IB&F22=IB&REQUEST=ClientSignin&LANGUAGE=FRENCH");
	popUp.focus()
}

 var popUp = null
function scotia()
{
popUp = window.open("https://www.scotiaonline.scotiabank.com/online/start.jsp?language=French");
	popUp.focus()
}   
 
  function validate(form_id,email) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = document.forms[form_id].elements[email].value;
   if(reg.test(address) == false) {
      alert('Courriel invalide !');
      return false; }}
	  
function bookmarkcams(){window.external.AddFavorite('http://toilebec.com/webcams', 'Webcams du territoire québécois')}

 var popUp = null
function nasa()
{
popUp = window.open("http://209.73.189.76/md2enc047?StreamID=81115618&pl_auth=d6ceaa58ce862935742f16e5c4dc333c&ht=120&b=4fbhl4h50g5pd4a08a9b9&CG_ID=1369080&Segment=149773");
	popUp.focus()
} 

 var popUp = null
function tsr()
{
popUp = window.open("http://www.tsr.ch/tsr/index.html?siteSect=500222&play=tsrinfotv");
	popUp.focus()
} 

 var popUp = null
function igoo()
{
popUp = window.open("http://www.google.com/ig?source=gapg&hl=fr");
	popUp.focus()
} 	  

 var popUp = null
function yout()
{
popUp = window.open("http://www.youtube.com/?gl=CA&hl=fr");
	popUp.focus()
} 

 var popUp = null
function wsl()
{
popUp = window.open("http://www.webtelelibre.levillage.org/content/view/197/55/");
	popUp.focus()
} 	 
 
 
 
 
 
 
 
   
