function refreshBySelect(sel, targetstr)
{
	//To refresh the form with info from a combobox
	//OnChange="refresh_form(this, 'self')"

	var index = sel.selectedIndex;
	if (sel.options[index].value != '') {
		if (targetstr == 'blank') {
			window.open(sel.options[index].value, 'win1');
		} 
		else {
			var frameobj;
			if (targetstr == '') targetstr = 'self';
			if ((frameobj = eval(targetstr)) != null)
				frameobj.location = sel.options[index].value;
		}
	}
}

function confirmDelete()
{
	var agree=confirm("Are you sure you wish to continue?");
	if (agree)
		return true ;
	else
		return false ;
}


//*********************************************
//************* NO Wight Click ****************
function clickIE()
 
{
	if (document.all)
	{
		(message);return false;
	}
}
 
function clickNS(e) 
{
	if(document.layers||(document.getElementById&&!document.all))
	{
		if (e.which==2||e.which==3) 
		{
			(message);return false;
		}
	}
}

function noRightClick()
{
	var message="";
	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);document.  onmousedown=clickNS;
	}
	else
	{
		document.onmouseup=clickNS;document.oncontextmenu  =clickIE;
	}
	document.oncontextmenu=new Function("return false");
}
//*********************************************
//*********************************************

