<!--

/**  Function: null clearInput(ele, val)
*    ---------------------------------------------------------------- 
*    Purpose:           clear an input
*    Arguments:         ele			- str, the name of the element to clear
*						val			- str, the default value that should be cleared
*    Returns/Assigns:   none
*/

function clearInput(ele, val){
	if(ele.value == val){
		ele.value='';
	}
}

/**  Function: null openWin(windowURL, windowName, windowFeatures)
*    ---------------------------------------------------------------- 
*    Purpose:           opens a new window and sets its properties
*    Arguments:         windowURL			- str, the url
*						windowName			- str, the window name
*						windowFeatures		- str, the features of the window
*    Returns/Assigns:   none
*/

function openWin(windowURL, windowName, windowFeatures){
	window.open(windowURL, windowName, windowFeatures);
}

/**  Function: null addToFavourites()
*    ---------------------------------------------------------------- 
*    Purpose:           add a link or text for adding to favourites
*    Arguments:         none
*    Returns/Assigns:   writes html to screen
*/

function addToFavourites(){
	if(document.all){
		document.write('<a href="javascript:window.external.AddFavorite(document.location.href, document.title);" class="book">Bookmark</a>'); 
	} else{ 
		document.write('<span class="book">Press Ctrl+D to bookmark</span>');
	}
}

function showSurvey(URL){
	window.open(URL, "SBPOA_Survey", "height=600,width=800,status=yes,toolbar=no,menubar=no, resizable=yes, scrollbars=yes");
}

// -->