


/*following opens a window with linking text for each page*/
function openLinkWindow() {
var url = this.location;
var who = document.title;

TheNewWin = window.open('','name','height=250,width=430, toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); 

TheNewWin.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:\/\/www.w3.org\/TR\/ xhtml1\/DTD\/xhtml1-transitional.dtd"><html xmlns="http:\/\/www.w3.org\/1999\/xhtml">');
TheNewWin.document.write('<head><title>Linking Code For This Page<\/title><link rel="stylesheet" type="text\/css" href="\/js_ss/common.css" \/><\/head><body bgcolor="#ffffff"><img src="\/images\/hwm_logo1.gif" alt="Helping With Math Logo" width="56" height="80" border="0" style="padding-right:10px;" align="left"\/><br \/><p>Use the HTML code below to help you link to the page you are viewing on HelpingWithMath.com<\/p>');


TheNewWin.document.write('<form NAME="copy"><input type=button value="Highlight Code" onClick="javascript:this.form.txt.focus();this.form.txt.select();"><textarea NAME="txt" ROWS=5 COLS=45 WRAP=VIRTUAL>');

TheNewWin.document.write('<a href="');
TheNewWin.document.write(url);
TheNewWin.document.write('">');
TheNewWin.document.write(who);
TheNewWin.document.write('<\/a>');

TheNewWin.document.write('<\/textarea><\/form>');

TheNewWin.document.write('<p align="center"><a href="#" onclick="self.close();return false;">Close');
TheNewWin.document.write(' Window<\/a><\/p> <\/body><\/html>');
} 
