var agree = '';
function confirmSubmit() {
	agree=confirm("Are you sure you wish to delete this record?");
	if (agree) {		
		return true ;
	}		
	else {
		return false;
	}
		
}
//this so when pressing enter won't submit the form when pressing the enter button
//usually it's one of the delete buttons that ending up posting
function confirmSubmit_inventory(e) {

	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
//alert(keycode);
	if(keycode == 13) {
		void(0);
		return false;

	}
}

function image_swap(original, src, map) {
	DivElement = document.getElementById(original);	
	DivElement.src = src;	
	DivElement.useMap = map;	
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=0,location=0,statusbar=1,menubar=1,resizable=1,width=970,height=1170,left = 260,top = 232');");
}