I am trying to get all of the urls in a web document, so that I can append information to the urls when needed (when the url points to a domain that resides on my server). It allows me to pass session information across the domains of my network. Currently, I use a class I wrote to handle this, but it only works when it finds the urls in a standard html tag. I need to expand upon this, so that it also finds urls that are in onclick events, for example. Here is a sample page from my website: <SCRIPT LANGUAGE="JavaScript">if (parent != self) top.location.href = location.href;</SCRIPT><TABLE WIDTH="1000" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER" CLASS="TEMPLATE-TABLE"><TR><TD COLSPAN="7" CLASS="TEMPLATE-TABLE-TOP"> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="48"> <TR> <TD WIDTH="60" ROWSPAN="2" ALIGN="RIGHT"><IMG SRC="http://www.enetwizard.info/shared/enetwizard.gif" WIDTH="46" HEIGHT="46" BORDER="0" ALT="" /></TD> <TD HEIGHT="24" VALIGN="BOTTOM"><DIV STYLE="font-family: sans-serif; font-size: 8pt; font-weight: bold; color: white; margin-left: 10px;">eNetwizard, Inc.</DIV></TD> <TD HEIGHT="24" VALIGN="BOTTOM" ALIGN="RIGHT"><DIV STYLE="font-family: sans-serif; font-size: 8pt; color: #FFFFFF; font-weight: bold; margin-right: 20px;"> Anonymous Visitor | <A HREF="http://www.enetwizard.cc/security.wizard?asset=welcome&process=log in&form=login" STYLE="font-family: sans-serif; font-size: 8pt; color: #6BDB17; font-weight: bold; text-decoration: underline;">Log In</A> | <A HREF="http://www.enetwizard.cc/security.wizard?asset=welcome&process=sig nup&form=signup" STYLE="font-family: sans-serif; font-size: 8pt; color: #6BDB17; font-weight: bold; text-decoration: underline;">Sign Up</A> </DIV></TD> </TR><TR> <TD HEIGHT="24" VALIGN="TOP"><DIV STYLE="font-family: sans-serif; font-size: 8pt; color: white; margin-left: 10px;"><I>Empowering Your Creativity.</I></DIV></TD> <TD HEIGHT="24" VALIGN="TOP" ALIGN="RIGHT"><DIV STYLE="font-family: sans-serif; font-size: 8pt; color: #FFFFFF; margin-right: 20px;"> <I>Tuesday, May 16, 2006</I> </DIV></TD> </TR> </TABLE> </TD></TR><TR><TD COLSPAN="7" STYLE="height: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TR><TR><TD VALIGN="TOP" STYLE="width: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD><TD VALIGN="TOP" CLASS="TEMPLATE-TABLE-LEFT" STYLE="width: 180px;"><TABLE CLASS="RSW-TABLE"><TR CLASS="RSW-TABLE-HEAD-TR"><TD CLASS="RSW-TABLE-HEAD-TD"><DIV CLASS="RSW-DIV-HEAD-CENTER"><SPAN CLASS="RSW-FONT-HEAD-TEXT">eNetwizard, Inc.</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Backend Manager'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.be/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.be/default.rsw" ONMOUSEOVER="window.status = 'Backend Manager'; return true;" ONMOUSEOUT="window.status = ''; return true;">Backend Manager</A><BR>eNetwizard.be</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Business Headquarters'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.biz/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.biz/default.rsw" ONMOUSEOVER="window.status = 'Business Headquarters'; return true;" ONMOUSEOUT="window.status = ''; return true;">Business Headquarters</A><BR>eNetwizard.biz</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-SEP1-TR"><TD CLASS="RSW-TABLE-SEP1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Client Control Center'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-SEP1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.cc/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-SEP1-LEFT"><SPAN CLASS="RSW-FONT-SEP1-TEXT"><A CLASS="RSW-FONT-SEP1-LINK" HREF="http://www.enetwizard.cc/default.rsw" ONMOUSEOVER="window.status = 'Client Control Center'; return true;" ONMOUSEOUT="window.status = ''; return true;">Client Control Center</A><BR>eNetwizard.cc</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Development Services'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.de/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.de/default.rsw" ONMOUSEOVER="window.status = 'Development Services'; return true;" ONMOUSEOUT="window.status = ''; return true;">Development Services</A><BR>eNetwizard.de</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Global Search Engine'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.gs/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.gs/default.rsw" ONMOUSEOVER="window.status = 'Global Search Engine'; return true;" ONMOUSEOUT="window.status = ''; return true;">Global Search Engine</A><BR>eNetwizard.gs</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Information Portal'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.info/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.info/default.rsw" ONMOUSEOVER="window.status = 'Information Portal'; return true;" ONMOUSEOUT="window.status = ''; return true;">Information Portal</A><BR>eNetwizard.info</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Matrix Server'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.ms/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.ms/default.rsw" ONMOUSEOVER="window.status = 'Matrix Server'; return true;" ONMOUSEOUT="window.status = ''; return true;">Matrix Server</A><BR>eNetwizard.ms</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Network Neighborhood'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.net/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.net/default.rsw" ONMOUSEOVER="window.status = 'Network Neighborhood'; return true;" ONMOUSEOUT="window.status = ''; return true;">Network Neighborhood</A><BR>eNetwizard.net</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Open Resource Gallery'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.org/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.org/default.rsw" ONMOUSEOVER="window.status = 'Open Resource Gallery'; return true;" ONMOUSEOUT="window.status = ''; return true;">Open Resource Gallery</A><BR>eNetwizard.org</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Tools Center'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.tc/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.tc/default.rsw" ONMOUSEOVER="window.status = 'Tools Center'; return true;" ONMOUSEOUT="window.status = ''; return true;">Tools Center</A><BR>eNetwizard.tc</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Universal Server'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.us/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.us/default.rsw" ONMOUSEOVER="window.status = 'Universal Server'; return true;" ONMOUSEOUT="window.status = ''; return true;">Universal Server</A><BR>eNetwizard.us</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Website Solutions'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.enetwizard.ws/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.ws/default.rsw" ONMOUSEOVER="window.status = 'Website Solutions'; return true;" ONMOUSEOUT="window.status = ''; return true;">Website Solutions</A><BR>eNetwizard.ws</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Info@xxxxxxxxxxxxxxx'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'mailto:Info@xxxxxxxxxxxxxxx'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="mailto:Info@xxxxxxxxxxxxxxx" ONMOUSEOVER="window.status = 'Info@xxxxxxxxxxxxxxx'; return true;" ONMOUSEOUT="window.status = ''; return true;">Info@xxxxxxxxxxxxxxx</A><BR>eNetwizard, Inc.</SPAN></DIV></TD></TR></TABLE><DIV STYLE="font-size: 10px;"> </DIV><TABLE CLASS="RSW-TABLE"><TR CLASS="RSW-TABLE-HEAD-TR"><TD CLASS="RSW-TABLE-HEAD-TD"><DIV CLASS="RSW-DIV-HEAD-CENTER"><SPAN CLASS="RSW-FONT-HEAD-TEXT">Featured Websites</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Auto Speed Graphics'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.autospeedgraphics.com/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.autospeedgraphics.com/default.rsw" ONMOUSEOVER="window.status = 'Auto Speed Graphics'; return true;" ONMOUSEOUT="window.status = ''; return true;">Auto Speed Graphics</A><BR>autospeedgraphics.com</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'C&C Technologies, Inc.'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.ccreportingsiteonline.com/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.ccreportingsiteonline.com/default.rsw" ONMOUSEOVER="window.status = 'C&C Technologies, Inc.'; return true;" ONMOUSEOUT="window.status = ''; return true;">C&C Technologies, Inc.</A><BR>ccreportingsiteonline.com</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'High Speed Data Extranet'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.hsdextranet.com/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.hsdextranet.com/default.rsw" ONMOUSEOVER="window.status = 'High Speed Data Extranet'; return true;" ONMOUSEOUT="window.status = ''; return true;">High Speed Data Extranet</A><BR>hsdextranet.com</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Robert Samuel White'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.rswfire.com/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.rswfire.com/default.rsw" ONMOUSEOVER="window.status = 'Robert Samuel White'; return true;" ONMOUSEOUT="window.status = ''; return true;">Robert Samuel White</A><BR>rswfire.com</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP1-TD'; window.status = 'Sports Display Frames'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW1-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.sportsdisplayframes.com/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.sportsdisplayframes.com/default.rsw" ONMOUSEOVER="window.status = 'Sports Display Frames'; return true;" ONMOUSEOUT="window.status = ''; return true;">Sports Display Frames</A><BR>sportsdisplayframes.com</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="this.className = 'RSW-TABLE-SEP2-TD'; window.status = 'Tristar Select'; return true;" ONMOUSEOUT="this.className = 'RSW-TABLE-ROW2-TD'; window.status = ''; return true;" ONCLICK="location.href = 'http://www.tristarselect.com/default.rsw'; return true;" STYLE="cursor: pointer;"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.tristarselect.com/default.rsw" ONMOUSEOVER="window.status = 'Tristar Select'; return true;" ONMOUSEOUT="window.status = ''; return true;">Tristar Select</A><BR>tristarselect.com</SPAN></DIV></TD></TR></TABLE><DIV STYLE="font-size: 10px;"> </DIV><TABLE CLASS="RSW-TABLE"><TR CLASS="RSW-TABLE-HEAD-TR"><TD CLASS="RSW-TABLE-HEAD-TD"><DIV CLASS="RSW-DIV-HEAD-CENTER"><SPAN CLASS="RSW-FONT-HEAD-TEXT">Development Calendar</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.ms/default.rsw">eNetwizard Matrix Server</A><BR>TBA v0.0.2</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.ms/default.rsw">eCommerce Extension</A><BR>TBA v0.0.2-r1</SPAN></DIV></TD></TR></TABLE></TD><TD VALIGN="TOP" STYLE="width: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TD><TD WIDTH="560" VALIGN="TOP"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD VALIGN="TOP" STYLE="width: 20px; height: 7px;"><DIV STYLE="font-size: 1px;"> </DIV></TD><TD VALIGN="TOP" CLASS="TEMPLATE-SHADOW" STYLE="width: 520px; height: 7px;"><DIV STYLE="font-size: 1px;"> </DIV></TD><TD VALIGN="TOP" STYLE="width: 20px; height: 7px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TR></TABLE><TABLE WIDTH="100%" COLSPAN="3" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD CLASS="TEMPLATE-TABLE-CENTER" STYLE="padding: 20px;"> <P>This website is undergoing temporary maintenance.</P> </TD></TR></TABLE><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD VALIGN="TOP" STYLE="width: 20px; height: 7px;"><DIV STYLE="font-size: 1px;"> </DIV></TD><TD VALIGN="TOP" CLASS="TEMPLATE-SHADOW" STYLE="width: 520px; height: 7px;"><DIV STYLE="font-size: 1px;"> </DIV></TD><TD VALIGN="TOP" STYLE="width: 20px; height: 7px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TR></TABLE></TD><TD VALIGN="TOP" STYLE="width: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD><TD VALIGN="TOP" CLASS="TEMPLATE-TABLE-RIGHT" STYLE="width: 180px;"><TABLE CLASS="RSW-TABLE"><TR CLASS="RSW-TABLE-HEAD-TR"><TD CLASS="RSW-TABLE-HEAD-TD"><DIV CLASS="RSW-DIV-HEAD-CENTER"><SPAN CLASS="RSW-FONT-HEAD-TEXT">Page Navigation</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.cc/account.rsw">Account Information</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.cc/billing.rsw">Billing & Payments</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.cc/database.rsw">Database Management</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.cc/ftp.rsw">FTP Management</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.cc/mail.rsw">Mail Center</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.cc/programs.rsw">Program Manager</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.cc/projects.rsw">Project Manager</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="http://www.enetwizard.cc/support.rsw">Support System</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" STYLE="cursor: pointer;" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="http://www.enetwizard.cc/stats.rsw">Website Statistics</A></SPAN></DIV></TD></TR></TABLE><DIV STYLE="font-size: 10px;"> </DIV><TABLE CLASS="RSW-TABLE"><TR CLASS="RSW-TABLE-HEAD-TR"><TD CLASS="RSW-TABLE-HEAD-TD"><DIV CLASS="RSW-DIV-HEAD-CENTER"><SPAN CLASS="RSW-FONT-HEAD-TEXT">Page Tools</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="javascript:void(0);">Home</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="javascript:void(0);">Add to Favorites</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="javascript:void(0);">Print Page</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="javascript:void(0);">Send to Friend</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="javascript:void(0);">Rate It</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP2-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW2-TD';"><DIV CLASS="RSW-DIV-ROW2-LEFT"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><A CLASS="RSW-FONT-ROW2-LINK" HREF="javascript:void(0);">Update Notification</A></SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW1-TR"><TD CLASS="RSW-TABLE-ROW1-TD" ONMOUSEOVER="javascript:this.className = 'RSW-TABLE-SEP1-TD';" ONMOUSEOUT="javascript:this.className = 'RSW-TABLE-ROW1-TD';"><DIV CLASS="RSW-DIV-ROW1-LEFT"><SPAN CLASS="RSW-FONT-ROW1-TEXT"><A CLASS="RSW-FONT-ROW1-LINK" HREF="javascript:void(0);">View In Adobe Acrobat</A></SPAN></DIV></TD></TR></TABLE><DIV STYLE="font-size: 10px;"> </DIV><TABLE CLASS="RSW-TABLE"><TR CLASS="RSW-TABLE-HEAD-TR"><TD CLASS="RSW-TABLE-HEAD-TD"><DIV CLASS="RSW-DIV-HEAD-CENTER"><SPAN CLASS="RSW-FONT-HEAD-TEXT">Personalization</SPAN></DIV></TD></TR><TR CLASS="RSW-TABLE-ROW2-TR"><TD CLASS="RSW-TABLE-ROW2-TD"><DIV CLASS="RSW-DIV-ROW2-CENTER"><SPAN CLASS="RSW-FONT-ROW2-TEXT"><SELECT CLASS="RSW-FORM-LIST-ROW2" NAME="txtTheme" SIZE="1"><OPTION VALUE="Matrix">Matrix</OPTION></SELECT></SPAN></DIV></TD></TR></TABLE></TD>< TD VALIGN="TOP" STYLE="width: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TR><TR><TD COLSPAN="7" STYLE="height: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TR><TR><TD COLSPAN="7" CLASS="TEMPLATE-TABLE-BOTTOM" STYLE="height: 20px;"><DIV STYLE="font-size: 1px;"> </DIV></TD></TR><TR><TD COLSPAN="7"><DIV CLASS="TEMPLATE-TABLE-BOTTOM-DIV"><A HREF="http://www.dell.com/" TARGET="DELL.COM"><IMG SRC="http://www.enetwizard.info/shared/power/dell.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Powered by Dell PowerEdge Servers"></A> <A HREF="http://www.redhat.com/" TARGET="REDHAT.COM"><IMG SRC="http://www.enetwizard.info/shared/power/redhat.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Powered by Red Hat Enterprise Linux"></A> <A HREF="http://httpd.apache.org/" TARGET="APACHE.ORG"><IMG SRC="http://www.enetwizard.info/shared/power/apache.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Powered by Apache Web Server"></A> <A HREF="http://www.mysql.com/" TARGET="MYSQL.COM"><IMG SRC="http://www.enetwizard.info/shared/power/mysql.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Powered by MySQL Database Server"></A> <A HREF="http://www.enetwizard.ms/default.rsw"><IMG SRC="http://www.enetwizard.info/shared/power/mserver.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Powered by eNetwizard Matrix Server"></A> <A HREF="http://www.php.net/" TARGET="PHP.NET"><IMG SRC="http://www.enetwizard.info/shared/power/php.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Enhanced by PHP Programming"></A> <A HREF="http://www.rswfire.com/default.rsw" TARGET="RSWFIRE.COM"><IMG SRC="http://www.enetwizard.info/shared/power/rswfire.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Designed by rswfire"></A> <A HREF="http://guru.com/emp/search_results2.cfm?PID2=2532362532453525334225334 32533444d3758253041&catid=&subid=0&keywords=593937&ko=1" TARGET="GURU.COM"><IMG SRC="http://www.enetwizard.info/shared/power/guru.png" BORDER="0" WIDTH="100" HEIGHT="50" ALT="Payments by Guru.com Escrow Services"></A><BR><BR><B>eNetwizard, Inc.</B> • 3863 Belleau Wood Drive #11 • Lexington • Kentucky • 40517 • <<B>Office</B>> 859.401.0313 • <<B>Fax</B>> 859.401.0314 • <<B>Support</B>> 810.955.9946<BR>Copyright <A HREF="http://www.rswfire.com/default.rsw" TARGET="RSWFIRE.COM" CLASS="TEMPLATE-TABLE-BOTTOM-HREF">Robert Samuel White</A>, 1998-2006. All Rights Reserved Worldwide. eNetwizard is a Trademark of <A HREF="http://www.rswfire.com/default.rsw" TARGET="RSWFIRE.COM" CLASS="TEMPLATE-TABLE-BOTTOM-HREF">Robert Samuel White</A>.</DIV></TD></TR><TR><TD COLSPAN="7" STYLE="height: 20px;"> </TD></TR></TABLE> I can successfully locate A:HREF, IMG:SRC, etc., but I cannot locate ONCLICK=location.href. The closest example I have found is this: <P><? function get_links($url) { if( !($body = @file_get_contents($url)) ) return FALSE; //Pattern building across multiple lines to avoid page distortion. $pattern = "/((@import\s+[\"'`]([\w:?=@&\/#._;-]+)[\"'`];)|"; $pattern .= "(:\s*url\s*\([\s\"'`]*([\w:?=@&\/#._;-]+)"; $pattern .= "([\s\"'`]*\))|<[^>]*\s+(src|href|url)\=[\s\"'`]*"; $pattern .= "([\w:?=@&\/#._;-]+)[\s\"'`]*[^>]*>))/i"; //End pattern building. preg_match_all ($pattern, $body, $matches); return (is_array($matches)) ? $matches:FALSE; } function x_array_merge($arr1,$arr2) { for($i=0;$i<count($arr1);$i++) { $arr[$i]=($arr1[$i] == '')?$arr2[$i]:$arr1[$i]; } return $arr; } $url = 'http://www.enetwizard.ws/default.rsw'; $m = get_links($url); $links = x_array_merge($m[3],x_array_merge($m[5],$m[8])); print_r($links); ?></P> However, it does not locate these links either. If anyone can help me with this, I appreciate it. Otherwise, I'll work on this another day. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php