//----------------------------------
// Google Search
//----------------------------------
var domainroot="www.javaauction.com"

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
   }
}

//----------------------------------
// Tanggal dan Jam Digital
//----------------------------------

function MakeArray(n) {
  this.length = n
  return this
}

monthNames = new MakeArray(12)
monthNames[1] = "JANUARI"
monthNames[2] = "FEBRUARI"
monthNames[3] = "MARET"
monthNames[4] = "APRIL"
monthNames[5] = "MEI"
monthNames[6] = "JUNI"
monthNames[7] = "JULI"
monthNames[8] = "AGUSTUS"
monthNames[9] = "SEPTEMBER"
monthNames[10] = "OKTOBER"
monthNames[11] = "NOVEMBER"
monthNames[12] = "DESEMBER"
dayNames = new MakeArray(7)
dayNames[1] = "MINGGU"
dayNames[2] = "SENIN"
dayNames[3] = "SELASA"
dayNames[4] = "RABU"
dayNames[5] = "KAMIS"
dayNames[6] = "JUMAT"
dayNames[7] = "SABTU"

function show2(){
if (!document.all&&!document.getElementById)
return
thelement=document.getElementById? document.getElementById("tick2"): document.all.tick2
var Digital=new Date()
var theDay = dayNames[Digital.getDay() + 1]
var theDate = Digital.getDate()
var theMonth = monthNames[Digital.getMonth() + 1]
msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
if (msie4) {
  var theYear = Digital.getYear()
} else {
  var theYear = Digital.getYear() +1900
}
var theHour=Digital.getHours()
var theMinute=Digital.getMinutes()
var theSecond=Digital.getSeconds()
var dn="PM"
if (theHour<12)
dn="AM"
// if (theHour>12)
// theHour=theHour-12
if (theHour==0)
// theHour=12
theHour=24
if (theHour<=9)
theHour="0"+theHour
if (theMinute<=9)
theMinute="0"+theMinute
if (theSecond<=9)
theSecond="0"+theSecond
// var ctime=theDay+", &nbsp;"+theDate+" &nbsp;"+theMonth+" &nbsp;"+theYear+" - "+theHour+":"+theMinute+":"+theSecond+" "+dn
// var ctime=theDay+"<br />"+theDate+" &nbsp;"+theMonth+" &nbsp;"+theYear+"<br />"+theHour+":"+theMinute+":"+theSecond
var ctime=theDay+", &nbsp;"+theDate+" &nbsp;"+theMonth+" &nbsp;"+theYear+" - "+theHour+":"+theMinute+":"+theSecond+" &nbsp; &nbsp;"
thelement.innerHTML=ctime
setTimeout("show2()",1000)
}
window.onload=show2
