function popup(URL,width,height){window.open(URL,'_popup','width='+width+',height='+height+',location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=no,screenX=400,screenY=400,top=400,left=400')}function gone(URL,width,height){ var r=confirm("Are you SURE you want to delete?");if(r==true){window.open(URL,'_blank','width='+width+',height='+height+',location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=no,screenX=400,screenY=400,top=400,left=400')}else{alert("Well don't press delete then")}} function SendHome(){window.opener.location=window.opener.location; setTimeout('self.close();','1500')}
function submitToPopup(formObject){popup(formObject.action,550,500);formObject.submit();return false;}
function deleteConfirmation(url) {
	var answer = confirm("Are you sure you want to delete that!")
	if (answer){
		//alert("Click okay to delete.")
		popup(url,225,225);
	}
	else{
		alert("PHEW!!  That was close!")
	}
}
jQuery(document).ready(function() {
	jQuery(":input.datetime").dynDateTime({
			showsTime: true,
			ifFormat: "%Y-%m-%d %H:%M:00",
			daFormat: "%l;%M %p, %e %m,  %Y",
			align: "BC",
			electric: false,
			singleClick: true
		});
	jQuery(":input.dateonly").dynDateTime({
			ifFormat: "%Y-%m-%d",
			daFormat: "%l;%M %p, %e %m,  %Y",
			align: "BC",
			electric: false,
			singleClick: true
		});
	jQuery(":input#datepicker").blur(function(){
             var newDate = this.value;
             $(":input.childDate").val(newDate);
             //alert('You changed the input: ' + newDate);
             });

});

