DIALOG_DIR='/lib/dialogs/';
LIB_DIR='/lib/';
function confirmLink(theQuery)
{
	  var is_confirmed = confirm(theQuery);
	    return is_confirmed;
}

function new_win(urel,w,h)
{
 w1=window.open(urel+'&'+_sname+'='+_sid,'_blank','resizable=yes,menubar=no,status=no,scrollbars=no,width='+w+',height='+h);
 
}
function new_win_scr(urel,w,h)
{
 w1=window.open(urel+'&'+_sname+'='+_sid,'_blank','resizable=no,menubar=no,status=no,scrollbars=yes,width='+w+',height='+h);
}

function show_image(urel,w,h)
{
	w1=window.open('','_blank','resizable=yes,menubar=no,status=no,scrollbars=no,width='+w+',height='+h);
	w1.document.write('<html><head><title>Full size</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	if (urel.substr(urel.length-3,3) == 'swf')
	{
		w1.document.write('<object valign="top" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" alt="" width="'+w+'" height="'+h+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + urel + '" /><param name="quality" value="high" /><embed src="' + urel + '" quality="high" alt=""  width="'+w+'" height="'+h+'" name="Flash Header" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
	else
	{
		w1.document.write('<img src="' + urel + '">');
	}
	w1.document.write('</body></html>');
}

function new_win_res(urel,w,h)
{
 w1=window.open(urel,'_blank','resizable=yes,menubar=no,status=yes,scrollbars=yes,width='+w+',height='+h);
}
function ParentRedirect(url)
{
         self.opener.location=url;
         return false;
}
function AutoTop()
{
	parent.document.URL='';
}

function detectIE()
{
	var str = navigator.appName;
	if (str.match("Microsoft"))
		return true;
	else
		return false;
}
function resizeWindow(winObject,xOffset,yOffset)
{
	winObject.resizeTo(screen.availWidth - xOffset,screen.availHeight - yOffset);
}
function moveWindow(winObject,xOffset,yOffset)
{
	winObject.moveTo(screen.availWidth - xOffset,screen.availHeight - yOffset);
}
function closeWindow(winObject,restoreSize)
{
	if (restoreSize)
  	{
  		resizeWindow(winObject,0,0);
	}
}

function selectUser(id_name,section_name)
{
      	w1 = window.open(DIALOG_DIR+'siteuserdlg.php?div='+id_name + '&section='+section_name+'&'+_sname+'='+_sid,'_blank','resizable=no,menubar=no,status=yes,scrollbars=yes,width=710,height=650,dialog=1,depended=1,modal=1,z-lock=1');
      	return w1;

}

function ChangePwdDlg()
{
	w1 = window.open(DIALOG_DIR+'chpassdlg.php'+'?'+_sname+'='+_sid,'_blank','resizable=no,menubar=no,status=no,scrollbars=no,width=340,height=230,dialog=1,depended=0,modal=1,z-lock=1');
      	return w1;
}
function showFloatPanel(panelID,iconID)
{
	var pid = document.getElementById(panelID);
	var idid = document.getElementById(iconID);
	if (pid.style.display == 'none' || pid.style.display == '')
	{
		pid.style.display = 'inline';
		
	}
	else
	{
		pid.style.display = 'none';
		
	}
}
function selectUser(sBox,tBox)
{
}
