
function BQC_popup_redirection(strUrl, strTitle, strWidth, strHeight){
  window.open(strUrl,strTitle,'toolbar=no,status=yes,titlebar=yes,menubar=yes,resizable=yes,scrollbars=yes,width=' +strWidth+',height='+strHeight+',left=20,top=20')
}


function BQC_popup(strUrl, strTitle, strWidth, strHeight){
  window.open(strUrl,strTitle,'toolbar=yes,status=yes,titlebar=yes,menubar=yes,resizable=yes,scrollbars=yes, vscrollbars=yes, width=' +strWidth+',height='+strHeight+',left=20,top=20')
}

function BQC_getSelectedRadio(objRadioGroup){
	for (var i=0;i < objRadioGroup.length; i++){
		if(objRadioGroup[i].checked)
			return i;
	}
}

// Bouton reserver des pages statiques de forfaits
function Start(strUrl){
	window.open(strUrl,'','toolbar=no,status=yes,titlebar=no,menubar=no,resizable=yes,scrollbars=yes, vscrollbars=yes, width=749,height=525,left=20,top=20')

}

function BQC_rollOver(strObject,strImagePath){
	eval("document.menuG." + strObject).src=strImagePath;
}

function popupFixe(strUrl, strTitle, strWidth, strHeight){
  window.open(strUrl,strTitle,'toolbar=no,status=no,titlebar=no,menubar=no,resizable=no,vscrollbars=yes, width=' +strWidth+',height='+strHeight+',left=20,top=20')
}

function popupNoTool(strUrl, strTitle, strWidth, strHeight){
  window.open(strUrl,strTitle,'toolbar=no,status=no,titlebar=no,menubar=no,resizable=no,vscrollbars=yes, width=' +strWidth+',height='+strHeight+',left=20,top=20')
}
function popupNoToolResize(strUrl, strTitle, strWidth, strHeight){
  window.open(strUrl,strTitle,'toolbar=no,status=no,titlebar=no,menubar=no,resizable,scrollbars=yes, width=' +strWidth+',height='+strHeight+',left=20,top=20')
}

// Recherche generique.
function searchByCat(categorie,region,langue,titre) {
	if (langue="f") {
		window.location.href = "/francais/recherche_new/searchCat.asp?titre=" + titre + "&lang=fr&Type=auto&BQC_WEBID=" + categorie + "&BQC_REGIONID=" + region;
	}
	else {
		window.location.href = "/anglais/recherche_new/searchCat.asp?titre=" + titre + "&lang=en&Type=auto&BQC_WEBID=" + categorie + "&BQC_REGIONID=" + region;
	}
}

// 
function openpopup(langue) {
	if (langue=="fr") {
		window.open("/francais/general/envoi/index.asp?url=" + window.document.location.href,"test","width=600,height=475,scrollbars=no,location=no,menubar=no,resizable=no,status=no,toolbar=no");
	} else {
		window.open("/anglais/general/envoi/index.asp?url=" + window.document.location.href,"test","width=600,height=475,scrollbars=no,location=no,menubar=no,resizable=no,status=no,toolbar=no");
	}
}
/*	##########################################################################
					Cette fonction retourne le bon siteid en fonction du Url.
		########################################################################## */
function goforfait(page){
	var url = new String(parent.location.href);

	if (url.match("sympatico.ca") || url.match("/fr/")) {
		page = page.replace("putSiteId","9710834");
	} else {
		page =page.replace("putSiteId","10291093")
	}
	window.location.href=page;

}


