var bookmarkurl="http://www.planreduc.com";
var bookmarktitle="Code de reduction";
function addbookmark()
{
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

function gotolink() {
   var lk  = '';
  // alert(arguments.length);
   if (arguments[0])
   {
     lk = 'http' + '://';
   }
        
   if (arguments.length > 2)
   {
     lk = lk + arguments[1].substr(1, arguments[1].length - 1);
   }
   
   for (i = 2; i < arguments.length; i++) {
      lk = lk + arguments[i];
   }   
     window.location.href=lk;
	 
}

function partenaire(voir,bouton,url2) {

		{	
			var NumDiv = 1;
			if ( document.getElementById ) // Pour les navigateurs récents
				{
					while ( document.getElementById( 'voircode' + NumDiv) )
						{
							SetDiv = document.getElementById( 'voircode' + NumDiv );
							if ( SetDiv && SetDiv.className != '' )
								{
document.getElementById( 'voircode' + NumDiv ).className = "divok";
document.getElementById( 'boutoncode' + NumDiv ).className = "divhidden";
								}
							NumDiv++;
						}
				}
else if ( document.all ) {
document.all[ voir ].className = "divok";
document.all[ bouton ].className = "divhidden";
}
	
			}

var top=(screen.height-800)/2;
var left=(screen.width-1024)/2;
window.open(url2,'comment2','top='+top+',left='+left+',width=1024,height=800,scrollbars=1,resizable=1');
self.focus()
}


function partenaire2(voir,bouton,url2) {

if ( document.getElementById ) {
document.getElementById(voir).className = "divok";
document.getElementById(bouton).className = "divhidden";
}
else if ( document.all ) {
document.all[ voir ].className = "divok";
document.all[ bouton ].className = "divhidden";
}

var top=(screen.height-800)/2;
var left=(screen.width-1024)/2;
window.open(url2,'comment2','top='+top+',left='+left+',width=1024,height=800,scrollbars=1,resizable=1');
self.focus()

}
