<!--

var body = 0;
linkvar = 0;

function prompt2(String , msg, tags, tags2) {
String = prompt(msg, '');
if (String != "" || null) {document.Form1.none.value=document.Form1.none.value + tags + String + tags2 + '\r'
}
}

function Background(hexNumber){
document.bgColor=hexNumber
}

function colors() {
body = 1;
document.Form1.none.value=document.Form1.none.value + 
'<Body BGcolor=' + 
document.Form1.Bgcolor.options[document.Form1.Bgcolor.selectedIndex].value + 
'\rTEXT=' +
document.Form1.text.options[document.Form1.text.selectedIndex].value + 
'\rVlink=' + 
document.Form1.vlink.options[document.Form1.vlink.selectedIndex].value + 
'\rAlink=' +
document.Form1.alink.options[document.Form1.alink.selectedIndex].value + 
'\rLink=' + 
document.Form1.links.options[document.Form1.links.selectedIndex].value + 
'>'
}

function list(type) {
num = prompt('Combien de thèmes dans la liste', '');
if (num != "" || null) {document.Form1.none.value=document.Form1.none.value + '<' + type+ '>\r'}
for (i = 0; i < num; i++){
text = prompt('SVP saisissez un thème','');
if (text != "" || null) {
document.Form1.none.value=document.Form1.none.value + '<LI>' + text + '\r'}
}
document.Form1.none.value=document.Form1.none.value + '</' + type + '>\r'
}

function prompt3(String , msg, tags, tags2) {
String = prompt(msg, '');
if (String != "" || null) {document.Form1.none.value=document.Form1.none.value + tags + '"' + String + '"' + tags2 + '\r'
}
}

function addlink() {
var L=prompt('Saisissez l\' adresse complète du lien','');
var N=prompt('Saisissez le nom du lien tel qu il apparaîttra','');
if (L || N != "" || null) {document.Form1.none.value=document.Form1.none.value + '<A HREF="' + L + '">' + N + '</A>' + '\r'}
}

function addtag(tag) {
document.Form1.none.value=document.Form1.none.value + tag + '\r'
}

function hr() {
var size=prompt('Quelle largeur de séparation','');
if (size != "" || null) {document.Form1.none.value=document.Form1.none.value + '<HR size=' + size + '>\r'
}
}

function addform() {
if (confirm('Souhaitez vous vraiment commencer un formulaire ?')){
if (confirm('Vous souhaitez un formulaire avec action et méthode ?')) {
var action = prompt('Saisissez une action', '');
var method = prompt('Saisissez une méthode' , '');
document.Form1.none.value = document.Form1.none.value + "<Form action=" + action + "\nMethod=" + method + ">"}
else {document.Form1.none.value=document.Form1.none.value + '<FORM>'} 
}
else { alert('Annulation !'); }
}

function addformbutt(){
if (confirm('Etes vous sur de vouloir insérer un bouton ?')){
var buttname = prompt('Saisissez le nom du bouton' , '');
var buttvalue = prompt('Saisissez le message qui apparaîttra dessus' , '');
document.Form1.none.value = document.Form1.none.value + "<Input type=Button name=" + buttname + 
'\rValue="' + buttvalue + '">';
}
else { alert('Annulation !'); }
}

function addformtext() {
if (confirm('Etes vous sur de vouloir insérer une boite de texte')) {
var textname = prompt('Saisissez le nom de la boite de texte' , '');
document.Form1.none.value = document.Form1.none.value + '<Input type = Text name=' + textname + '\nvalue=""' + '>'
}
else { alert('Annulation !'); }
}

function addformtextarea() {
if (confirm('Etes vous sur de vouloir insérer une boite de texte multiligne ?')) {
var textareaname = prompt('Nom de la boite de texte multiligne ?', '');
var textcols = prompt('Combien de colonnes ?', '');
var textrows = prompt('Combien de lignes ?' , '');
document.Form1.none.value = document.Form1.none.value + '<Textarea name=' + textareaname + '\nCOLS="' + textcols + '"' + '\nRows="' + textrows + '"' + '></Textarea>'
}
else { alert('Annulation !') }
}

function addformselect() {
if (confirm('Etes vous sur de vouloir insérer une liste déroulante ?')) {
var selectname = prompt('Donnez un nom à votre liste' , '');
document.Form1.none.value = document.Form1.none.value + '<Select name=' + selectname + '>\n'
var selectobjs = prompt('Combien de thèmes pour votre liste ?', '');
for (s = 0; s < selectobjs; s++) {
var selitems = prompt('Saisissez un nom de thème' , '');
document.Form1.none.value = document.Form1.none.value + '<Option>' + selitems + '\n'
}
document.Form1.none.value = document.Form1.none.value + '</select>'
}
else { alert('Annulation !'); }
}

function addformcheck() {
if (confirm("Etes vous sur de vouloir insérer une case à cocher ?")) {
var checkname = prompt('Donnez un nom à votre case' , '');
document.Form1.none.value = document.Form1.none.value + 
'<INPUT TYPE=checkbox name=' + checkname + '>' 
}else { alert('Annulation !'); }
}

function addformradio() {
if (confirm('Etes vous sur de vouloir insérer une case radio ?')) {
var radioname = prompt('Donnez un nom à votre case' , '');
document.Form1.none.value = document.Form1.none.value + '<INPUT TYPE=radio name=' + radioname + '>'
}else { alert("Annulation !"); }
}

function end() {
if (body == 0) { addtag('</HTML>') }
else { addtag('</BODY></HTML>') }
}

function writ() {
f = window.open();
f.document.write(document.Form1.none.value);
}

//-->
