function confirmDel(link)
{
	/*
		Go to chosen link
	*/
    var is_confirmed = confirm('Do you really want to delete this?');

    if (is_confirmed) {
		window.location.href = link;
        return true;
    }
	else{
		return false;
	}
}

/***********************************
	SHOW and HIDE 
***********************************/
function multiHide(sHideObj, showObj,totalHide)
{ 	
	/*
		Hide multiple object 
		@param sHideObj: general name of objects
		@param showObj: object that will not be hide
		@param totalHide: total number of object that will be hide
	*/	
	for(i=1; i<=totalHide; i++)
	{
		if(i != showObj){
			oHideObj = document.getElementById(sHideObj+i);	
			oHideObj.style.visibility = "hidden";		
		}
		
	}
	
}

function fHide(sHideObj)
{ 	
	oHideObj = document.getElementById(sHideObj);	
	oHideObj.style.visibility = "hidden";		
}

function fShow(sShowObj)
{	
	oShowObj = document.getElementById(sShowObj);
	oShowObj.style.visibility = "visible";		
}

/***********************************
	POP-UP WINDOW
***********************************/
function popup(url)
{
	/*
		Pop-up a window
	*/
	var newwindow;
	newwindow=window.open(url,'name','height=610,width=510, scrollbars=yes, locationbar=false');
	if (window.focus) {newwindow.focus()}
}

/***********************************
	PARENT WINDOW
***********************************/
function parentURL(url)
{
	/*
		From Child Window, click on a button to close Child Window and Go to a URL in Parent Window
		@param url: URL that Parent Window will go to 
	*/
	window.opener.location.href = url;
	window.close();
}