function changeJSBox(text_msg) {
	var obj = document.getElementById('jstest');
	obj.innerHTML = '<div id="jsmsg"><center>' + text_msg  + '<center></div>';
}

function changeJSBox_f() {
	changeJSBox('Test Javascript réussi! Votre Javascript fonctionne.');
}

function changeJSBox_e() {
	changeJSBox('Javascript Test Successful!  Your javascript is functioning.');
}


function resetJS(text) {
	var obj = document.getElementById('jstest');
	obj.innerHTML = text;
}

function resetJS_e() {
	resetJS('Click the button marked "Test Javascript" to change the contents of this box.<br>If nothing happens it is a good sign that Javascript is currently disabled and you will need to enable it.');
}

function resetJS_f() {
	resetJS('Cliquez sur le bouton « Test Javascript » pour modifier le contenu de cette boîte. S’il ne se produit rien, cela indique probablement que Javascript est actuellement désactivé. Vous devrez l’activer.');
}

function changeBox(text) {
	var obj = document.getElementById('pwtest');
	obj.innerHTML = '<br><center><button class="diagnostic_button" onClick="makePWindow();">' + text +'</button></center>';
}

function changeBox_e() {
	changeBox('Create Pop-up Window');
}

function changeBox_f() {
	changeBox('Création d’une fenêtre instantanée');
}



function makePWindow() {
	window.open("pwdiagnostic.html", "", "top=300,left=300, width=250, height=150");
}