function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}

function popUp(URL,windowName,width,height) {	
    var features =
        'width='        + width +
        ',height='      + height +
        ',location=no' +
        ',menubar=no' +
        ',scrollbars=no' +
        ',status=no' +
        ',toolbar=no' +
        ',resizable=yes,top=10,left=10';

    window.open (URL, windowName, features);
}

function getCookieVal (offset) {  
var endstr = document.cookie.indexOf (";", offset);  
if (endstr == -1)    
endstr = document.cookie.length;  
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}

function loginBar() {
my_handle = GetCookie('handle');
ytk = GetCookie('ytinfo');
iab_user_id = GetCookie('iab_user_id');
uc = iab_user_id * 577;
ucc = iab_user_id * 23;

if (my_handle) {
	if (my_handle && ytk) {
		document.write("Hi, <b>" + my_handle + "</b>! <nobr><a href=/gen/logout.asp><B>Log Out</B></a> | <a href=/gen/edit_profile.asp><B>My Account</B></a></nobr>");
	}
	else {
		//self.location="/gen/logout.asp?r=expired";
	}
}
else {
	document.write("<nobr><a href=/gen/login.asp><B>Log In</B></a> | <a href=/gen/edit_profile.asp><B>New Account</B></a></nobr>");
}
}

function check_search() {
	result = true;
	if (document.s_form.ss.value.length < 2) {
		alert("Please enter a string to search for");
		result = false;
	}
	return result;
}

function keyOnly() {	
    is_ok = confirm("This function tracks new posts since the last time you looked at the thread, and will jump you directly to the first new post in the thread. You need to be a key member in order for this to work.\n\nWant to become one now?");
	if (is_ok) {
		self.location="/gen/key_members.asp";
	}
}

function delPost(my_reply,comment_id,ct,thisq,read_page,ss,my_k,sw) {	
    if (my_reply == 0) {
		is_ok = confirm("Are you sure you want to delete this ENTIRE THREAD? Deleting the first post will delete this entire thread and make it inaccessable.");
	}
	else {
		is_ok = confirm("Are you sure you want to delete this post?");
	}
	if (is_ok) {		self.location="forums.asp?action=delete&cid="+comment_id+"&ct="+ct+"&q_id="+thisq+"&read_page="+read_page+"&ss="+ss+"&k="+my_k+"&search_where="+sw;
	}
}

function delPostArch(my_reply,comment_id,ct,thisq,read_page,ss,my_k,sw) {	
    if (my_reply == 0) {
		is_ok = confirm("Are you sure you want to delete this ENTIRE THREAD? Deleting the first post will delete this entire thread and make it inaccessable.");
	}
	else {
		is_ok = confirm("Are you sure you want to delete this post?");
	}
	if (is_ok) {		self.location="forums.asp?action=delete_arch&cid="+comment_id+"&ct="+ct+"&q_id="+thisq+"&read_page="+read_page+"&ss="+ss+"&k="+my_k+"&search_where="+sw;
	}
}

function lockThread(comment_id,ct,thisq,read_page,ss,my_k,sw) {	
	lock_reason = confirm("Are you sure you want to lock this thread?");
	if (lock_reason) {		self.location="forums.asp?action=lock&cid="+comment_id+"&ct="+ct+"&q_id="+thisq+"&read_page="+read_page+"&ss="+ss+"&k="+my_k+"&search_where="+sw;
	}
}
function unlockThread(comment_id,ct,thisq,read_page,ss,my_k,sw) {	
	lock_reason = confirm("Are you sure you want to unlock this thread?");
	if (lock_reason) {		self.location="forums.asp?action=unlock&cid="+comment_id+"&ct="+ct+"&q_id="+thisq+"&read_page="+read_page+"&ss="+ss+"&k="+my_k+"&search_where="+sw;
	}
}



function updateCounter(limit,cur_val,counter_name) {
	var old = document.getElementById(counter_name).value;
	document.getElementById(counter_name).value=cur_val;
	if(document.getElementById(counter_name).value > limit && old <= limit) {
		alert('Text is too long! '+limit+' chars max.');
	if(document.styleSheets) {
		document.getElementById(counter_name).style.fontWeight = 'bold';
		document.getElementById(counter_name).style.color = '#ff0000'; } }
	else if(document.getElementById(counter_name).value <= limit && old > limit
	   && document.styleSheets ) {
		document.getElementById(counter_name).style.fontWeight = 'normal';
		document.getElementById(counter_name).style.color = '#000000'; } 
}

function keyOnly() {	
    is_ok = confirm("You need to be a key member in order to use this feature.\n\nIf you click OK you will be taken to a page with more information.");
	if (is_ok) {
		self.location="/gen/key_members.asp";
	}
}