function lookatmebaby(obj,id)
{
	if (obj.options[obj.options.selectedIndex].value == 1 || obj.options.selectedIndex == "")
	{
		document.getElementById(id).style.display = "none";
	}
	else
	{
		document.getElementById(id).style.display = "block";
	}
}



function OMconfirm(msg,url) {
	if ( confirm( msg ) ) {
		location = url;
	}
}


function activation(chkBx1){

	bx1 =  document.getElementById(chkBx1);


	 if (bx1.disabled == false){
	 	bx1.disabled = true;
	 }
	 else
	 {
	 	bx1.disabled = false;
	 }
	 
}

function setActif1(chkBox,chkBox2){

	bx1 = d.getElementById(chkBox);
	bx2 = d.getElementById(chkBox2);


	if (bx1.checked){
		bx2.disabled = false;

	}
	else
	{
		bx2.disabled = true;
	}

}


function OpenAspxUploaderPopUp(URL)
{
	var width = 425;
	var height = 150;
	var left = (screen.width-width)/2
	var top = (screen.height-height)/2
	window.open(URL, 'AspxUploaderPopUp', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'')
}

function AddNewFile(filename){
	var input = document.getElementById('f');
	input.value = filename;
}
