привет можете помоч! - пример выбираю первое имя auto1 значит catalog3=легковые1,грузовые2,др гие3... или games(catalog2) значит catalog3=3дигры, 2дигры, семейные.
<table cellSpacing=1 cellPadding=1 width="400" BGCOLOR="#FF8040" align="left" border=1>
<tr>
<td bgcolor=#FF8040 width="100%" align="left">
<table cellSpacing=1 cellPadding=1 width="100%" BGCOLOR="#FF8040" align="left" border=1>
<tr>
<td width="60%"><font color="#000000" size=-1><b> language:</b></font></td>
<td width="40%">
<select name="catalog1" onchange="reName(document.gbook)">
<option value="0">--------------------------------</option>
<option value="deutsch">deutsch</option>
<option value="english">english</option>
<option value="russian">russian</option>
<option value="spain">spain</option>
<option value="italia">italia</option>
<option value="0">--------------------------------</option>
</select><br /></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> category:</b></font></td>
<td width="40%">
<select name="catalog2" onchange="reName(document.gbook)">
<option value="0">--------------------------------</option>
<option value="auto">auto</option>
<option value="computer">computer</option>
<option value="games">games</option>
<option value="house">house</option>
<option value="programs">programs</option>
<option value="work">work</option>
<option value="0">--------------------------------</option>
</select><br /></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> subcategory:</b></font></td>
<td width="40%">
<select name="catalog3" onchange="reName(document.gbook)">
<option value="0">--------------------------------</option>
<option value="papka1">papka1</option>
<option value="papka2">papka2</option>
<option value="papka3">papka3</option>
<option value="papka4">papka4</option>
<option value="papka5">papka5</option>
<option value="papka6">papka6</option>
<option value="0">--------------------------------</option>
</select><br /></td>
</tr>
--------------------------------------
ето весь код.............
<html><head>
<link rel="shortcut icon" href="l.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv=Content-Language content=es><Meta name="leon" Content="php5">
<Meta name="Description" Content="empresa"><Meta name="Keywords" Content="empresa">
<META content=all name=robots>
<title>: registry text</title>
</head>
<script language="JavaScript">
function maxlength_lang(form){
var a = new Array();
switch (form.catalog1.value){
case '0':
a=0;
break;
case '1':
a=0;
break;
case '2':
a=0;
break;
}
var maxlength=201+a;
str=form.message.value;
dlina=str.length;
if(dlina>maxlength)form.message.value=str.substring(0,maxlength);
form.lang.value=(maxlength-dlina);}
required = new Array("mailto", "mailfrom", "subject", "message");
required_show = new Array("1", "2", "Tema", "Message");
function SendForm () {
var i, j;
for(j=0; j<required.length; j++) {
for (i=0; i<document.forms[0].length; i++) {
if (document.forms[0].elements[i].name == required[j] && document.forms[0].elements[i].value == "" ) {
alert('Texto "' + required_show[j] + '"');
document.forms[0].elements[i].focus();
return false;
}
}
}
return true;
}
</script>
<BODY OnLoad="window.defaultStatus='Leon'" bgcolor="#000000">
<form name="gbook" target="_self" method="post" action="gbook_add.php">
<table cellSpacing=1 cellPadding=1 width="400" BGCOLOR="#FF8040" align="left" border=1>
<tr>
<td bgcolor=#FF8040 width="100%" align="left">
<table cellSpacing=1 cellPadding=1 width="100%" BGCOLOR="#FF8040" align="left" border=1>
<tr>
<td width="60%"><font color="#000000" size=-1><b> language:</b></font></td>
<td width="40%">
<select name="catalog1" onchange="reName(document.gbook)">
<option value="0">--------------------------------</option>
<option value="deutsch">deutsch</option>
<option value="english">english</option>
<option value="russian">russian</option>
<option value="spain">spain</option>
<option value="italia">italia</option>
<option value="0">--------------------------------</option>
</select><br /></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> category:</b></font></td>
<td width="40%">
<select name="catalog2" onchange="reName(document.gbook)">
<option value="0">--------------------------------</option>
<option value="auto">auto</option>
<option value="computer">computer</option>
<option value="games">games</option>
<option value="house">house</option>
<option value="programs">programs</option>
<option value="work">work</option>
<option value="0">--------------------------------</option>
</select><br /></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> subcategory:</b></font></td>
<td width="40%">
<select name="catalog3" onchange="reName(document.gbook)">
<option value="0">--------------------------------</option>
<option value="papka1">papka1</option>
<option value="papka2">papka2</option>
<option value="papka3">papka3</option>
<option value="papka4">papka4</option>
<option value="papka5">papka5</option>
<option value="papka6">papka6</option>
<option value="0">--------------------------------</option>
</select><br /></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> name:</b></font></td>
<td width="40%"><input type=text name=username size=22 maxLength="40" onMouseOver="this.style.backgroundColor='#EA1213';" onMouseOut="this.style.backgroundColor='#ffffff'"></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> country:</b></font></td>
<td width="40%"><input type=text name=country size=22 maxLength="40" onMouseOver="this.style.backgroundColor='#EA1213';" onMouseOut="this.style.backgroundColor='#ffffff'"></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> city:</b></font></td>
<td width="40%"><input type=text name=city size=22 maxLength="40" onMouseOver="this.style.backgroundColor='#EA1213';" onMouseOut="this.style.backgroundColor='#ffffff'"></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> address:</b></font></td>
<td width="40%"><input type=text name=address1 size=22 maxLength="60" onMouseOver="this.style.backgroundColor='#EA1213';" onMouseOut="this.style.backgroundColor='#ffffff'"></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> telephone:</b></font></td>
<td width="40%"><input type=text name=tel size=22 maxLength="40" onMouseOver="this.style.backgroundColor='#EA1213';" onMouseOut="this.style.backgroundColor='#ffffff'"></td>
</tr>
<tr>
<td width="60%"><font color="#000000" size=-1><b> e-mail:</b></font></td>
<td width="40%"><input type=text name=email size=22 maxLength="40" onMouseOver="this.style.backgroundColor='#EA1213';" onMouseOut="this.style.backgroundColor='#ffffff'"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellSpacing=1 cellPadding=0 width="400" height=15% BGCOLOR="#FF8040" align="center" border=0>
<tr>
<td bgcolor=#FF8040 width="100%" align="center"><br>
<b>Quantity of symbols <input type="text" name="lang" size="2" value="201"> text</b><br>
<textarea name=message rows="10" cols="43" onChange="maxlength_lang(document.gbook)" onKeyUp="maxlength_lang(document.gbook)" onKeyDown="maxlength_lang(document.gbook)" onClick="maxlength_lang(document.gbook)" onKeyPress="maxlength_lang(document.gbook)"></textarea>
<br><br><input type="submit" name="send" value="> > > > > >"><br><br>
<br>
</td>
</tr></table>
</td>
</tr>
</table></form>
<SCRIPT language="Javascript">
<!--
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2) {
(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
-->
</SCRIPT>
</body>
</html>
спасибо!