function isDelete(msg,url){
	if (confirm(msg)){
		window.location.href = url ;
	}
}

function openWindow(url,width,height){
	window.open(url,'','width='+width+',height='+height+',scrollbars=yes');
}

function showSubMenu(num){
	menu = eval("subMenu"+num);
	if (menu.style.display == "none")
		menu.style.display = "";
	else
		menu.style.display = "none";
}



function go2url(url){
	location.href = url;
}

function openLinkUrl(url){
	location.href = url;
}


function checkAll(form){
	for (var i=0; i<form.elements.length; i++)
	{
		var e = form.elements[i];
		if (e.name == "chkID[]")
			e.checked = form.chkall.checked;
	}
}

function openWin(f,n,w,h,s){
	sb = s == "1" ? "1" : "0";
	l = (screen.width - w)/2;
	t = (screen.height - h)/2;
	sFeatures = "left="+ l +",top="+ t +",height="+ h +",width="+ w
			+ ",center=1,scrollbars=" + sb + ",status=0,directories=0,channelmode=0";
	openwin = window.open(f , n , sFeatures );
	if (!openwin.opener)
		openwin.opener = self;
	openwin.focus();
	return openwin;
}