자바스크립트의 오류를 지적해줍니다

자바스크립트의 오류를 지적해줍니다

<Script>
function View() {
var sr = fo.editor.value;
var tr = fo.edi.value;
id=window.open(”,”,’width=300,height=200′)
id.document.write(tr+sr+'<body bgcolor=black>’);
if(fo.editor.value==”)id.document.write(‘<title>스크립트오류테스팅</title><body bgcolor=black><font color=lime size=2 face=돋움>오류없음’);
id.document.close();
return true;}
function ClearText() {
fo.editor.value=””;
return;}
< !—////////////////////////////
// 최호석 //
// 2001.7.6 //
// zmaster //
////////////////////////////
—>
< /script>

<form name=fo>
< input type=”button” value=”테스팅” omclick=”View()” >
< input type=”button” value=”지우기” omclick=”ClearText()” >
< input type=”reset” name=” Restart ” value=”기본형”>
<br>
< textarea name=”editor” rows=10 cols=30>
< script>alert(”
< /script>
< script>window.open(”
< /script>
< /textarea>
< textarea name=”edi” style=visibility:hidden>
< script>
function error(msg, url, linenumber){
document.write(‘<body bgcolor=><font size=2 color=lime face=돋움><B>ERROR!!<br>script에러 : ‘+msg+'<br>file : ‘+url+'<br>이화일소스내용중 ‘+linenumber+’번째줄확인요망’)
return true
}
window.omerror=error
< /script>
< /textarea>
< /form>