File:  [mozdev] / cdn / www / b2spell.php
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Mar 6 11:19:39 2003 UTC (16 years, 1 month ago) by cdn
Branches: MAIN
CVS tags: HEAD
b2 blog cafelog.com

    1: <HTML>
    2: <HEAD><TITLE>Loading Spell Checker</TITLE>
    3: <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    4: <!--
    5: 
    6: function window_onload() {
    7: document.SPELLDATA.formname.value=opener.document.SPELLDATA.formname.value
    8: document.SPELLDATA.subjectname.value=opener.document.SPELLDATA.subjectname.value
    9: document.SPELLDATA.messagebodyname.value=opener.document.SPELLDATA.messagebodyname.value
   10: document.SPELLDATA.companyID.value=opener.document.SPELLDATA.companyID.value
   11: document.SPELLDATA.language.value=opener.document.SPELLDATA.language.value
   12: document.SPELLDATA.opener.value=opener.document.SPELLDATA.opener.value
   13: document.SPELLDATA.action=opener.document.SPELLDATA.formaction.value
   14: 													
   15: 
   16: var flen=opener.document.forms.length
   17: 
   18: var index=flen
   19: for(i=0; i<flen; i++){
   20: 	if(opener.document.forms[i].name==document.SPELLDATA.formname.value){
   21: 		index=i
   22: 		i=flen
   23: 		}
   24: 	}
   25: 	
   26: if(index<flen){
   27: 	var ilen=opener.document.forms[index].elements.length
   28: 	var indexcontrol=ilen
   29: 	if(document.SPELLDATA.subjectname.value!=""){
   30: 		for(i=0; i<ilen; i++){
   31: 			if(opener.document.forms[index].elements[i].name==document.SPELLDATA.subjectname.value){
   32: 				indexcontrol=i
   33: 				i=ilen
   34: 				}
   35: 			}	
   36: 		if(indexcontrol<ilen)		
   37: 			document.SPELLDATA.subject.value=opener.document.forms[index].elements[indexcontrol].value
   38: 		}
   39: 				
   40: 	if(document.SPELLDATA.messagebodyname.value!=""){
   41: 		indexcontrol=ilen
   42: 		for(i=0; i<ilen; i++){
   43: 			if(opener.document.forms[index].elements[i].name==document.SPELLDATA.messagebodyname.value){
   44: 				indexcontrol=i
   45: 				i=ilen
   46: 				}
   47: 			}	
   48: 		if(indexcontrol<ilen)		
   49: 			document.SPELLDATA.messagebody.value=opener.document.forms[index].elements[indexcontrol].value
   50: 		}	
   51: 	document.SPELLDATA.submit()
   52: 	}else{
   53: 		alert("no form found.  Check java function call")
   54: 		window.close()
   55: 		}
   56: }
   57: 
   58: //-->
   59: </SCRIPT>
   60: </HEAD>
   61: <BODY LANGUAGE=javascript onload="return window_onload()">
   62: <FORM action="" method=post name=SPELLDATA LANGUAGE=javascript>
   63: 
   64: 	<H1>Loading Spell Checker. Please wait</H1>
   65:    <INPUT name="formname"  type=hidden > 
   66:    <INPUT name="messagebodyname" type=hidden > 
   67:    <INPUT name="subjectname" type=hidden >
   68:    <INPUT name="companyID"  type=hidden >
   69:    <INPUT name="language"  type=hidden >
   70:    <INPUT name="opener"  type=hidden > 
   71:    <INPUT name="closer"  type=hidden value="finish.asp"> 
   72:    <INPUT name="IsHTML"  type=hidden value=0> 
   73:    
   74:    <P>&nbsp;</P>
   75:    <P>&nbsp;</P>
   76:    <P>&nbsp;</P>
   77:    <P>&nbsp;</P>
   78:    <P>&nbsp;</P>
   79:    <P>&nbsp;</P>
   80:    <P>&nbsp;</P>
   81:    <P>&nbsp;</P>
   82:    <P>&nbsp;</P>
   83:    <P>&nbsp;</P>
   84:    <P>&nbsp;</P>
   85:    <P>&nbsp;</P>
   86:    <P>&nbsp;</P>
   87:    <P>&nbsp;</P>
   88:    <P>&nbsp;</P>
   89:    <P>&nbsp;</P>
   90:    <P>&nbsp;</P>
   91:    <P>&nbsp;</P>
   92:    <P>&nbsp;</P>
   93:    <TEXTAREA name=subject></TEXTAREA> 
   94:    <TEXTAREA name=messagebody></TEXTAREA>
   95: </FORM>
   96: </BODY>
   97: </HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>