function initcc2 () {
	var o = document.getElementById("cnt");
	var o2 = document.getElementById("cnt_r");
	var o3 = document.getElementById("cnt_l");
	if(o){var a = (o.offsetHeight);}
	if(o2){o2.style.height = a + "px" ;}
	if(o3){o3.style.height = a + "px" ;}
}

function goblank (url) {
	window.open(url);
}

function go (url) {
	window.location.href = url;
}

function activ_acces (){
	var o = document.getElementById("acces_blok");
	if(o.style.display == "none") {
		o.style.display = "inline";
		initcc2();
	}else {
		o.style.display = "none";
		initcc2();
	}
}

function checkmodweb() {
 var o = document.getElementById("f_website_source");
 if (o.value == "partenaire"){
	o.value = "url";
 }else {
	o.value = "partenaire";
 }
}

function swapclass(a,b){
	var o = document.getElementById(a);
	a.className = b;
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
function photoresize(){
	var o = document.getElementById("photopart");
	if(o){
		//alert(o.offsetWidth);
		if(o.offsetWidth > "600"){
		o.style.width = "600px";
		} 
	}
	initcc2 ();
}

function masterkey(){
	var contner;
				var keywordbox = document.getElementById('keywordbox');
				if (keywordbox) {
					var alldiv = keywordbox.getElementsByTagName("div");
					for (var i=0; i<alldiv.length;i++) {
						node = alldiv[i];
						if(node.className == "kwall"){
							//document.write("kwall "+node.offsetWidth+"<br />"); 
							contner = node;
						}
						if(node.className == "cntkey"){
							//document.write("cntkey "+node.offsetWidth+"<br />");
							contner.style.width = node.offsetWidth + 20 + "px";
						}
						
					}
				}
			
}
