function focusFormFields(element) {
	element.value='';
	element.focus();
	element.select();
}

function submitNewLetter() {
	document.getElementById('newsletter-form').submit();
}


//url=url of window to open
//windowName=name to give window
//width=pixels
//height=pixels
//toolbar=[yes|no]
//location=[yes|no]
//directories=[yes|no]
//status=[yes|no]
//menubar=[yes|no]
//scrollbars=[yes|no]
//resizable=[auto|yes|no]
 
function newWindow(url, windowName, width, height, toolbar, location, status, menubar, scrollbars, resizable) {
//set the defaults for the params
if(!windowName) windowName = "popup";
if(!width) width = "400";
if(!height) height = "300";
if(!toolbar) toolbar = "no";
if(!location) location = "no";
if(!status) status = "no";
if(!menubar) menubar = "no";
if(!scrollbars) scrollbars = "no";
if(!resizable) resizable = "no";

//confirmation = confirm("Open Link In a Pop-Up Window?");

//if(confirmation == true){
    var windowProperties = 'height='+height+',width='+width+',toolbar='+toolbar+',location='+location+',status='+status+',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
    win = window.open(url, windowName, windowProperties);
//}    
}