// *** Change this variable ***
// should be the URL to the cgi script
var path_to_cgi="http://www.entertainmybrain.com/cgi/tell/tell_friend.cgi";

// You dont need to change anything else
function tell_friend(what){
path_to_cgi += '?url=' + escape(document.location) + escape('#' + what);
window.open(path_to_cgi,"FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=YES,TOP=130,LEFT=170,WIDTH=390,HEIGHT=375");
}

// this function is for warranty popup
function NewWindow(mypage, myname, w, h, scroll) {
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(); }
}

//this is for drilling instruction pages
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=550,left = 287,top = 134');");
}
