/************************************************************	Website Name JavaScript	Created:				MM.DD.YYYY	Last Modified:	MM.DD.YYYY	Author:					Your Name************************************************************//************************************************************	START target="_blank" replacement script************************************************************///	this function works around the dropping of//	target="_blank" from XHTML strict//	the function takes all instances of rel="external" from//	anchor tags, and causes them to pop a new window//	in short, use rel="external" instead of target="_blank"//	to pop a new window :)function externalLinks() {	if (!document.getElementsByTagName) return;	var anchors = document.getElementsByTagName("a");	for (var i=0; i<anchors.length; i++) {		var anchor = anchors[i];		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")			anchor.target = "_blank";	}}window.onload = externalLinks;/************************************************************	END target="_blank" replacement script************************************************************//************************************************************	START window launcher code************************************************************/var newWin = null; function launch_window(strURL, strType, strHeight, strWidth) {	if (newWin != null && !newWin.closed)		newWin.close();	if (screen.width) {		var win_top = (screen.height - strHeight) / 2;		var win_left = (screen.width - strWidth) / 2;	} else {		win_top = 0;		win_left = 0;	}  if (win_top < 0)  	win_top = 0;  if (win_left < 0)  	win_left = 0;	var strOptions = "";	if (strType=="console")		strOptions = "resizable,height="+strHeight+",width="+strWidth+",top="+win_top+",left="+win_left;	if (strType=="fixed")		strOptions = "status,height="+strHeight+",width="+strWidth+",top="+win_top+",left="+win_left;	if (strType=="elastic")		strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth+",top="+win_top+",left="+win_left;	newWin = window.open(strURL, 'newWin', strOptions);	newWin.focus(); }//	link example for launch_window/*		<a href="page_name.php" onclick="launch_window(this.href,'console',400,200);return false;">linked text</a>*///	include this JavaScript on the launched page(s) to include a close link if needed/*		<script language="JavaScript"> 		<!-- 		if (window.opener) 			document.write('<strong><a href="#" onclick="self.close();">' + 'Close this window</a></strong>');		//--> 		</script>*//************************************************************	END window launcher code************************************************************/
