// script
if (window.navigator.appName.toLowerCase().indexOf("netscape")> -1){
	netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); 
	enableExternalCapture();
	captureEvents(Event.MOUSEDOWN);
}
//this routine calls a link but adds some paramaters to the url.
//these paramaters will be passed back to this screen on return so the screen can interpret them to
//repopulate  exactly as it was.

function callPage(lnk, path, bookmark){
	lnk.href= path + '&FromSearch=Y&' + vSearchParams + bookmark;
	//vSearchParams are set in a startup script when we bind data to the grid in the vb code. 
	//it contains url paramaters which record the filter settings, and selections on this page
}

function drpClick(obj){
	document.body.style.cursor = 'wait';
	
	switch (obj)
	{
		case 'FieldOfStudy':
			document.getElementById("pnlFieldDropDown").style.display='none';
			document.getElementById("pnlFieldPopup").style.display='block';
			break;	
		case 'Business':
			document.getElementById("pnlBusinessDropDown").style.display='none';
			document.getElementById("pnlBusinessPopup").style.display='block';
			break;	
		case 'Contractor':
			document.getElementById("pnlContractorDropDown").style.display='none';
			document.getElementById("pnlContractorPopup").style.display='block';
			break;
		case 'Keyword':
			document.getElementById("pnlKeywordDropDown").style.display='none';
			document.getElementById("pnlKeywordPopup").style.display='block';
			break;
		case 'Start':
			document.getElementById("pnlStartDropDown").style.display='none';
			document.getElementById("pnlStartPopup").style.display='block';
			break;
		case 'End':
			document.getElementById("pnlEndDropDown").style.display='none';
			document.getElementById("pnlEndPopup").style.display='block';
			break;
		case 'ProjectTitle':
			document.getElementById("pnlProjDropDown").style.display='none';
			document.getElementById("pnlProjPopup").style.display='block';
			break;
		case 'ProjectProp':
			document.getElementById("pnlPropDropDown").style.display='none';
			document.getElementById("pnlPropPopup").style.display='block';
			break;
		case 'Theme':
			document.getElementById("pnlThemeDropDown").style.display='none';
			document.getElementById("pnlThemePopup").style.display='block';
			break;
	}

	var pb = vpostback.innerHTML;
	pb = pb.substring(0, pb.indexOf("''")+1) + obj+ "')" ;
	eval(pb);
}
