<!--
function disableButtons(thisform,setto) {
    for ($i=0; $i<thisform.elements.length; $i++) {
        if (thisform.elements[$i].type == "button" || thisform.elements[$i].type == "reset") {
            thisform.elements[$i].disabled = setto;
        }
    }
}


var win=null;
function newWindow(href,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;
    } else if (pos == "center") {
        LeftPosition=(screen.width)?(screen.width-w)/2:100;
        TopPosition=(screen.height)?(screen.height-h)/2:100;
    } else {
        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=yes';
    win = window.open(href,'popup',settings);
    return false;
}

function closePopups() {
  if (win && win.open && !win.closed) win.close();
}

$(document).ready(function(){
    $('a[href^="http://"]').attr({ target: "_blank" }).addClass('external');
    $('label[class="required"]').append('<span class="required">*</span> ');
});

//-->
