function check_submit() 
{
if (confirm('DELETE ENTRY?'))
   { return true;}
	 return false;
}

function check_CD() 
{
if (confirm('DELETE CD COVER?'))
   { return true;}
	 return false;
}

function check_submit_d_all() 
{
if (confirm('Are you sure you would like to delete all entries?'))
   { return true;}
	 return false;
}

function check_submit_d() 
{
if (confirm('Are you sure you would like to delete the selected entries?'))
   { return true;}
	 return false;
}


function check_submit1() 
{
if (confirm('Are you sure you want to increment fiscal year?\nAll the values from CY Paid amount will automatically be transferred to LY Paid amount column.'))
   { return true;}
	 return false;
}

function check_submit2() 
{
if (confirm('Are you sure you want to clear the detailed statistics?'))
   { return true;}
	 return false;
}

function check_submit3() 
{
if (confirm('Are you sure you want to delete the selected sections?'))
   { return true;}
	 return false;
}

function check_submit4() 
{
if (confirm('Are you sure you want to delete the selected group?\nAll the photos within that group will also be deleted!'))
   { return true;}
	 return false;
}


function check_submit5() 
{
if (confirm('Are you sure you want to increment fiscal year?\nAll the values of Years paid and Total sum will be adjusted respectively'))
   { return true;}
	 return false;
}

function check_submit6() 
{
if (confirm('You have requested to change the general site password.\nThis will change the password for all users of the site.\nAre you sure you want to do this?'))
   { return true;}
	 return false;
}

function check_submit7() 
{
if (confirm('Are you sure you want to clear the PayPal transaction history?'))
   { return true;}
	 return false;
}

function check_submit8()
{
if (confirm('Are you sure you want to delete the selected group?'))
   { return true;}
         return false;
}


function check_submit9()
{
if (confirm('Are you sure you want to reset solicitation preferences for the class agents?\nOnce you click yes, all solicitation preferences that were submitted previously will be deleted.'))
   { return true;}
         return false;
}

function check_submit10()
{
if (confirm('Are you sure you want to clear all activities and solicitation preferences for this Class Agent?'))
   { return true;}
         return false;
}


function dec () 
{ 
var index = document.report.type.selectedIndex;
if (index != 4) { document.report.years.disabled=true;}
	else { document.report.years.disabled=false;document.report.years.focus();document.report.years.value=1; }
}


function initStopwatch() 
{ 
 var myTime = new Date(); 
        var timeNow = myTime.getTime();  
        var timeDiff = timeNow - clockStart; 
        this.diffSecs = timeDiff/1000; 
        return(this.diffSecs); 
}

function getSecs() 
{ 
        var mySecs = initStopwatch();
        var mySecs1 = ""+mySecs; 
        mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " secs."; 
        document.tim.timespent.value = mySecs1 
        window.setTimeout('getSecs()',1000); 
}

function times() 
{ 

startday = new Date();
clockStart = startday.getTime();

var x,y;
	if ( navigator.appName == "Netscape" ) {
		x=glX;
		y=glY;
	} else {
		x=window.event.x;
		y=window.event.y;
	}
y=y-100;
x=x-100;
document.getElementById("fotos").style.top=document.body.scrollTop+y;
document.getElementById("fotos").style.left=document.body.scrollLeft+x;
document.getElementById("fotos").style.visibility = "visible";	
getSecs();

}

function changeDynaList( list, source, key, orig_key, orig_val ) {
	// empty the list
	for (i in list.options.length) {
		list.options[i] = null;
	}
	i = 0;
	for (x in source) {
		if (source[x][0] == key) {
			opt = new Option();
			opt.value = source[x][1];
			opt.text = source[x][2];

			if ((orig_key == key && orig_val == opt.value) || i == 0) {
				opt.selected = true;
			}
			list.options[i++] = opt;
		}
	}
	list.length = i;
}