<!--

/**  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 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"><a href="#" title="No Link">Press Ctrl+D to bookmark</a></span>');
	}
}

function ShowCourse(iContentNo){
      window.open('/file.php?content_realid=' + iContentNo,'CourseWindow','width=600,height=650,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,status=no');
}

// -->