//VALIDATION POUR NETSCAPE
if (navigator.appName != "Microsoft Internet Explorer") {
	window.location.href = "http://www.storygenerator.com/website/netscape.asp"		
	}

function roll(id) {
     document.images[id].src = "_images/" + id + "_on.gif";
     }
function unroll(id) {
     document.images[id].src = "_images/" + id + "_off.gif";
     }

function roll2(id) {
     document.images[id].src = "../_images/" + id + "_on.gif";
     }
function unroll2(id) {
     document.images[id].src = "../_images/" + id + "_off.gif";
     }	
		  
function PopAide(URL) { 
	searchWin1 =  window.open(URL,'StoryGenerator','top=10,left=10, toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0,width=625,height=400');
	searchWin1.focus();	
	}	
		 
function PopMessage() {
	alert("Under development...\nWill be launch on October 15th, 2002");
	}	
		 
function validnum(field,version) {
			var valid = "0123456789";
			var ok = "yes";
			var temp;
			for (var i=0; i<field.value.length; i++) {
				temp = "" + field.value.substring(i, i+1);
				if (valid.indexOf(temp) == "-1") ok = "no";
				}
				if (ok == "no") {
					if (version == "F") {
					alert("Entrée invalide !\nVous devez saisir que des valeurs numériques. \nS.V.P. ré-essayez.");
					}
					if (version == "E") {
					alert("Invalid entry !\nEnter numeric value. \nTry again.");
					}
					field.value ="";
					field.blur();
					field.select();
					}
				}	
				
function validchar(field,version) {
			//var valid = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -,./'0123456789ÉéÀàÙùÊêÂâÎîÔôÇç)(";
			var valid = "></";
			var ok = "yes";
			var temp;
			for (var i=0; i<field.value.length; i++) {
				temp = "" + field.value.substring(i, i+1);
				if (valid.indexOf(temp) == "1") ok = "no";
				}
				if (ok == "no") {
					if (version == "F") {
					alert("Entrée invalide !\nUn caractère utilisé est interdit !. \nS.V.P. ré-essayez.");
					}
					if (version == "E") {
					alert("Invalid entry !\nA character used is forbidden. \nTry again.");
					}
					field.value ="";
					field.blur();
					field.select();
					}
				} 			
