// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

if (window != top) top.location.href = location.href;

function mark_for_destroy(element) {
    $(element).next('.should_destroy').value = 1;
    $(element).up('.contact_datum').hide();
}

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

window.onload = focusForm;

function focusForm() {
    if(document.getElementById("login")){document.getElementById("login").focus();} 
}
