<!--

var hpPic = "hp_pic_01.jpg"; {
	num = Math.floor(Math.random()*9);
	if (num == 0) {
		hpPic = "hp_pic_01.jpg";
	}
	else if (num == 1) {
		hpPic = "hp_pic_02.jpg";
	}
	else if (num == 2) {
		hpPic = "hp_pic_03.jpg";
	}
	else if (num == 3) {
		hpPic = "hp_pic_04.jpg";
	}
	else if (num == 4) {
		hpPic = "hp_pic_05.jpg";
	}
	else if (num == 5) {
		hpPic = "hp_pic_06.jpg";
	}
	else if (num == 6) {
		hpPic = "hp_pic_07.jpg";
	}
	else if (num == 7) {
		hpPic = "hp_pic_08.jpg";
	}
	else if (num == 8) {
		hpPic = "hp_pic_09.jpg";
	}
}

function Clear(theText) {
	if (theText.value == theText.defaultValue) {
	theText.value = ""
	}
}	

function isBlank() {
	value=document.searchform.elements['SearchString'].value;
	if ( value == "" ){
        	alert("Please enter search word");
        	return false;
    	}
	else if ( value == " Search AlburyCity for..." ){
        	alert("Please enter search word");
        	return false;
    	}
    	else {
    		return true;
    	}
}

function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
}

function openWindow(URL,name,features) {
	window.open(URL,name,features);
}

function closeWindow() {
	window.close();
}

var date = new Date();
var year = date.getFullYear();

function lastModified() {
	var date = new Date(document.lastModified);
	var day = date.getDate();
	var month = [date.getMonth() + 1];
	var year = date.getYear();
	if (day < 10) day = "0" + day;
	if (month < 10) month = "0" + month;
	if (year < 2000) year += 1900;
	document.write(day + "-" + month + "-" + year);
}

function credit() {
	document.write('<a href="http://www.gocreative.com" class="credit">Site powered by Gocreative<img src="/assets"/assets/images/powered_by.gif" alt="Site powered by Gocreative ContentContributor" height="11" width="135" border="0" align="texttop" /></a>');
}

//-->