// Pops up a window that contains the tip or trick. Sizes itself to be half the size of the screenfunction popIt(mypage, myname, w, h, scroll) {	/*	if (w==null) { w=screen.width-(screen.width/4); }	if (h==null) { h=screen.height-(screen.height/4); }	if (scroll==null) { scroll='yes'; }	if (myname==null) { myname='tipwindow'; }	var winl = (screen.width - w) / 2;	var wint = (screen.height - h) / 2;	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';	var win = window.open(mypage, myname, winprops);	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }	*/	document.location=mypage;}function popIt2(mypage, myname, w, h, scroll) {	alert(myPage);	alert(navigator.appVersion);	if (w==undefined) { w=screen.width-(screen.width/2); }	if (h==undefined) { h=screen.height-(screen.height/2); }	if (scroll==undefined) { scroll='yes'; }	if (myname==undefined) { myname='tipwindow'; }	var winl = (screen.width - w) / 2;	var wint = (screen.height - h) / 2;	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'	win = window.open(mypage, myname, winprops)	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}function printIt(text){	text=document;	print(text);}function checkpage(tLevel) {	var pathAdjuster	pathAdjuster = "";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";	}	if (self.parent.frames.length == 0){		window.location.href = pathAdjuster + 'index2.htm?' + location.href;	}}function doHeader(tLevel) {	var pathAdjuster	pathAdjuster = "";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";	}	if (document.images) {		//default state		bProducts=new Image();		bProducts.src=pathAdjuster + "images/bProducts.gif";		bServices=new Image();		bServices.src=pathAdjuster + "images/bServices.gif";		bDevRes=new Image();		bDevRes.src=pathAdjuster + "images/bDevRes.gif";		bContact=new Image();		bContact.src=pathAdjuster + "images/bContact.gif";		bAbout=new Image();		bAbout.src=pathAdjuster + "images/bAbout.gif";		bNews=new Image();		bNews.src=pathAdjuster + "images/bNews.gif";				//rollover state		bProducts_RO=new Image();		bProducts_RO.src=pathAdjuster + "images/bProductsRO.gif";		bServices_RO=new Image();		bServices_RO.src=pathAdjuster + "images/bServicesRO.gif";		bDevRes_RO=new Image();		bDevRes_RO.src=pathAdjuster + "images/bDevResRO.gif";		bContact_RO=new Image();		bContact_RO.src=pathAdjuster + "images/bContactRO.gif";		bAbout_RO=new Image();		bAbout_RO.src=pathAdjuster + "images/bAboutRO.gif";		bNews_RO=new Image();		bNews_RO.src=pathAdjuster + "images/bNewsRO.gif";	}	document.write('<table width=\"100%\" cellpadding=\"0\" cellspacing=\"1\" border=\"0\" bordercolordark=\"black\" bordercolorlight=\"black\">');	document.write('<tr>');	document.write('<td bgcolor=\"black\" width=\"450\">');	document.write('<img src=\"' + pathAdjuster + 'images/TopLogo.jpg\" width=\"445\" height=\"59\" alt=\"\" border=\"0\">');	document.write('</td>');	document.write('</tr>');	document.write('<tr bgcolor=\"#9289AD\">');	document.write('<td height=\"20\">');	document.write('<a href=\"' + pathAdjuster + 'home/home.htm\" class=\"sub\" onMouseOver=\"img_over(\'bNews\',\'\');\"  onMouseOut=\"img_out(\'bNews\',\'\');\">');	document.write('<img name=\"bNews\" src=\"' + pathAdjuster + '/images/bNews.gif\" width=\"134\" height=\"14\" alt=\"\" border=\"0\" align=\"middle\">');	document.write('</a>');	document.write('<a href=\"' + pathAdjuster + 'products/products.htm\" class=\"sub\" onMouseOver=\"img_over(\'bProducts\',\'\');\"  onMouseOut=\"img_out(\'bProducts\',\'\');\">');	document.write('<img name=\"bProducts\" src=\"' + pathAdjuster + '/images/bProducts.gif\" width=\"79\" height=\"14\" alt=\"\" border=\"0\" align=\"middle\">');	document.write('</a>');	document.write('<a href=\"' + pathAdjuster + 'services/services.htm\" class=\"sub\" onMouseOver=\"img_over(\'bServices\',\'\');\"  onMouseOut=\"img_out(\'bServices\',\'\');\">');	document.write('<img name=\"bServices\" src=\"' + pathAdjuster + '/images/bServices.gif\" width=\"79\" height=\"14\" alt=\"\" border=\"0\" align=\"middle\">');	document.write('</a>');	document.write('<a href=\"' + pathAdjuster + 'devres/devres.htm\" class=\"sub\" onMouseOver=\"img_over(\'bDevRes\',\'\');\"  onMouseOut=\"img_out(\'bDevRes\',\'\');\">');	document.write('<img name=\"bDevRes\" src=\"' + pathAdjuster + '/images/bDevRes.gif\" width=\"155\" height=\"14\" alt=\"\" border=\"0\" align=\"middle\">');	document.write('</a>');	document.write('<a href=\"' + pathAdjuster + 'contact/contact.htm\" class=\"sub\" onMouseOver=\"img_over(\'bContact\',\'\');\"  onMouseOut=\"img_out(\'bContact\',\'\');\">');	document.write('<img name=\"bContact\" src=\"' + pathAdjuster + '/images/bContact.gif\" width=\"101\" height=\"14\" alt=\"\" border=\"0\" align=\"middle\">');	document.write('</a>');	document.write('<a href=\"' + pathAdjuster + 'about/about.htm\" class=\"sub\" onMouseOver=\"img_over(\'bAbout\',\'\');\"  onMouseOut=\"img_out(\'bAbout\',\'\');\">');	document.write('<img name=\"bAbout\" src=\"' + pathAdjuster + '/images/bAbout.gif\" width=\"89\" height=\"14\" alt=\"\" border=\"0\" align=\"middle\">');	document.write('</a>');	document.write('</td>');	document.write('</tr>');	document.write('</table>');}function doRevHeader(tLevel){	var pathAdjuster;	var linkAdjuster;	pathAdjuster = "";	linkAdjuster="";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";		if(i > 1) {			linkAdjuster = linkAdjuster + "../";		}	}	document.write('<br>');	document.write('<a href=\"' + linkAdjuster + 'revolution/revolution.htm\" class=\"SectionHeadLink\">');	document.write('<div align=\"left\"><img src=\"' + pathAdjuster + 'images/authtools/revLogo32.png\" width=\"32\" height=\"32\" alt=\"\" border=\"0\" align=\"absmiddle\">');	document.write('&#160;&#160;&#160;r e v o l u t i o n<br>');	document.write('<hr noshade color=\"black\" size=\"1\">');	document.write('</div></a>');}function doMCHeader(tLevel){	var pathAdjuster;	var linkAdjuster;	pathAdjuster = "";	linkAdjuster="";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";		if(i > 1) {			linkAdjuster = linkAdjuster + "../";		}	}	document.write('<br>');	document.write('<a href=\"' + linkAdjuster + 'revolution/revolution.htm\" class=\"SectionHeadLink\">');	document.write('<div align=\"left\"><img src=\"' + pathAdjuster + 'images/authtools/mcIconLg.png\" width=\"32\" height=\"32\" alt=\"\" border=\"0\" align=\"absmiddle\">');	document.write('&#160;&#160;&#160;m e t a c a r d<br>');	document.write('<hr noshade color=\"black\" size=\"1\">');	document.write('</div></a>');}function doProductHeader(tLevel){	var pathAdjuster;	var linkAdjuster;	pathAdjuster = "";	linkAdjuster="";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";		if(i > 1) {			linkAdjuster = linkAdjuster + "../";		}	}	document.write('<br>');	document.write('<a href=\"' + linkAdjuster + 'products.htm\" class=\"SectionHeadLink\">');	document.write('<div align=\"left\"><img src=\"' + pathAdjuster + 'images/cd.jpg\" width=\"52\" height=\"32\" alt=\"\" border=\"0\" align=\"absmiddle\">');	document.write('&#160;&#160;&#160;p r o d u c t s<br>');	document.write('<hr noshade color=\"black\" size=\"1\">');	document.write('</div></a>');}//Triggers the active state of the rollover & displays the status line messagefunction img_over(imgName,stsLine) {	d = parent.frames[0];	imgObj=eval(imgName+"_RO.src");	document.images[imgName].src=imgObj;	if (window.status) {		status=stsLine;	}	return true;}//Reverse the state of the image to its default & displays the status line messagefunction img_out(imgName,stsLine) {	imgObj=eval(imgName + ".src");	document.images[imgName].src=imgObj;	if (window.status) {		status=stsLine;	}	return true;}function doFooter(tLevel) {	var pathAdjuster	pathAdjuster = "";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";	}	document.write('<hr noshade color=\"#acacac\" size=\"1\">');	document.write('<div align=\"center\">');	document.write('<a href=\"' + pathAdjuster + 'home/home.htm\" class=\"footersitelink\">News and Rumors</a>&#160;');	document.write('<a href=\"' + pathAdjuster + 'products/products.htm\" class=\"footersitelink\">Products</a>&#160;');	document.write('<a href=\"' + pathAdjuster + 'services/services.htm\" class=\"footersitelink\">Services</a>&#160;');	document.write('<a href=\"' + pathAdjuster + 'devres/devres.htm\" class=\"footersitelink\">Developer Resources</a>&#160;');	document.write('<a href=\"' + pathAdjuster + 'contact/contact.htm\" class=\"footersitelink\">Contact STS</a>&#160;');	document.write('<a href=\"' + pathAdjuster + 'about/about.htm\" class=\"footersitelink\">About STS</a>');	document.write('</div>');	document.write('<P>');	document.write('<div class=\"footer\" align=\"center\">');	document.write('Copyright &copy;1997-2010 Sons of Thunder Software, Inc. All rights reserved.');	document.write('<br>Send all comments to <A href=\"mailto:webmaster@sonsothunder.com\" class=\"footerlink\">webmaster@sonsothunder.com</A>.');	document.write('</div>');	document.write('<hr noshade color=\"#acacac" size=\"1\">');}function doTipFooter(tLevel) {	var pathAdjuster	pathAdjuster = "";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";	}	document.write('<hr noshade color=\"#acacac\" size=\"1\">');	document.write('<div align=\"center\">');	document.write('<a href=\"javascript:printIt();\" class=\"ItemLink\">');	document.write('<img src=\"' + pathAdjuster + 'images/printer.gif\" align=\"absmiddle\" width=\"16\" height=\"16\" alt=\"\" border=\"0\">');	document.write('&#160;Print this tip');	document.write('</a>');	document.write('</div>');}function doCodeFooter(tLevel) {	var pathAdjuster	pathAdjuster = "";	for(i = 1;i<=tLevel;i++) {		pathAdjuster = pathAdjuster + "../";	}	document.write('<hr noshade color=\"#acacac\" size=\"1\">');	document.write('<div align=\"center\">');	document.write('<a href=\"javascript:printIt();\" class=\"ItemLink\">');	document.write('<img src=\"' + pathAdjuster + 'images/printer.gif\" align=\"absmiddle\" width=\"16\" height=\"16\" alt=\"\" border=\"0\">');	document.write('&#160;Print this code entry');	document.write('</a>');	document.write('</div>');}function showTip() {	var tParams, tArray, tTipPath, tTip;	tTip = document.location.search.substring(1,document.location.search.length);	if (tTip != "") {		// check to see if it is a "regular" tip or an offsite tip or a common tip (like calling on an MC tip from Rev)		// if it is 'file001', it is in tips/file001.htm		// if it is '_file001', it is in ../metacard/tips/file001.htm		// if it is 'www.fred.com/otherpage.htm' it loads it externally		if (tTip.substring(0,1) == "_") {			// was in MC directory, but should now be in Rev directory			tTipPath = "tips/" + tTip.substring(1,tTip.length) + ".htm";		} else {			if (tTip.indexOf(".") == -1) {				tTipPath = "tips/" + tTip.substring(0,tTip.length) + ".htm";			} else {				tTipPath = "http://" + tTip;			}		}		popIt(tTipPath);	}}function Jump() {	tCode = document.forms["jumpform"].elements["jumper"].value;	if (tCode != "_") {		tLoc = document.location.href;		if(tLoc.indexOf('#') == -1) {			document.location = tLoc + '#' + tCode;		} else {			//Replace current anchor with new anchor			document.location = tLoc.substring(0,tLoc.indexOf('#')) + '#' + tCode;		}	}}