<!--
function showHiddenTable(theTable) {
  if (document.getElementById(theTable).style.display == 'none') {
    document.getElementById(theTable).style.display = 'inline';
  }
}

function hideHiddenTable(theTable) {
  if (document.getElementById(theTable).style.display == 'none') {
    document.getElementById(theTable).style.display = 'none';
  }
  else {
    document.getElementById(theTable).style.display = 'none';
  }
}

function reSizeWin()
{
	try{
	var oBody	=	window.parent.pageFrame.document.body;
	var oFrame	=	window.parent.document.all("pageFrame");
	oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
	oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
	
	}
	//An error is raised if the IFrame domain != its container's domain
	catch(e)
	{
	window.status =	'Error: ' + e.number + '; ' + e.description;
	}
}

function toggleIt(objCaller, objCalledID, textWhenShow, textWhenHide, imgWhenShow, imgWhenHide)
{
	var ctrl = document.getElementById(objCalledID);
	if (ctrl.style.display=="none")
	{
		ctrl.style.display="block";
		objCaller.innerHTML = '<img src=' + imgWhenShow + ' border=0 align=absmiddle>' + '<u>' + textWhenShow + '</u>';
	}
	else
	{
		objCaller.innerHTML = '<img src=' + imgWhenHide + ' border=0 align=absmiddle>' + '<u>' + textWhenHide + '</u>';
		ctrl.style.display= "none";
	}
}
function enter_trigger(e)
{
	if (e.keyCode && e.keyCode == 13)
	{
		document.all["btLogin"].click();
		return false;
	}
	else
		return true;
}
function enterTrigger(btn, event){

 alert(btn);
 if (document.all){

  if (event.keyCode == 13){
  	     event.returnValue=false;

   event.cancel = true;


	//__doPostBack('SignIn1$signinbtn','');
	__doPostBack(btn,'');
  }

 }

 else if (document.getElementById){

  if (event.which == 13){
  	     event.returnValue=false;

   event.cancel = true;

	//__doPostBack('SignIn1$signinbtn','');
	__doPostBack(btn,'');


  }

 }

 else if(document.layers){

  if(event.which == 13){
   event.returnValue=false;

   event.cancel = true;

	//__doPostBack('SignIn1$signinbtn','');
	__doPostBack(btn,'');

  }

 }

}



function openWin(url, winName, wsettings){
	var w = screen.availWidth, h = screen.availHeight;
	var leftPos = (w/2)-(width/2), topPos = (h/2)-(height/2);
	var width = '800px';
	var height = '600px';
	//var WinSettings = "center:yes;scrollbars=yes;resizable=yes;dialogHeight:300px";
	//var WinSettings = 'directories=no,location=no,menubar=no,status=no,scrollbars=yes,resizable=yes,titlebars=no,toolbar=no,width=' + width + ',height=' + height+ ',screenX=' + topPos + ',screenY=' + leftPos+',top=' + topPos + ',left=' + leftPos;
	var WinSettings = 'directories=no,location=no,menubar=no,status=no,scrollbars=yes,resizable=yes,titlebars=no,toolbar=no,' + wsettings;
	//var hWin;
	if (null!=wsettings)	wsettings = WinSettings;
	//var hWin = window.open(url, 'newWindow', WinSettings);
	var hWin = window.open(url, 'newWindow', wsettings);
	hWin.focus();
	if(!hWin.opener){hWin.opener = window;}
}
function SelectAll(val){
	for (var i=0; i < document.forms[0].elements.length; i++)
	{
		if (document.forms[0].elements[i].name=="chkAll") break;
		//document.forms[0].elements[i].checked=!document.forms[0].elements[i].checked;
		document.forms[0].elements[i].checked= val;
	}
}
//function openLinkFromParent(lnk){top.location = lnk;}
function openLinkFromParent(lnk)
{
	window.top.location.href(lnk);
	window.top.reload();
}

//comestic functions
var originalrow_color, originalitem_color;
function highlightrow(obj)
{
//    if(obj.bgColor!="#f8fff0")
//    {
//        originalrow_color=obj.bgColor;
        obj.bgColor="#f8fff0";
        obj.style.cursor="hand";
//    }
//    else
//    {
//        obj.bgColor=originalrow_color;
//    }    
}

function highlightitem(obj)
{
    originalitem_color=obj.bgColor;
    obj.bgColor="#eaffff";
}

function changebackcolor(obj)
{
    //obj.bgColor=originalitem_color;
    obj.bgColor="#FFFFFF";
}

function changecursor(obj)
{
    obj.style.cursor="hand";
}

-->

