document.writeln("<SCRIPT>");
document.writeln("            function showdiv()");
document.writeln("            {");
document.writeln("                document.getElementById(\"words\").style.display = \"block\";               ");
document.writeln("            }");
document.writeln("            ");
document.writeln("            function hiddendiv()");
document.writeln("            {");
document.writeln("                document.getElementById(\"words\").style.display = \"none\";    ");
document.writeln("            }");
document.writeln("            ");
document.writeln("			String.prototype.Trim = function()");
document.writeln("			{");
document.writeln("				return this.replace(\/(^s*)|(s*$)\/g, \"\");");
document.writeln("			}");
document.writeln("            ");
document.writeln("			function setSelectionRange(input, selectionStart, selectionEnd)");
document.writeln("			{");
document.writeln("				if (input.setSelectionRange)");
document.writeln("				{");
document.writeln("					input.setSelectionRange(selectionStart, selectionEnd);");
document.writeln("				}");
document.writeln("				else if (input.createTextRange)");
document.writeln("				{");
document.writeln("					var range = input.createTextRange();");
document.writeln("");
document.writeln("					range.moveEnd(\'character\', selectionEnd);");
document.writeln("					range.moveStart(\'character\', selectionStart);");
document.writeln("					range.select();");
document.writeln("				}");
document.writeln("			}");
document.writeln("            ");
document.writeln("			function update(object, value)");
document.writeln("			{");
document.writeln("				var index1 = value.indexOf(\'@\');");
document.writeln("				if ( index1 == -1 )");
document.writeln("				{");
document.writeln("					object.text.value = value;");
document.writeln("					document.f.code.value=\"\";");
document.writeln("					document.f.cname.value=\"\";");
document.writeln("				}");
document.writeln("				else");
document.writeln("				{");
document.writeln("					var v = value.substring(index1+1) ;");
document.writeln("					var var_arr=v.split(\'@\');");
document.writeln("					document.f.code.value = var_arr[0] ;");
document.writeln("					document.f.cname.value = var_arr[1] ;");
document.writeln("					object.text.value =value.substring(0,index1);");
document.writeln("				}");
document.writeln("				var index = value.toLowerCase().indexOf(object.value.toLowerCase());");
document.writeln("				if (index > -1)");
document.writeln("				{");
document.writeln("					setSelectionRange(object.text, index + object.value.length, value.length);");
document.writeln("				}");
document.writeln("");
document.writeln("			}");
document.writeln("            ");
document.writeln("			new CAPXOUS.AutoComplete(\"kw\",fff);");
document.writeln("            ");
document.writeln("			function fff()");
document.writeln("			{");
document.writeln("				if(document.f.kw.value.Trim().length==0)");
document.writeln("				return;");
document.writeln("				if(document.f.kw.value==\'&\')");
document.writeln("				return;");
document.writeln("				var kword= this.text.value;");
document.writeln("				kword=kword.replace(\/&\/g,\'%26\');");
document.writeln("				kword=kword.replace(\/ \/g,\'+\');");
document.writeln("");
document.writeln("				return \".\/word.php?typing=\" + kword +\"&type=1\";");
document.writeln("			}");
document.writeln("            ");
document.writeln("			function forFeature()");
document.writeln("			{");
document.writeln("				var featureObj=document.getElementById(\'featureId\');");
document.writeln("				if(featureObj.style.display==\"none\")");
document.writeln("					featureObj.style.display=\"\";");
document.writeln("				else");
document.writeln("					featureObj.style.display=\"none\";");
document.writeln("			}");
document.writeln("	<\/SCRIPT>");