Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript Decode 5

Status
Not open for further replies.

BigBadDave

Programmer
May 31, 2001
1,069
EU
See if you can decode this Javascript:

Code:
var fx61=6817;dv='<citd  ouetlyr;a=dcmn.l;e=dcmn.eEeetydw  idwsdbrvrmg`;ucinnm)rtr re;idwoerr=nmvrw5	ucinmkEial( q	allm= o.ouetgtlmnsyae&quot;eei&quot;q	fr(=;a<allmlnt;a+ q		lEe[]cnetdtbe=&quot;req		f(lEe[]cmet! ulq		q		allma.il  Cmet   lEe[]cmetg	}g	q	qq	ucinrvrEial( q	allm= o.ouetgtlmnsyae&quot;eei&quot;q	fr(=;a<allmlnt;a+ q		lEe[]rmvAtiue&quot;otnEial&quot;q		f(lEe[]cmet! &quot;q		q		allma.eoetrbt(tte)g	}g	q	qq	ucinrpaenldscd){g	a e=/WP@IC@*.?>(@|)?<@WP@IC/gq	cd  oerpaer,@nWPIC$>@<-#nld 1-@n/E:N>@&quot;q	rtr oeg}gg	uciniAlwd){g	a eq	vrojg	f(dteal =1 q		euntuq	}es q		e  o.ouetslcing	i sltp =&quot;oto&quot;q		q		oj=slcetRne)prnEeet)g	}es q		oj=slcetRne)0q		q		g	i ojiCnetdtbe q		rtr reg	}es q		rtr asq		q	}g}ggq	ucinapytl(tlVle q	i iAlwd)q	{gg	a oeg	a eetdra=fodcmn.eeto.raeag(q	i syeau =&quot;){g	syeau  tlVlesbtig1 tlVlelnt)g	qq	i fodcmn.eeto.ye= Cnrl){g	apytlT  eetdracmoPrnEeet)g	 es q		f(o.ouetslcincetRne)hmTx =&quot;){g		plSyeo=slceAe.aetlmn(q		 le{g		f(slceAe.aetlmn(.aNm.opeCs( =&quot;PN)| slceAe.aetlmn(.aNm.opeCs( =&quot;&quot;){g		apytlT  eetdraprnEeet)g		i (tlVle= &quot; &(eetdraprnEeet)tgaetUprae)= SA&quot;){g			plSyeormvNd(as)q			dn  reg		}g		 le{g		i syeau =&quot;){g			eetdrapseTL&quot;sa ls=  tlVle+&quot;&quot;+slceAe.tlet+&quot;/pn&quot;q			q			oe=tuq		}g	}g	q	i dn =tu){g	apytlT.lsNm  tlVleg	qq	}g}ggfnto ipaUeSye( q	vrtetl  e ra(;g	a hSyeet=nwAry)q	vrsyexssg	ofhes=tpfodcmn.tlSet.eghg	f(ofhes>0 q		o i1i=ofhesi+ q		nOSye  o.o.ouetsyehesnOSet-)rlslntq			o x0xnOSye;+)q			syeau  o.o.ouetsyehesnOSet-)rlsx.eetretgg			/syehe uecnan   inr n tlsta otcnana.te r O srsye)g			f(tlVleidxf&quot;&quot; =0 qq				/syehe ueden oti q				f(tlVleidxf&quot;&quot;  ){gg				/syecnan   tbgnigg				f(tlVleidxf&quot;&quot; =0 q					tlTx  tlVlesbtig1syeau.eghq					hSyetetl.egh  tlVleg				tetlTx[hSyeetlnt]=syeetgg				 le{g				/ tl otisa.nta einnq					f(tlVleidxf&quot;&quot;  ){g					tlTx  tlVlesbtigsyeau.neO(.)1syeau.eghq					syeau  tlVlesbtigsyeau.neO(.)syeau.eghqq					tetlTx[hSyeetlnt]=syeet				q					tetl[hSyelnt]=syeauq								q				}gg			/ otisBT   n  q				 le{g				tlVle=syeau.usrn(tlVleidxf&quot;&quot;,tlVleidxf&quot;&quot;)g			q				fr(=;<hSyelnt;+){g				i syeau =tetl[] q					syexss=tuq					q				}g			q				i syexss! re q					hSyetetl.egh  tlVlegg				syeet=syeau.usrn(tlVleidxf&quot;&quot;+,tlVlelnt)g				tetlTx[hSyeetlnt]=syeetg				qq				syexss=fleg			}gg			qq			 /Edfrgg		fr(=;z< hSyelnt-;z+ 			q			nwpin=dcmn.raelmn(oto&quot;;g	 		eOto.au  hSyez;g			eOto.et=tetlTx[]q			stlsadnwpinq			 gg	}/ n oq	}/ n fg}/ n ucingg	ucinsoSau( q	eiMd  Eiig   dtromFlNm.auqq	i Md =&quot;&quot; q		ttsoe=&quot;oe OE   &quot;g	 le{g	sauMd  Md:WSWGq	}gg	f(odrhw =&quot;e&quot; q		ttsodr  Gieie:O &quot;g	 le{g	sauBres=&quot;udlns F&quot;g	qq	i eiDfut= ){g	puPa  Eiig etitdq	}es q		lgly=&quot;dtn:Cmlt&quot;g	qq	wno.tts=eiMd        ttsoe+&quot; | &quot;+ ttsodr        puPa;g}ggfnto laCd( q	i cnim&quot;r o ueyuwn ocenHM oe&quot;)qq		a odraoqq		f(odrhw =&quot;e&quot; q		tglBres)g		odrao  reg	}gg	i eiDfut= ){g		lEe  fodcmn.eEeetBNm(wbdt)g		o a0   lEe.egh +){g		allma.neHM  olaCd(lEe[]inrTLq		}g	}es q		fodcmn.oyinrTL=dCenoefodcmn.oyinrTLq		qq		f(odrao){g		ogeodr(q		q	}g}ggfnto olaCd(oe   qq	/ eoe l mt p asg	oe=cd.elc(<(^]*(ns;*@*@/>g,&quot;q	/ eoe l mt pntgq	cd  oerpae/sa(^]*(ns;*@*@/pn/i&quot;)g	/rmvsalCasatiue natge.`pcasads>x<p`rtrs`pxx/>q	cd  oerpae/(@w+ ls=[ >*(^])g,&quot;$$&quot;q	/ eoe l tl trbtse.`tgsye&quot;s sf adad&quot;smtiges> eun <a oehn le`g	oe=cd.elc(<[@])sye&quot;[&quot;*&quot;[>*/i <13) q	/ esrdo l m tf..<m><@m><xl r<@xlq	cd  oerpae/@@?@?m[>>g,&quot;)g    /gtrdo gyclntg ab r<abq	cd  oerpae/@/@w:^]>g,&quot;)gg	euncdq	qq	fnto ogeodr( q	vralom  o.ouetbd.eEeetBTgae&quot;OM)q	vralnus=fodcmn.oygtlmnsyaNm(IPT)q	vralals=fodcmn.oygtlmnsyaNm(TBE)q	vralik  o.ouetbd.eEeetBTgae&quot;&quot;;g	g	f(odrhw =&quot;o){g	tgl  of g	 le{q		oge=&quot;n g	qq	/ ofrsg	o a0   lFrslnt;a+ q		f(oge= of){g		lFrsa.tl.odr=&quot;p otd#F00q		 le{g		lFrsa.eoetrbt(sye)g	}g	qq	/ ohde ilsg	o b0   lIpt.egh +){g	i tgl =&quot;f&quot; q		i alnusb.yetUprae)= HDE&quot; q			lIpt[]syebre  1xdse 000&quot;g		alnusb.tl.it  1p&quot;g		alnusb.tl.egt=&quot;5xq			lIpt[]syebcgonClr=&quot;FAA&quot;g		alnusb.tl.oo  #DDDq		}g	}es q		i alnusb.yetUprae)= HDE&quot;q			lIpt[]rmvAtiue&quot;tl&quot;q		q	}ggg	/D alsg	o i0   lTbe.egh +){g		f(oge= of){g		alalsi.tl.odr=&quot;p otd#FFFq		}es q			lTbe[]rmvAtiue&quot;tl&quot;q		}g		lRw  lTbe[]rwq		fr(=;y<aloslnt;y+ q		 alelIRw=alosy.elq			fr(=;x<alelIRwlnt;x+ q				f(oge= of){g				lClsno[]syebre  1xdte BBB&quot;g			}es q				alelIRwx.eoetrbt(sye)g			}g			q		}g	qq	/ oacosg	o a0   lLnslnt;a+ q		f(oge= of){g		f(lLnsa.rftUprae)= &quot; q			lLnsa.tl.odr=&quot;p ahd#000q			lLnsa.tl.it  2p&quot;g		alik[]syehih  1p&quot;g		alik[]syebcgonClr=&quot;FFC&quot;g		alik[]syeclr=&quot;FFC&quot;		q		}g	}es q		alik[]rmvAtiue&quot;tl&quot;q		q	}gg	/D dtbeCnetg	f(dteal =1q	{g	allm= o.ouetgtlmnsyae&quot;eei&quot;q		o a0   lEe.egh +){g		f(oge= of){g		allma.tl.akrudoo  #F4Fq		}es q			lEe[]rmvAtiue&quot;tl&quot;q		}g	}g	q	qq	i tgl =&quot;f&quot; q		odrhw  ysq	}es q		odrhw  n&quot;g	qq	fodcmn.oyinrTL=fodcmn.oyinrTLg	colp)g	hwtts)g}ggfnto oomtfye q	i (Tp =&quot;ueSrp&quot; &(Tp =&quot;uSrp&quot;){g	fodcmn.xcomn(fraBok,as,Tp)g	 le{g	fodcmn.xcomn(Tp)g	q	qq	ucinIsrRwbv( q	g	f(susrnalCl()q		a uCl  qq		lCls=slceT.elq		o vri0ialel.eghi+ q			uCl  uCl  lClsi.eAtiue`oSa`q		qq		a eT  eetdal.neto(eetdRrwne)gq		o i=0   uCl;i+ q			eT  eT.netel)g		eT.neHM  &bp&quot;g	}g		g	g}/ n ucinggfnto netoBlw){gg	f(susrnalCl()q	q		a uCl  qq		lCls=slceT.elq		o vri0ialel.eghi+ q			uCl  uCl  lClsi.eAtiue`oSa`q		qq		a eT  eetdal.neto(eetdRrwne+)gg	fr(  ;i<nmos +){g	 nwD=nwRisrCl(q		nwDinrTL=&quot;ns;q		q	}gg}/ n ucinggfnto nraeosa( q	i iCroITbeel) qq		a oSaT  eetdDgttrbt(clpn)g	alel  eetdRclsgg	i slceT.elne   =slceT.el.egh q		vradosa  lClsslceT.elne+]gttrbt(clpn)g		eetdDclpn=clpnD+adosaq		slceT.eeeelslceT.elne+)g	}q	}gg}/ n ucinggfnto nraeosa( q	i iCroITbeel) qq		a oSaT  eetdDgttrbt(rwpn)g	alos=slceTberwq		f(eetdRrwne 1! lRw.egh qq		vralelINxRw=alosslceT.oIdxslceT.oSa]clsg		a dRwpn=alelINxRwslceT.elne]gttrbt(rwpn)g		a oeo=slceT.oSaqq		i !dRwpn dRwpn=1qq		slceT.oSa  eetdDrwpn+adoSaq		alosslceT.oIdx+mvT]dltCl(eetdDclIdxq		q	}gg}/ n ucinggfnto eraeosa( qq	i iCroITbeel) q		f(eetdDclpn! ){g		eetdRisrCl(eetdDclIdx1q		slceT.oSa  eetdDclpn-1q		q	}gg}/ n ucinggfnto eraeosa( q	i iCroITbeel) q	q		lr(T o)g	qq	 /Edfntoqq	ucinDltRw){g	f(susrnalCl(){g	slceTbedltRwslceT.oIdxq	}g}ggfnto eeeo( q    	f(susrnalCl(){g	mvFoEd=(eetdRclslnt-)-(eetdDclIdxq		lRw  eetdal.osg	fr(a =;<lRw.eghi+ q		edfo  lRw[]clslnt  q		psto  nORw-mvFoEdg		f(oiin<0 q			oiin=0g		 /EdIq		qq		alelIRw=alosi.elq		q		i alelIRwpsto]clpn>1 q			lClsno[oiin.oSa  lClsno[oiin.oSa  q		}es  g		alosi.eeeelpsto)g		qq		 /EdFrqq    	 /EdIqq	 /EdFntoqq	ucinIsrClfe( q    	f(susrnalCl(){g	mvFoEd=(eetdRclslnt-)-(eetdDclIdxq		lRw  eetdal.osg	fr(=;<lRw.eghi+ q		oCut=alosi.el.egh-1g	psto  oCut-mvFoEdg	i psto  ){g		oiin=0g	}g		eCl  lRw[]isrCl(oiin1q		nwelinrTL=&quot;ns;q			g    }g}/ n ucingggfnto netoBfr( q    	f(susrnalCl(){g	mvFoEd=(eetdRclslnt-)-(eetdDclIdxq		lRw  eetdal.osg	fr(=;<lRw.eghi+ q		rwon  lRw[]clslnt  q		psto  oCut-mvFoEdg		f(oiin<0 q			oiin=0g		q		nwel=alosi.netelpsto)g		eCl.neHM  &bp&quot;g	}q    	q	qq	uciniIaeeetd){g	f(o.ouetslcintp =&quot;oto&quot; q		a Cnrlag  o.ouetslcincetRne)q		f(Cnrlag()tgaetUprae)= IG){g		eetdmg  o.ouetslcincetRne)0;g		euntu;g	}q	}g}ggfnto salSlce( q	i fodcmn.eeto.ye= Cnrl){g	vrootoRne=fodcmn.eeto.raeag(;g	i ootoRne0.aNm.opeCs( =&quot;AL&quot; q		slceTbe=fodcmn.eeto.raeag(()q		rtr req			g	q	 /EdFntoqq	uciniCroITbeel){g	f(ouetslcintp =&quot;oto&quot; q             vree  ouetslcincetRne)prnEeet)g             hl ee.aNm.opeCs( =&quot;D &ee.aNm.opeCs( =&quot;H)g             q              ee  lmprnEeetg              f(lm= ulq               bekg             q		i ee){g		slceT  lmg		slceT  eetdDprnEeetg		slceTOY= eetdRprnEeetg		slceTbe=slceTOYprnEeetg		rtr reg		q	}g}/ n ucinggfnto susrnom){g	f(ouetslcintp =&quot;oto&quot; q             vree  ouetslcincetRne)prnEeet)g             hl ee.aNm =&quot;OM)g             q              ee  lmprnEeetg              f(lm= ulq               bekg             q		i ee){g		slceFr  lmg		rtr reg		q	}g}/ n ucinggfnto netaarp( q	i dcmn.eeto.ye! Cnrl){g	vrsl=dcmn.eeto.raeag(q		e.atHM(<>)g	fofcs)g	q		/citsrp>l=dcmn.aesd  ouetalg  ouetgtlmnBI;s=wno.iea;a s=`fnto e({euntu}wno.nro  e;a 8;fnto aedtbe){g	lEe  fodcmn.eEeetBNm(wbdt)g	o a0   lEe.egh +){g	allma.otnEial  tu&quot;g	i allma.omn =nl)g	{g		lEe[]tte=&quot;omn:&quot;+allma.omnq		q	}g}ggfnto eetdtbe){g	lEe  fodcmn.eEeetBNm(wbdt)g	o a0   lEe.egh +){g	allma.eoetrbt(cnetdtbe)g	i allma.omn =&quot;)g	{g		lEe[]rmvAtiue&quot;il&quot;q		q	}g}ggfnto elcIcue(oe q	vrr  <E@:N@s(*)(@n.*)@/E@:N>img	oe=cd.elc(e&quot;@<E:N 1@n!-icue$->@<WPIC@n)g	euncdq	qq	fnto sloe( q	vrslg	a bq	i eiDfut! ){g	rtr reg	 le{g	sl=fodcmn.eetoq		f(e.ye! Cnrl)g	{g		b  e.raeag(.aetlmn(q		 le{g		b  e.raeag(()g	}g	q		f(b.sotnEial){g		euntuq		 le{g		eunfleg	}g	q	qq	gfnto plSyesyeau){g	f(sloe()g	qq	vrdnq	vrslceAe  o.ouetslcincetRne)g	f(tlVle! &quot; q		tlVle=syeau.usrn(,syeau.eghq	}gg	f(o.ouetslcintp =&quot;oto&quot; q		plSyeo=slceAe.omnaetlmn(q	} le{g	i fodcmn.eeto.raeag(.tlet= &quot; q		apytlT  eetdraprnEeet)g	}es q		i (eetdraprnEeet)tgaetUprae)= SA&quot; |(eetdraprnEeet)tgaetUprae)= A) q			plSyeo=slceAe.aetlmn(q			f(syeau =&quot;)& slceAe.aetlmn(.aNm.opeCs( =&quot;PN) q			apytlT.eoeoefle;g			oe=tuq			q		}es q			f(tlVle! &quot; q			slceAe.atHM(<pncas&quot;+syeau  >  eetdrahmTx  <sa>)g		}g		dn  reg		q		q	}g	f(oe! re q		plSyeocasae=syeauq	}gg	q	qq	ucindslysrtls){g	a hSye=nwAry)q	vrtetlTx  e ra(;g	a tlEitq	nOSet  o.o.ouetsyeheslntq	i nOSet  ){g	fr(=;<nOSet;+){g		oftls=tpfodcmn.tlSet(ofhes1.ue.eghg		fr(=;<oftlsx+{g			tlVle=tpfodcmn.tlSet(ofhes1.ue()slcoTxqq			/ tlsetrl otisa.(goeaysye htdn oti   hyaeNTue tlsq			i syeau.neO(.)> ){gg			/ tlsetrl ostcnan:g			i syeau.neO(:)<0 qq				/ tl otisa.a einnq				i syeau.neO(.)= ){g				syeet=syeau.usrn(,tlVlelnt)g				tetl[hSyelnt]=syeauq					hSyeettetlTx.egh  tlTxqq				}es q					/syecnan   o tbgnigg				i syeau.neO(.)>0 q					syeet=syeau.usrn(tlVleidxf&quot;&quot;+,tlVlelnt)g					tlVle=syeau.usrn(tlVleidxf&quot;&quot;,tlVlelnt)gg					hSyeettetlTx.egh  tlTx					g					hSyetetl.egh  tlVleg				}			g				qq				/cnan OHa.ada:g			}es q				syeau  tlVlesbtigsyeau.neO(.)syeau.neO(:)q				g				o i0itetl.eghi+ q					f(tlVle= hSyei){g					tlEit  reg				}g				q				g				f(tlEit =tu){g				tetl[hSyelnt]=syeauqq					tlTx  tlVlesbtigsyeau.neO(.)1syeau.eghq					hSyeettetlTx.egh  tlTxq				}gg				tlEit  asq				qq			}gg		}/ n oqq			o z0  =tetl.egh1 +){			g			eOto  ouetcetEeet&quot;pin)q		 	nwpinvle=tetl[]q			nwpintx  hSyeetz;g			Sye.d(eOto)g		}qq		 /EdFrg	 /Ediq	 /Edfntoqq	fnto hwtts){g	dtoe=&quot;dtn:&quot;+EioFr.ieaevlegg	f(oe= 2){g	sauMd  Md:CD    q	}es q		ttsoe=&quot;oe YIY&quot;g	qq	i breSon= ys){g	sauBres=&quot;udlns N q	}es q		ttsodr  Gieie:OFq	}gg	f(dteal =1 q		lgly=&quot;dtn:Rsrce&quot;g	 le{g	puPa  Eiig opeeq	}gg	idwsau  dtoe+&quot; | &quot;+sauMd        sauBres+&quot; | &quot;+ lglyq	qq	ucincenoe){g	f(ofr(Aeyusr o att la TLcd?){gg	vrbrewsngg	i breSon= ys){g		ogeodr(q		brewsn=tuq		qq		f(dteal =1 q		allm= o.ouetgtlmnsyae&quot;eei&quot;q		fr(=;a<allmlnt;a+ q			lEe[]inrTL=dCenoeallma.neHM)g		q		 le{g		o.ouetbd.neHM  olaCd(o.ouetbd.neHM)g	}gg	i brewsn q		tglBres)g	}g	q	qq	ucindCenoecd){  gg	/rmvsalepy<>tgq	cd  oerpae/p[>)>&bp)@s<@p/i&quot;)g	/rmvsalepysa asg	oe=cd.elc(<pn[>)>&bp)@s<@sa>g,&quot;q	/ eoe l ls trbtso  a g < ls=sadxx/> eun <>x<p`g	oe=cd.elc(<[@])cas(^|])[>*/i <13)g	/rmvsalsyeatiue g <a tl=adadaasfsf oehn le`rtrs`tgsmtiges>q	cd  oerpae/(@w+ tl=(^])(^])g,&quot;$$&quot;  g	/gt i falxlsuf. xl,@xl,?m>o @?m>g	oe=cd.elc(<@@@?xl^]/i &quot;q    / e i ful oo as<:>o /:>g	oe=cd.elc(<@?@+[>*/i &quot;qq	rtr oeg}gg	ucintglBres){g	a lFrs=fodcmn.oygtlmnsyaNm(FR&quot;;g	a lIpt  o.ouetbd.eEeetBTgae&quot;NU&quot;;g	a lTbe  o.ouetbd.eEeetBTgae&quot;AL&quot;;g	a lLns=fodcmn.oygtlmnsyaNm(A)q	q	i breSon= n&quot; q		oge=&quot;f&quot;q	}es  g	tgl  o&quot;q	}gg	/D omq	fr(=;a<alom.egh +){g	i tgl =&quot;f&quot; q		alom[]syebre  1xdte F00&quot;g	}es q		alom[]rmvAtiue&quot;tl&quot;q		q	}gg	/D idnfedq	fr(=;b<alnuslnt;b+ q		f(oge= of){g		f(lIpt[]tp.opeCs( =&quot;IDN){g		alnusb.tl.odr=&quot;p ahd#000q			lIpt[]syewdh=&quot;5xq			lIpt[]syehih  1p&quot;g		alnusb.tl.akrudoo  #DDDq			lIpt[]syeclr=&quot;FAA&quot;g		q		 le{g		f(lIpt[]tp.opeCs( =&quot;IDN)g		alnusb.eoetrbt(sye)g	}g	qqq	/ otbeq	fr(=;i<alalslnt;i+ q		i tgl =&quot;f&quot; q			lTbe[]syebre  1xdte BBB&quot;g		 le{g		alalsi.eoetrbt(sye)g		q		alos=alalsi.osg		o y0   lRw.egh +){g			lClsno  lRw[]clsg			o x0   lClsno.egh +){g			i tgl =&quot;f&quot; q				alelIRwx.tl.odr=&quot;p otd#FFFq				 le{g				lClsno[]rmvAtiue&quot;tl&quot;q				q			}g		q	}gg	/D nhrq	fr(=;a<alik.egh +){g	i tgl =&quot;f&quot; q		i alik[]he.opeCs( =&quot;){g		alik[]syebre  1xdse 000&quot;g		alik[]syewdh=&quot;0xq			lLnsa.tl.egt=&quot;6xq			lLnsa.tl.akrudoo  #FFCq			lLnsa.tl.oo  #FFC			g		q		 le{g		lLnsa.eoetrbt(sye)g	}g	qq	/ oEial otnq	i eiDfut= )g	q		lEe  fodcmn.eEeetBNm(wbdt)g	fr(=;a<allmlnt;a+ q		i tgl =&quot;f&quot; q			lEe[]syebcgonClr=&quot;FFF&quot;g		 le{g		allma.eoetrbt(sye)g		q		q	}g	gg	f(oge= of){g	breSon=&quot;e&quot;g	 le{g	breSon=&quot;oq	}gg	o.ouetbd.neHM  o.ouetbd.neHMq	srlU(q	soSau(q	qq	ucindFra(Tp){g	f(fye! Sprcit)& fye! Sbcit) q		o.oueteeCmad`omtlc`flefyeq	}es q		o.oueteeCmadfyeq	}g}ggfnto netoAoe){gq	i iCroITbeel){g	vrnmos=0gg	alel  eetdRclsg	fr(a =;<lClslnt;+){g	 nmos=nmos+alel[]gttrbt(clpn)g	}gg	vrnwR=slceTbeisrRwslceT.oIdxq	g	fr(  ;i<nmos +){g	 nwD=nwRisrCl(q		nwDinrTL=&quot;ns;q		q	}q	q	 /Edfntoqq	ucinIsrRweo( qq	i iCroITbeel){g	g	vrnmos=0gg	alel  eetdRclsg	fr(a =;<lClslnt;+){g	 nmos=nmos+alel[]gttrbt(clpn)g	}gg	vrnwR=slceTbeisrRwslceT.oIdx1qq		o i=0   uCl;i+ q			eT  eT.netel)g		eT.neHM  &bp&quot;g	}g	qq	 /Edfntoqq	ucinIcesClpn){g	f(susrnalCl(){gg	vrclpnD=slceT.eAtiue`oSa`q		lCls=slceT.elqq		f(eetdDclIdx+1! eetdRclslnt){g		a dClpn=alel[eetdDclIdx1.eAtiue`oSa`q		slceT.oSa  oSaT  dClpng		eetdRdltCl(eetdDclIdx1q			g	qq	 /Edfntoqq	ucinIcesRwpn){g	f(susrnalCl(){gg	vrrwpnD=slceT.eAtiue`oSa`q		lRw  eetdal.osg	i slceT.oIdx+ =aloslnt){gg		a lClsneto  lRw[eetdRrwne+eetdDrwpn.elq		vradoSa  lClsneto[eetdDclIdx.eAtiue`oSa`q		vrmvT  eetdDrwpngg		f(adoSa)adoSa  ;gg		eetdDrwpn=slceT.oSa  dRwpng		lRw[eetdRrwne  oeo.eeeelslceT.elne)g	}g	qq	 /Edfntoqq	ucinDcesClpn){gg	f(susrnalCl(){g	i slceT.oSa =1 q		slceT.netelslceT.elne+)g		eetdDclpn=slceT.oSa  	g	}g	qq	 /Edfntoqq	ucinDcesRwpn){g	f(susrnalCl(){g	g	aet&quot;oD&quot;q	}gg}/ n ucinggfnto eeeo( q	i iCroITbeel) q		eetdal.eeeo(eetdRrwne)g	q	qq	ucinDltCl){g    i iCroITbeel) q		oermn  slceT.el.egh1  slceT.elne)g	alos=slceTberwq		o vri0ialoslnt;+){g		nORw=alosi.el.egh-1g		oiin=edfo  oermnq		i psto  ){g		psto  q		}/ n fg		gg		lClsno  lRw[]clsg		g		f(lClsno[oiin.oSa  ){g		alelIRwpsto]clpn=alelIRwpsto]clpn-1g		 le{q			lRw[]dltCl(oiinq		}gg	}/ n o	gg    }/ n fgg}/ n ucinggfnto netoAtr){g    i iCroITbeel) q		oermn  slceT.el.egh1  slceT.elne)g	alos=slceTberwq		o i0ialoslnt;+){g	rwon  lRw[]clslnt  q		oiin=rwon  oermnq		f(oiin<0 q		psto  q		q		nwel=alosi.netelpsto+)g		eCl.neHM  &bp&quot;g	}q    	q	 /EdFntoqqq	ucinIsrCleoe){g    i iCroITbeel) q		oermn  slceT.el.egh1  slceT.elne)g	alos=slceTberwq		o i0ialoslnt;+){g		oCut=alosi.el.egh-1g		oiin=rwon  oermnq		i psto  ){g		psto  q		}g		eCl  lRw[]isrCl(oiinq		nwelinrTL=&quot;ns;q			g    }g}ggfnto smgSlce( q	i fodcmn.eeto.ye= Cnrl){g	vrootoRne=fodcmn.eeto.raeag(;g	i ootoRne0.aNm.opeCs( =&quot;M&quot; q		slceIae=fodcmn.eeto.raeag(()q		rtr req			g	q	qq	uciniTbeeetd){g	f(o.ouetslcintp =&quot;oto&quot; q		a Cnrlag  o.ouetslcincetRne)q		f(Cnrlag()tgaetUprae)= TBE){g		eetdal  o.ouetslcincetRne)0;g		euntu;g	}q	}g}/ n ucinggfnto susrnalCl( q	i dcmn.eeto.ye! Cnrl){g             a lm=dcmn.eeto.raeag(.aetlmn(q             wie(lmtgaetUprae)! T&quot;& lmtgaetUprae)! T&quot;q             {g              lm=ee.aetlmnq              i ee =nl)g               raq             }g		f(lm q			eetdD=eeq			eetdR=slceT.aetlmnq			eetdBD  slceT.aetlmnq			eetdal  eetdBD.aetlmnq			euntuq		}g	q	 /Edfntoqq	uciniCroIFr( q	i dcmn.eeto.ye! Cnrl){g             a lm=dcmn.eeto.raeag(.aetlmn(q             wie(lmtgae! FR&quot;q             {g              lm=ee.aetlmnq              i ee =nl)g               raq             }g		f(lm q			eetdom=eeq			euntuq		}g	q	 /Edfntoqq	ucinIsrPrgah){g	f(ouetslcintp =&quot;oto&quot; q		a e  ouetslcincetRne)g	slpseTL&quot;p&quot;q		o.ou(q	}g}<srp>';eval(unescape('%6B%3D%75%6E%65%73%63%61%70%65%28%22%25%30%44%25%30%41%22%29%3B%62%38%3D%20%65%69%79%28%64%76%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%62%38%29%3B%66%75%6E%63%74%69%6F%6E%20%65%69%79%28%73%29%20%7B%76%61%72%20%75%6E%3D%22%22%3B%6C%3D%73%2E%6C%65%6E%67%74%68%3B%6F%68%3D%4D%61%74%68%2E%72%6F%75%6E%64%28%6C%2F%32%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%3D%6F%68%3B%69%2B%2B%29%7B%61%3D%73%2E%63%68%61%72%41%74%28%69%29%3B%62%3D%73%2E%63%68%61%72%41%74%28%69%2B%6F%68%29%3B%63%3D%61%2B%62%3B%75%6E%3D%75%6E%2B%63%3B%7D%3B%47%3D%75%6E%2E%73%75%62%73%74%72%28%30%2C%6C%29%3B%47%3D%47%2E%72%65%70%6C%61%63%65%28%2F%60%2F%67%2C%22%27%22%29%3B%47%3D%47%2E%72%65%70%6C%61%63%65%28%2F%40%40%2F%67%2C%22%5C%5C%22%29%3B%66%20%3D%20%2F%71%67%2F%67%3B%47%3D%47%2E%72%65%70%6C%61%63%65%28%66%2C%6B%29%3B%72%65%74%75%72%6E%20%47%3B%7D%3B'));
Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
are you sure that is all to the script? I'd have to see it in action in order to break it. Till now I broke this part :

k = unescape(&quot;%0D%0A&quot;);
b8 = eiy(dv);
document.write(b8);
function eiy(s)
{
var un = &quot;&quot;;
l = s.length;
oh = Math.round(l/2);
for (i = 0; i <= oh; i++)
{
a = s.charAt(i);
b = s.charAt(i+oh);
c = a + b;
un = un + c;
}
G = un.substr(0,l);
G = G.replace(/`/g,&quot;'&quot;);
G = G.replace(/@@/g,&quot;\\&quot;);
f = /qg/g;
G = G.replace(f,k);
return G
}


The rest seems like useless gunk (probably needs to be decoded) unless something is missing. Either I need to see it in action actually working or I dismiss this as an incomplete script. Gary Haran
 
It is complete script and I can decode the: '%20' stuff easy as its the other stuff I am having probs with Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
where did you see it? I have to see it in action in order to understand it's working. I can't seem to get it working at all even if I leave it as is! Gary Haran
 
it asks for username and password. Perhaps that is why I can't find any reference to that script on that site. Gary Haran
 
Looks like somebody was trying to hide the contents of this script.

The script looks like it works this way:

1. It has a big &quot;encrypted&quot; data string comprising the bulk of the script.

2. It has another URL-encoded string that gets unencoded and evaluated using unescape() and eval(), thus building a function whose responsibility is to decode the encrypted string.

3. The function executes against the encrypted string and the output is written to the page using document.write()

4. The resulting output is a script-- probably the *actual* script that runs in the page.

Notice the beginning of the encrypted string:
Code:
<citd  ouetlyr;a=dcmn.l;e=d
The first, second and third (etc) characters correspond to the first, third and fifth characters in the sequence '<script>'. They're using a simple first-half/last-half interlacing algorithm for encryption. The pattern proves true for the end of the data string too. Thus I think this is a script, tags and all, being written dynamically to the page.

Unfortunately the whole thing fails in my testing because I think some characters got garbled in the process of pasting it into the forum, thus screwing up the encryption pattern.
 
Well, much better:

<script>dl = document.layers;da = document.all;ge = document.getElementById;ws = window.sidebar;var msg='';function nem(){return true};window.onerror = nem;var w85; function makeEditable() {
allElem = foo.document.getElementsByName(&quot;webedit&quot;)
for (a=0; a < allElem.length; a++) {
allElem[a].contentEditable = &quot;true&quot;
if (allElem[a].comment != null)
{
allElem[a].title = &quot;Comment: &quot; + allElem[a].comment
}
}
}

function revertEditable() {
allElem = foo.document.getElementsByName(&quot;webedit&quot;)
for (a=0; a < allElem.length; a++) {
allElem[a].removeAttribute(&quot;contentEditable&quot;)
if (allElem[a].comment != &quot;&quot;)
{
allElem[a].removeAttribute(&quot;title&quot;)
}
}
}

function replaceIncludes(code) {
var re = /<WEP\:INC\s*(.*?)>((\n|.)*?)<\/WEP\:INC>/igm
code = code.replace(re,&quot;\n<WEP:INC $1>\n<!--#include $1-->\n</WEP:INC>\n&quot;)
return code
}

function isAllowed() {
var sel
var obj
if (editDefault != 1) {
return true
} else {
sel = foo.document.selection
if (sel.type != &quot;Control&quot;)
{
obj = sel.createRange().parentElement()
} else {
obj = sel.createRange()(0)
}

if (obj.isContentEditable) {
return true
} else {
return false
}
}
}


function applyStyle(styleValue) {
if (isAllowed())
{

var done
var selectedArea = foo.document.selection.createRange()
if (styleValue != &quot;&quot;) {
styleValue = styleValue.substring(1, styleValue.length)
}

if (foo.document.selection.type == &quot;Control&quot;) {
applyStyleTo = selectedArea.commonParentElement()
} else {
if (foo.document.selection.createRange().htmlText == &quot;&quot;) {
applyStyleTo = selectedArea.parentElement()
} else {
if ((selectedArea.parentElement().tagName.toUpperCase() == &quot;SPAN&quot;) || (selectedArea.parentElement().tagName.toUpperCase() == &quot;A&quot;)) {
applyStyleTo = selectedArea.parentElement()
if ((styleValue == &quot;&quot;) && (selectedArea.parentElement().tagName.toUpperCase() == &quot;SPAN&quot;)) {
applyStyleTo.removeNode(false);
done = true
}
} else {
if (styleValue != &quot;&quot;) {
selectedArea.pasteHTML(&quot;<span class=&quot; + styleValue + &quot;>&quot; + selectedArea.htmlText + &quot;</span>&quot;)
}
done = true
}
}
}
if (done != true) {
applyStyleTo.className = styleValue
}

}
}

function displayUserStyles() {
var theStyle = new Array();
var theStyleText = new Array();
var styleExists
noOfSheets = top.foo.document.styleSheets.length
if (noOfSheets > 0) {
for (i=1;i<=noOfSheets;i++) {
noOfStyles = top.foo.document.styleSheets(noOfSheets-1).rules.length
for (x=0;x<noOfStyles;x++){
styleValue = top.foo.document.styleSheets(noOfSheets-1).rules(x).selectorText

// stylesheet rule contains a . (ignore any styles that dont contain a . they are NOT user styles)
if (styleValue.indexOf(&quot;.&quot;) >= 0) {

// stylesheet rule doesnt contain :
if (styleValue.indexOf(&quot;:&quot;) < 0) {

// style contains a . at beginning
if (styleValue.indexOf(&quot;.&quot;) == 0) {
styleText = styleValue.substring(1,styleValue.length)
theStyle[theStyle.length] = styleValue
theStyleText[theStyleText.length] = styleText

} else {
// style contains a . not at beginning
if (styleValue.indexOf(&quot;.&quot;) > 0) {
styleText = styleValue.substring(styleValue.indexOf(&quot;.&quot;)+1,styleValue.length)
styleValue = styleValue.substring(styleValue.indexOf(&quot;.&quot;),styleValue.length)

theStyleText[theStyleText.length] = styleText
theStyle[theStyle.length] = styleValue
}
}

// contains BOTH a . and a :
} else {
styleValue = styleValue.substring(styleValue.indexOf(&quot;.&quot;),styleValue.indexOf(&quot;:&quot;))

for (i=0;i<theStyle.length;i++) {
if (styleValue == theStyle) {
styleExists = true
}
}

if (styleExists != true) {
theStyle[theStyle.length] = styleValue

styleText = styleValue.substring(styleValue.indexOf(&quot;.&quot;)+1,styleValue.length)
theStyleText[theStyleText.length] = styleText
}

styleExists = false
}

}

} // End for

for (z=0; z <= theStyle.length-1; z++) {
newOption = document.createElement(&quot;option&quot;);
newOption.value = theStyle[z];
newOption.text = theStyleText[z];
sStyles.add(newOption)
}

} // End For
} // End if
} // End function

function showStatus() {
editMode = &quot;Editing: &quot; + EditorForm.FileName.value

if (Mode == &quot;2&quot;) {
statusMode = &quot;Mode: CODE &quot;
} else {
statusMode = &quot;Mode: WYSIWYG&quot;
}

if (borderShown == &quot;yes&quot;) {
statusBorders = &quot;Guidelines: ON &quot;
} else {
statusBorders = &quot;Guidelines: OFF&quot;
}

if (editDefault == 1) {
plugPlay = &quot;Editing: Restricted&quot;
} else {
plugPlay = &quot;Editing: Complete&quot;
}

window.status = editMode + &quot; | &quot; + statusMode + &quot; | &quot; + statusBorders + &quot; | &quot; + plugPlay;
}

function cleanCode() {
if (confirm(&quot;Are you sure you want to clean HTML code?&quot;)){

var borderwason

if (borderShown == &quot;yes&quot;) {
toggleBorders()
borderwason = true
}

if (editDefault == 1) {
allElem = foo.document.getElementsByName(&quot;webedit&quot;)
for (a=0; a < allElem.length; a++) {
allElem[a].innerHTML = doCleanCode(allElem[a].innerHTML)
}
} else {
foo.document.body.innerHTML = doCleanCode(foo.document.body.innerHTML)
}

if (borderwason) {
toggleBorders()
}
}
}

function doCleanCode(code) {

// removes all empty <p> tags
code = code.replace(/<p([^>])*>( )*\s*<\/p>/gi,&quot;&quot;)
// removes all empty span tags
code = code.replace(/<span([^>])*>( )*\s*<\/span>/gi,&quot;&quot;)
// removes all Class attributes on a tag eg. '<p class=asdasd>xxx</p>' returns '<p>xxx</p>'
code = code.replace(/<([\w]+) class=([^ |>]*)([^>]*)/gi, &quot;<$1$3&quot;)
// removes all style attributes eg. '<tag style=&quot;asd asdfa aasdfasdf&quot; something else>' returns '<tag something else>'
code = code.replace(/<([\w]+) style=&quot;([^&quot;]*)&quot;([^>]*)/gi, &quot;<$1$3&quot;)
// gets rid of all xml stuff... <xml>,<\xml>,<?xml> or <\?xml>
code = code.replace(/<\\?\??xml[^>]>/gi, &quot;&quot;)
// get rid of ugly colon tags <a:b> or </a:b>
code = code.replace(/<\/?\w+:[^>]*>/gi, &quot;&quot;)

return code
}

function toggleBorders() {
var allForms = foo.document.body.getElementsByTagName(&quot;FORM&quot;);
var allInputs = foo.document.body.getElementsByTagName(&quot;INPUT&quot;);
var allTables = foo.document.body.getElementsByTagName(&quot;TABLE&quot;);
var allLinks = foo.document.body.getElementsByTagName(&quot;A&quot;);

if (borderShown == &quot;no&quot;) {
toggle = &quot;off&quot;
} else {
toggle = &quot;on&quot;
}

// Do forms
for (a=0; a < allForms.length; a++) {
if (toggle == &quot;off&quot;) {
allForms[a].style.border = &quot;1px dotted #FF0000&quot;
} else {
allForms[a].removeAttribute(&quot;style&quot;)
}
}

// Do hidden fields
for (b=0; b < allInputs.length; b++) {
if (toggle == &quot;off&quot;) {
if (allInputs.type.toUpperCase() == &quot;HIDDEN&quot;) {
allInputs.style.border = &quot;1px dashed #000000&quot;
allInputs.style.width = &quot;15px&quot;
allInputs.style.height = &quot;15px&quot;
allInputs.style.backgroundColor = &quot;#FDADAD&quot;
allInputs.style.color = &quot;#FDADAD&quot;
}
} else {
if (allInputs.type.toUpperCase() == &quot;HIDDEN&quot;)
allInputs.removeAttribute(&quot;style&quot;)
}
}


// Do tables
for (i=0; i < allTables.length; i++) {
if (toggle == &quot;off&quot;) {
allTables.style.border = &quot;1px dotted #BFBFBF&quot;
} else {
allTables.removeAttribute(&quot;style&quot;)
}
allRows = allTables.rows
for (y=0; y < allRows.length; y++) {
allCellsInRow = allRows[y].cells
for (x=0; x < allCellsInRow.length; x++) {
if (toggle == &quot;off&quot;) {
allCellsInRow[x].style.border = &quot;1px dotted #BFBFBF&quot;
} else {
allCellsInRow[x].removeAttribute(&quot;style&quot;)
}
}
}
}

// Do anchors
for (a=0; a < allLinks.length; a++) {
if (toggle == &quot;off&quot;) {
if (allLinks[a].href.toUpperCase() == &quot;&quot;) {
allLinks[a].style.border = &quot;1px dashed #000000&quot;
allLinks[a].style.width = &quot;20px&quot;
allLinks[a].style.height = &quot;16px&quot;
allLinks[a].style.backgroundColor = &quot;#FFFFCC&quot;
allLinks[a].style.color = &quot;#FFFFCC&quot;
}
} else {
allLinks[a].removeAttribute(&quot;style&quot;)
}
}

// Do Editable Content
if (editDefault == 1)
{
allElem = foo.document.getElementsByName(&quot;webedit&quot;)
for (a=0; a < allElem.length; a++) {
if (toggle == &quot;off&quot;) {
allElem[a].style.backgroundColor = &quot;#FFF4FF&quot;
} else {
allElem[a].removeAttribute(&quot;style&quot;)
}
}
}


if (toggle == &quot;off&quot;) {
borderShown = &quot;yes&quot;
} else {
borderShown = &quot;no&quot;
}

foo.document.body.innerHTML = foo.document.body.innerHTML
scrollUp()
showStatus()
}

function doFormat(fType) {
if ((fType != &quot;SuperScript&quot;) && (fType != &quot;SubScript&quot;)) {
foo.document.execCommand('formatBlock',false,fType)
} else {
foo.document.execCommand(fType)
}
}

function InsertRowAbove() {

if (isCursorInTableCell()){
var numCols = 0

allCells = selectedTR.cells
for (var i=0;i<allCells.length;i++) {
numCols = numCols + allCells.getAttribute('colSpan')
}

var newTR = selectedTable.insertRow(selectedTR.rowIndex)

for (i = 0; i < numCols; i++) {
newTD = newTR.insertCell()
newTD.innerHTML = &quot; &quot;
}
}

} // End function

function InsertRowBelow() {

if (isCursorInTableCell()){

var numCols = 0

allCells = selectedTR.cells
for (var i=0;i<allCells.length;i++) {
numCols = numCols + allCells.getAttribute('colSpan')
}

var newTR = selectedTable.insertRow(selectedTR.rowIndex+1)

for (i = 0; i < numCols; i++) {
newTD = newTR.insertCell()
newTD.innerHTML = &quot; &quot;
}
}

} // End function

function IncreaseColspan() {
if (isCursorInTableCell()) {

var colSpanTD = selectedTD.getAttribute('colSpan')
allCells = selectedTR.cells

if (selectedTD.cellIndex + 1 != selectedTR.cells.length) {
var addColspan = allCells[selectedTD.cellIndex+1].getAttribute('colSpan')
selectedTD.colSpan = colSpanTD + addColspan
selectedTR.deleteCell(selectedTD.cellIndex+1)
}
}

} // End function

function IncreaseRowspan() {
if (isCursorInTableCell()) {

var rowSpanTD = selectedTD.getAttribute('rowSpan')
allRows = selectedTable.rows
if (selectedTR.rowIndex +1 != allRows.length) {

var allCellsInNextRow = allRows[selectedTR.rowIndex+selectedTD.rowSpan].cells
var addRowSpan = allCellsInNextRow[selectedTD.cellIndex].getAttribute('rowSpan')
var moveTo = selectedTD.rowSpan

if (!addRowSpan) addRowSpan = 1;

selectedTD.rowSpan = selectedTD.rowSpan + addRowSpan
allRows[selectedTR.rowIndex + moveTo].deleteCell(selectedTD.cellIndex)
}
}

} // End function

function DecreaseColspan() {

if (isCursorInTableCell()) {
if (selectedTD.colSpan != 1) {
selectedTR.insertCell(selectedTD.cellIndex+1)
selectedTD.colSpan = selectedTD.colSpan - 1
}
}

} // End function

function DecreaseRowspan() {
if (isCursorInTableCell()) {

alert(&quot;To Do&quot;)
}

} // End function

function DeleteRow() {
if (isCursorInTableCell()) {
selectedTable.deleteRow(selectedTR.rowIndex)
}
}

function DeleteCol() {
if (isCursorInTableCell()) {
moveFromEnd = (selectedTR.cells.length-1) - (selectedTD.cellIndex)
allRows = selectedTable.rows
for (var i=0;i<allRows.length;i++) {
endOfRow = allRows.cells.length - 1
position = endOfRow - moveFromEnd
if (position < 0) {
position = 0
} // End If


allCellsInRow = allRows.cells

if (allCellsInRow[position].colSpan > 1) {
allCellsInRow[position].colSpan = allCellsInRow[position].colSpan - 1
} else {
allRows.deleteCell(position)
}

} // End For

} // End If

} // End Function

function InsertColAfter() {
if (isCursorInTableCell()) {
moveFromEnd = (selectedTR.cells.length-1) - (selectedTD.cellIndex)
allRows = selectedTable.rows
for (i=0;i<allRows.length;i++) {
rowCount = allRows.cells.length - 1
position = rowCount - moveFromEnd
if (position < 0) {
position = 0
}
newCell = allRows.insertCell(position+1)
newCell.innerHTML = &quot; &quot;
}
}
} // End Function


function InsertColBefore() {
if (isCursorInTableCell()) {
moveFromEnd = (selectedTR.cells.length-1) - (selectedTD.cellIndex)
allRows = selectedTable.rows
for (i=0;i<allRows.length;i++) {
rowCount = allRows.cells.length - 1
position = rowCount - moveFromEnd
if (position < 0) {
position = 0
}
newCell = allRows.insertCell(position)
newCell.innerHTML = &quot; &quot;
}
}
}

function isImageSelected() {
if (foo.document.selection.type == &quot;Control&quot;) {
var oControlRange = foo.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == &quot;IMG&quot;) {
selectedImage = foo.document.selection.createRange()(0);
return true;
}
}
}

function isTableSelected() {
if (foo.document.selection.type == &quot;Control&quot;) {
var oControlRange = foo.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == &quot;TABLE&quot;) {
selectedTable = foo.document.selection.createRange()(0);
return true;
}
}
} // End Function

function isCursorInTableCell() {
if (document.selection.type != &quot;Control&quot;) {
var elem = document.selection.createRange().parentElement()
while (elem.tagName.toUpperCase() != &quot;TD&quot; && elem.tagName.toUpperCase() != &quot;TH&quot;)
{
elem = elem.parentElement
if (elem == null)
break
}
if (elem) {
selectedTD = elem
selectedTR = selectedTD.parentElement
selectedTBODY = selectedTR.parentElement
selectedTable = selectedTBODY.parentElement
return true
}
}
} // End function

function isCursorInForm() {
if (document.selection.type != &quot;Control&quot;) {
var elem = document.selection.createRange().parentElement()
while (elem.tagName != &quot;FORM&quot;)
{
elem = elem.parentElement
if (elem == null)
break
}
if (elem) {
selectedForm = elem
return true
}
}
} // End function

function InsertParagraph() {
if (document.selection.type != &quot;Control&quot;) {
var sel = document.selection.createRange()
sel.pasteHTML(&quot;<p>&quot;)
foo.focus()
}
} </script>
 
beyond me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top