function LaunchModal()
{
  if ((navigator.appName == "Netscape") || (parseInt(navigator.appVersion) <= 3 ))
  {
     var page="/color.html" ;	so=eval("window.open('"+page+"','so','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width=550,height=700,top=0,left=0,maximize=null')")
     document.genFORM.background[6].checked=true;
	 so.focus();
  }
  else
  {
	 var vReturnValue=showModalDialog("/ColorSelect.htm", "", "font-family:Verdana;font-size:12;dialogWidth:30em;dialogHeight:35em");
     if (vReturnValue == -1 || vReturnValue== null)
	 {
		alert('The modal window is closed w/o using the buttons');
	 }
	 else
	 {
		if (vReturnValue == "")
		{
			alert('Nothing is entered in text box')
		}
		else
		{
			document.genFORM.bg.value=vReturnValue;
			document.getElementById('td1').style.backgroundColor=vReturnValue;
			document.getElementById('td2').style.backgroundColor=vReturnValue;
		}
	 }
  }
}

function LaunchModal1()
{
  if ((navigator.appName == "Netscape") || (parseInt(navigator.appVersion) <= 3 ))
  {
     var page="/color.html" ;	so=eval("window.open('"+page+"','so','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width=550,height=700,top=0,left=0,maximize=null')")
  }
  else
  {
	 var vReturnValue=showModalDialog("/ColorSelect.htm", "", "font-family:Verdana;font-size:12;dialogWidth:30em;dialogHeight:35em");
     if (vReturnValue == -1 || vReturnValue== null)
	 {
		alert('The modal window is closed w/o using the buttons');
	 }
	 else
	 {
		if (vReturnValue == "")
		{
			alert('Nothing is entered in text box')
		}
		else
		{			
			document.genFORM.fcolor.value=vReturnValue;
			document.getElementById('fclr1').style.color=vReturnValue;
			document.getElementById('fclr2').style.color=vReturnValue;
			document.getElementById('fclr3').style.color=vReturnValue;
			document.getElementById('fclr4').style.color=vReturnValue;
			document.getElementById('fclr5').style.color=vReturnValue;
		}
	 }
  }
}

