﻿//Confirm DELETE===========================================================================
<!--
	function ConfirmDelete(message, url){
	if(confirm(message)) location.href = url;
	}
//-->

//Display Div===========================================================================
<!--
function Show(cmd)
{
   if (eval("document.all." + cmd + ".style.display") == 'none')
   {  
   	eval("document.all." + cmd + ".style.display=''");
   }
   else
   {
   	eval("document.all." + cmd + ".style.display='none'");
   }
}
//-->

//Show Alert===========================================================================
<!--
	function ShowAlert(message){
	alert(message);
	}
//-->

//Show TABS===========================================================================
<!--
	function ShowTab(i,j) {
	
//		document.getElementById('Tab').style.display='';
//		document.getElementById('option-submit-button').style.display='';
		var k=1
		for (k=1;k<=j;k++)
		{

			document.getElementById('TabDetail'+k).style.display='none';
			document.getElementById('Tab'+k).className='tab';
		
		}

		document.getElementById('TabDetail'+i).style.display='';
		document.getElementById('Tab'+i).className='selectedtab';

	}
//-->

//POP UP===========================================================================
<!--
function popup(url, name, width, height)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=no,width="+width+",height="+height;

MyNewWindow=window.open(""+url,name,settings);
}
//-->

//CLOSE AND REFERESH PARENT===========================================================================
<!--
    function CloseAndReferesh()
     {
       window.opener.location.reload();
       window.close();
     }
//-->


//SELECT ALL===================================================================
function SelectAll()
{
	var col = document.forms("email").tags("INPUT")
	for(i=0;i<col.length;i++)
	{
		if(col[i].dataFld == "Persons")
			col[i].checked = email.chkSelectAll.checked;
		} 
	}
//-->

function UnCheckSelectAllBox(control)
{
	if(control.checked == false)
		email.chkSelectAll.checked = false;
}

