<!--

var newWindow;
function popup(URL,width,height) 
{
	if(!newWindow || newWindow.closed )
	{
		newWindow = window.open(URL, 
                        'script','toolbar=0,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,dependent=yes,width='+width+',height='+height+',left=60,top=60');
    newWindow.focus();
	}
	else
	{
		newWindow.resizeTo(width+12,height+30);
    newWindow.focus();
	}
}

function slides(winSlides) {
	var newWindow = null;
	if(!newWindow || newWindow.closed)
	{
		newWindow = window.open(
						winSlides,
						'slide_window',
						'height=550,width=550,scrollbars,resizable,left=20,top=20');

		newWindow.focus();
	} 
	else
	{
		newWindow.focus();
	}
}


function contact_upload(callField,Contact_ID)
{
	var URL = 'contact_upload.php?callField=' + callField + '&Contact_ID=' + Contact_ID;

	var newWindow = null;
	if(!newWindow || newWindow.closed)
	{
		newWindow = window.open(
						URL,
						'upload_window',						
						'height=200, width=500, toolbar=no, location=no, directories=no, scrollbars=no, status=no, resizable=yes, menubar=no, copyhistory=no, left=0, top=0');

		newWindow.focus();
	} 
	else
	{
		newWindow.focus();
	}
}

function refresh()
{
	form = document.forms[0];
	form.submit();
}

function clear_radio_buttons() 
{
	var form=document.forms[0];
	for (var i = 0; i < form.SysMessage.length; i++) {
		  form.SysMessage[i].checked = false;
     }
}

function setFocus() 
{
	if (login.UserName.value == '')
	{
		login.UserName.focus();
	} 
	else
	{
		login.UserPass.focus();
	}
}

function confirm_delete(url) {
	if (window.confirm("Are you sure?")) {
		window.location = url;
	}
}

function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}
//-->
