function openLotPic( picLot, picNam ){
    newWin = window.open('','','width=850,height=600,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbars=0,screenX=100,left=10,screenY=30,top=10' );
    newWin.document.write("<head><title>:| Java Auction |:</title></head>");
    newWin.document.write("<body style='margin:0px; padding:0px' text='#ffffff' bgcolor='#ffffff'>");
    newWin.document.write("<table width='100%' cellpadding='0' cellspacing='0' border='0'><tbody><tr>");
    newWin.document.write(" <td width='100%' height='25' align='center' valign='middle' bgcolor='#000000'>");
    newWin.document.write(" <BIG>Lot # " + picLot + "</BIG></td>");
    newWin.document.write("</tr><tr>");
    newWin.document.write(" <td width='100%' align='center' valign='top'>");
    newWin.document.write("  <br><img src='cat/"+picNam+"a.jpg' border='0'>");
    newWin.document.write("  <br><img src='cat/"+picNam+"b.jpg' border='0'>");
    newWin.document.write(" </td></tr></tbody></table>");
    newWin.document.write("</body>");
}


//----------------------------------
// Google Search
//----------------------------------
var domainroot="www.javaauction.info"

function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}

//----------------------------------
// Tell a Friend
//----------------------------------

var initialsubj="Hay buddy, take a look at this"
var initialmsg="Hi:\n You may want to check out this site: "+window.location
var good;
function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid address.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {

window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
   }
}

