// big() makes selected layer longer (height property)
function big(lyr) {
document.all[lyr].style.height=''; }

/* small() makes selected layer shorter (height property)*/
function small(lyr) {
document.all[lyr].style.height='42px';}

function signout()
{
    delete_cookie("OfficeBoyInfo");
    window.open('/', '_self')
}

function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // current date &amp; time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString() + "; path=/";
}

function runsearch()
{
	window.open('//searchResult.aspx','_self')
}

function changeImg(imgID, newimg)
{
	document.all[imgID].src = newimg;
}

function bookmark(url, description)
{
	netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
	if (navigator.appName=='Microsoft Internet Explorer')
	{
	window.external.AddFavorite(url, description);
	}
	else if (navigator.appName=='Netscape')
	{
	alert(netscape);
	}
}

//START code for large image window
var fileWinPicBig
function enlargePicture(url)
{
	if (fileWinPicBig) { fileWinPicBig.close() }

	filename = "viewEnlargePicture.asp?url=" + url
	
	var leftPos = (screen.availWidth-700) / 2
	var topPos = (screen.availHeight-500) / 2 
	fileWinPicBig = window.open(filename,'ViewBigPic','width=400,height=300,scrollbars=yes,status=yes,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos);
	fileWinPicBig.focus()
			
}

imagename='';
	function enlrge(imgnme) {
		lrgewin=window.open("about:blank","","height=200,width=200")
		imagename=imgnme;
		setTimeout('update()',500)
	}


function update() {
		doc=lrgewin.document;
		doc.open('text/html');
		doc.write('<HTML><HEAD><TITLE>Enlarged Image<\/TITLE><\/HEAD><BODY bgcolor="white" onLoad="if  			(self.resizeTo)self.resizeTo((document.images[0].width+10),(document.images[0].height+80))" topmargin="4" leftmargin="0" 			rightmargin="0" bottommargin="0"><table width=""' + document.images[0].width + '" border="0" cellspacing="0" cellpadding="0"><tr><td>');
	doc.write('<IMG SRC="' + imagename + '">');
	doc.write('<\/BODY><\/HTML>');
	doc.close();
	}


