var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=no'
win = window.open(mypage,myname,settings)
}

function hideshow(obj) { 
	if (parseInt(navigator.appVersion) >= 5 || navigator.appVersion.indexOf["MSIE 5"] != -1) {
		if (document.getElementById(obj).style.display=="none") 
			document.getElementById(obj).style.display="";
		else
			document.getElementById(obj).style.display="none";
	}
} 	

function homeins() {
	if(document.frmins.email.value==""){document.frmins.email.focus();alert("Veuillez S.V.P. inscrire votre courriel");return false;}
	var ema = document.frmins.email.value
	ll('ins', 'loadins');
	showcontent('li=1&c='+ema, '/formins.asp', 'ins');
	return false;
}

function chbio(divid) {
	hideshow(divid)
	showcontent('li=1', '/textes/'+divid+'.html', divid);
	return false;
}

function openquest() {
	var tmprnd = Math.round(Math.random()*1000000); 
	NewWindow('quest.asp',tmprnd,990,500,"yes")
}

function insquest() {
	if(document.frmins.email.value==""){document.frmins.email.focus();alert("Veuillez S.V.P. inscrire votre courriel");return false;}
	var ema = document.frmins.email.value
	ll('insq', 'loadins');
	showcontent('li=1&c='+ema, '/quest/ins_quest.asp', 'insq'); 
	return false;
}
