

//mhu28    19-mar-2010 TFS 10048 Cis Improvements Phase 2c Usr case 1.1 Allow enter key on advanced search
//function CatchKeyPress(e) { 
//    var btnToBeClicked = null; 
//     
//    if (!e) var e = window.event; 
//
//    RemoveEnterAndEscEvents(e); 
//    if(e.keyCode == '13') { 
//		var objSender = e.target||e.srcElement;  //target or srcElement depending on browser
//		var ButtonName = objSender.getAttribute("TargetButton"); 
//		btnToBeClicked = document.getElementById(ButtonName); 
//		if(btnToBeClicked) { 
//			btnToBeClicked.click(); 
//		} 
//	} 
//} 

function RemoveEnterAndEscEvents(e) { 
	if (e.keyCode == 13 || e.keyCode == 27) { 
		e.cancelBubble = true; e.returnValue = false; 
	} 
} 

function displayLecturer(name, room, phone, email){
	Alert(name + "\nRoom: " + room);
	return false;
}



function __doPostBack(eventTarget, eventArgument) {
	if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
		theForm.__EVENTTARGET.value = eventTarget;
		theForm.__EVENTARGUMENT.value = eventArgument;
		theForm.submit();
	}
}

//MHU28 18-Feb-10 Show Full description in popup window
function ShowFullAssessmentDescription(text) {
	var popWin = window.open("", "AssessmentDescription", "width=350,height=350,scrollbars=1,resizable=1")
	var html = "<html><head></head><body><p>" + text + "</p>."
	html += "</body></html>"
	popWin.document.open()
	popWin.document.write(html)
	popWin.document.close()
} 

