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 popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 390,top = 230');");
}
