	function confirmAction_cat() {
return confirm("Do you really want to delete category from the links system?\n\nReminder: If you delete a category with links still assigned to it, those links will also be deleted along with it.\n\nIt is advised that you re-assign the categories of those links you desire to keep prior to deleting a category with active links still in it.\n\nClicking OK will proceed with deleting, cancel will cancel.")}

function confirmAction_cat2() {
return confirm("Do you really want to delete this business category?\n\nThe NECA Panel has detected no links currently assigned to this business category.  \nIt is therefore safe to delete.\n\nClicking OK will proceed with deleting, cancel will cancel.")}

function confirmAction_cat3() {
return confirm("Do you really want to delete this business category?\n\nReminder: If you delete a category with companies still linked to it, those links will also be deleted.\n\nThis Category currently has active links assigned to it.\n\nClicking OK will proceed with deleting the category and breaking the links, cancel will cancel.")}


function confirmAction_doc_cat2() {
return confirm("Do you really want to delete this documents category?\n\nThe NECA Panel has detected no documents currently within this category.  \nIt is therefore safe to delete.\n\nClicking OK will proceed with deleting, cancel will cancel.")}

function confirmAction_doc_cat3() {
return confirm("Do you really want to delete this documents category?\n\nReminder: If you delete a category with documents still within to it, those documents will no longer be categorized until you re-assign them\n\nThis Category currently has active documents within it.\n\nClicking OK will proceed with deleting the category and breaking the links, cancel will cancel.\n\nNote: when a category with active documents is deleted, the documents are not deleted, they are just left without a specific category assignment.")}


function confirmAction_link() {
return confirm("Do you really want to delete this link from the Neca Panel?")}

function confirmAction_question_delete() {
return confirm("Do you really want to delete this question from this event?")}

function confirmAction_question_delete_no() {
return alert("There are options linked to this question, you cannot delete a question with linked options.\n\nRemove all linked options then try again")
}


function confirmAction_option_delete() {
return confirm("Do you really want to delete this option from this event?\n\nWarning: Be very careful removing options that may be already in use for active events.\n\nRemoving options from active events can result in registration data loss\n\nClicking OK will proceed with deleting, cancel will cancel")}


function confirmAction_sponsor() {
return confirm("Do you really want to delete this sponsor from the Neca Panel?")}

function confirmAction_member() {
return confirm("Do you really want to delete this member from the Membership Database?")}

function confirmAction_company_delete() {
return confirm("Do you really want to delete this company from the Company Database?")}

function confirmAction_member2() {
return confirm("Do you really want to add this member to the Membership Database?")}

function confirmAction_changepass() {
return confirm("Do you really want to update this member password?")}

function confirmAction_changepass2() {
return confirm("Do you really want to update your member password?")}

function confirmAction_update() {
return confirm("Are you sure you want to update profile information?")}

function confirmAction_doc_delete() {
return confirm("Are you sure you want to delete this document?\n\nPress OK to continue with delete, or Cancel to cancel")
}

function confirmAction_event_delete() {
return confirm("Are you sure you want to delete this event?\n\nDeleting this event will also delete all registrations linked to this event.\n\nPress OK to continue with delete, or Cancel to cancel")
}

function confirmAction_registration_delete() {
return confirm("Are you sure you want to delete this registration?\n\n\nPress OK to continue with delete, or Cancel to cancel")
}



function show_doccats() {
toggleInline('doc_cats');
return false;
}

function toggleInline(t) {
var x = document.getElementById(t).style;
if (x.display == 'inline') x.display = 'none';
else x.display = 'inline';
return false;
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

function NewWindow2(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=yes,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


function NewWindow3(mypage,myname,w,h,scroll,pos){
location.reload();
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=no,status=no,menubar=yes,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
location.reload();
}


function toggleInline(t) {
var x = document.getElementById(t).style;
if (x.display == 'inline') x.display = 'none';
else x.display = 'inline';
return false;
}

function togglecc_hide(t) {
var x = document.getElementById(t).style;
if (x.display == 'inline') x.display = 'none';
return false;
}

function togglecc_show(t) {
var x = document.getElementById(t).style;
x.display = 'inline';
return false;
}


function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity(id, millisec) {
	//if an element is invisible, make it visible, else make it ivisible
	if(document.getElementById(id).style.opacity == 0) {
		opacity(id, 0, 100, millisec);
	} else {
		opacity(id, 100, 0, millisec);
	}
}

function blendimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;
	
	//set the current image as background
	document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";
	
	//make image transparent
	changeOpac(0, imageid);
	
	//make new image
	document.getElementById(imageid).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
		timer++;
	}
}

function currentOpac(id, opacEnd, millisec) {
	//standard opacity is 100
	var currentOpac = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id).style.opacity < 100) {
		currentOpac = document.getElementById(id).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity(id, currentOpac, opacEnd, millisec)
}


function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '$' + num + '.' + cents);
} 


function popsponsors(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=350,height=350,left = 465,top = 337');");
}
