чтото не пашет эта функция а может у меня руки кривые хз как зделать

PHP код:
<html>
<head>
<title>forma</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function TagInsert(form, field, Tag,Tag2)
{
form[field].focus();
sel = document.selection.createRange();
sel.text= Tag+sel.text+Tag2;
}
// --->
</SCRIPT>
<body>
<form action="qwe.php" method="get" name="form">
<textarea name="field" cols="30" rows="10">
</textarea>
<br>
<input name="but1" type="button" onClick="Teginsert(form,field,<x>,</x>);" value="centre">
</form>
</body>
</html>