﻿

function openDir( form ) { 

	var newIndex = form.fieldname.selectedIndex; 

	if ( newIndex == 0 ) { 

		alert( "Please select a location!" ); 

	} else { 

		cururl = form.fieldname.options[ newIndex ].value; 

		window.location.assign( cururl ); 

	} 

} 
window.onload=function()
{
var txtSearchtxt='Search';
var txtSearch=document.getElementById('txtSearch');
txtSearch.onfocus = function()
{this.style.color='#222';this.value=(this.value==txtSearchtxt)?'':this.value;}
txtSearch.onblur= function()
{if(this.value=='')	{this.value=txtSearchtxt;this.style.color='#999';}
else this.value;}

txtSearch.focus();
txtSearch.blur();

}

function rollover()
{
	if(!document.getElementById || !document.createTextNode){return;}
	var n=document.getElementById('nav');
	if(!n){return;}
	var lis=n.getElementsByTagName('li');
	for (var i=0;i<lis.length;i++)
	{
		lis[i].onmouseover=function()
		{
			this.className=this.className?'cur':'over';
		}
		lis[i].onmouseout=function()
		{
			this.className=this.className=='cur'?'cur':'';
		}
	}
}
window.onload=rollover;



