
//Counter1
var range = 16;
var counter = 1 + Math.floor(Math.random()*range);

var brName = "\"" + navigator.appName + "\"";
var brVer = "\"" + navigator.appVersion + "\"";
var platVer = navigator.platform;
var javaEn = "";

if ( !(navigator.javaEnabled()) ) {
  javaEn = "No" ;
} else {
  javaEn = "Yes" ;
}

//-->

//start display day/date code

DaysofWeek = new Array()
DaysofWeek[0]="Sunday"
DaysofWeek[1]="Monday"
DaysofWeek[2]="Tuesday"
DaysofWeek[3]="Wednesday"
DaysofWeek[4]="Thursday"
DaysofWeek[5]="Friday"
DaysofWeek[6]="Saturday"

Months = new Array()
Months[0]="January"
Months[1]="February"
Months[2]="March"
Months[3]="April"
Months[4]="May"
Months[5]="June"
Months[6]="July"
Months[7]="August"
Months[8]="September"
Months[9]="October"
Months[10]="November"
Months[11]="December"


function fixNumber(the_number){
	if (the_number < 10){
		the_number = "0" + the_number;
		}
	return the_number;
}

function fixPMHours(the_number){
	if (the_number>12){
		the_number = the_number - 12;
		}
	return the_number;
} 

	
	var	dayVal;
	var timeVal=new Date()
	var m=timeVal.getMinutes()
	var h=timeVal.getHours()
	var fixed_hour = fixPMHours(h);
	var da=timeVal.getDate()
	var mo=timeVal.getMonth()
	var year=timeVal.getYear()
	var showDay=DaysofWeek[timeVal.getDay()]
	var showMonth=Months[timeVal.getMonth()]
	var fixed_minute = fixNumber(m);
	var the_time = fixed_hour + ":" + fixed_minute;
	var the_date = (showDay+", "+da+" "+showMonth+" "+year+"  ")

function showTime(){
	var timeValue = the_date+" ";
	timeValue +=(h >= 12) ? " " : " ";
	document.write(timeValue);
}


//end display day/date code

function newin1(url)
                {
        newWindow = window.open(url,"Next1Window","toolbar=no,width=340,height=300;,directories=no,status=yes,scrollbars=no,resize=yes,menubar=no, status=no");
                }
				
//Validate Search Box
function validateSearch(form)
{
 	var reason = "";
	var firstCompany = form.katakunci.value;

	if (form.katakunci.value == "")
	{
	 	 reason += "Kata Kunci\n";
	}
	
	if (reason == "")
	{
			form.company.value = lastCompany += firstCompany += " Family";
			return true;
	}
	else
	{
	alert("Anda belum memasukkan : \n" + reason);
  return false;
	}

} //End validate Search Box

//Validate Kategori
function validateKategori(form)
{
 	var reason = "";
	var firstCompany = form.kategori.value;

	if (form.kategori.value == "")
	{
	 	 reason += "Kategori\n";
	}
	
	if (reason == "")
	{
			form.company.value = lastCompany += firstCompany += " Family";
			return true;
	}
	else
	{
	alert("Anda belum memilih : \n" + reason);
  return false;
	}

} //End validate Kategori


// Mouse Over

{
	homeon = new Image(35,34);
    homeon.src = "images/menu_home_on.gif";
    homeoff = new Image(35,34);
    homeoff.src = "images/menu_home_off.gif";
	profileon = new Image(103,34);
    profileon.src = "images/menu_profile_on.gif";
    profileoff = new Image(103,34);
    profileoff.src = "images/menu_profile_off.gif";
	peopleon = new Image(146,34);
    peopleon.src = "images/menu_people_on.gif";
    peopleoff = new Image(146,34);
    peopleoff.src = "images/menu_people_off.gif";
	serviceson = new Image(61,34);
    serviceson.src = "images/menu_services_on.gif";
    servicesoff = new Image(61,34);
    servicesoff.src = "images/menu_services_off.gif";
    allianceson = new Image(66,34);
    allianceson.src = "images/menu_alliances_on.gif";
    alliancesoff = new Image(66,34);
    alliancesoff.src = "images/menu_alliances_off.gif";
    contacton = new Image(68,34);
    contacton.src = "images/menu_contact_on.gif";
    contactoff = new Image(68,34);
    contactoff.src = "images/menu_contact_off.gif";
                }
				
				
function img_act(imgName)
                                {
                                        imgOn = eval(imgName + "on.src");
                                        document [imgName].src = imgOn;
                                }

function img_inact(imgName)
                                {
                                        imgOff = eval(imgName + "off.src");
                                        document [imgName].src = imgOff;
				}
function goPage(selectlist) {
  theURL = selectlist.options[selectlist.selectedIndex].value
  if (theURL != "") { location.href = theURL }
}


// Mouse Over End