var oldClr;
var oldFontColor;
function overchangclr(obj,bgcolor,FontColor)
{
	oldClr=obj.style.backgroundColor;
	oldFontColor=obj.style.color;
	obj.style.backgroundColor=bgcolor;	
	obj.style.color=FontColor;
	obj.style.cursor='hand';
	return true;	
}
function outchangclr(obj)
{
	obj.style.backgroundColor=oldClr;
	obj.style.color=oldFontColor;
	return true;	
}
function linkUrl(url,state)
{
var att;
att='fullscreen=true,toolbar=false,';
switch(state)
{//1
	case 0://don thuan la mo 1 trang
		window.open(url,'_blank',att);
	break	
	case 1://Them moi
		if (url=='&type=VB')
			{//2
			window.open('VBluat/addnews.aspx','_blank');
			}//\2
			else
			{//3
			window.open('Thuonghieu/NhapHS.aspx','_blank');
			}//\3
		break
	case 2://tra cuu
		if (url=='&type=VB')
			{//4
			window.open('VBluat/Search.aspx','_blank');
			}//\4
			else
			{//5
			window.open('Thuonghieu/tracuu/timkiem.aspx','_blank');				
			}//\5
		break
	case 3://don thuan la mo 1 trang tren trang dang mo
		window.open(url,'_blank');
	break
	default:			
}//\1
	return true;	
}
function openDialog(url,agmSend,closewindow)
{
var sFeature="dialogHeight: 230px; dialogWidth: 400px; edge: Sunken; center: Yes; help: No; resizable: No; status: No;";
window.showModalDialog(url,agmSend,sFeature);
if (closewindow)
	{
		window.close();
		}
return true;
}
function openPageExt(url,vheight,vwidth,vtarget,vscroll)
{
var sFeature="width=" + vwidth + ", height=" + vheight + ", top=" + (screen.height-vheight)/2 + ", left=" + (screen.width-vwidth)/2 +  ", resizable=no, location=no, status=no, scrollbars=" + vscroll + ",menubar=no";
//alert(sFeature);
window.open(url,vtarget,sFeature);
return true;
}
