function mailingcheckfield(){

if(document.form.username.value == ""){
alert("You must enter your name!");
document.form.username.focus();
return false;
}

if(document.form.Address.value == ""){
alert("You must enter your address!");
document.form.Address.focus();
return false;
}

if(document.form.email.value == ""){
alert("You must enter a email address!");
document.form.email.focus();
return false;
}
if(document.form.email.value != ""){
if(document.form.email.value.indexOf('@', 0) == -1 || document.form.email.value.indexOf('.',0) == -1 || document.form.email.value.indexOf(' ',0) != -1 || document.form.email.value.indexOf(',',0) != -1 ){
alert("You must enter a valid email address!");
document.form.email.focus();
return false;
}
}

if(document.form.phone.value == ""){
alert("You must enter your phone number!");
document.form.phone.focus();
return false;
}

}

// // // // //

function charitiescheckfield(){

if(document.form.organization.value == ""){
alert("You must enter the name of your organization!");
document.form.organization.focus();
return false;
}

if(document.form.username.value == ""){
alert("You must enter a contact's name!");
document.form.username.focus();
return false;
}

if(document.form.email.value == ""){
alert("You must enter a contact's email!");
document.form.email.focus();
return false;
}
if(document.form.email.value != ""){
if(document.form.email.value.indexOf('@', 0) == -1 || document.form.email.value.indexOf('.',0) == -1 || document.form.email.value.indexOf(' ',0) != -1 || document.form.email.value.indexOf(',',0) != -1 ){
alert("You must enter a valid contact's email!");
document.form.email.focus();
return false;
}
}

if(document.form.phone.value == ""){
alert("You must enter a contact's phone number!");
document.form.phone.focus();
return false;
}

if(document.form.mission.value == ""){
alert("You must enter your organization's mission!");
document.form.mission.focus();
return false;
}

if(document.form.desc.value == ""){
alert("You must enter a contact's phone number!");
document.form.desc.focus();
return false;
}

if(document.form.date.value == ""){
alert("You must enter an approximate date of your next event!");
document.form.date.focus();
return false;
}

if(document.form.guests.value == ""){
alert("You must enter a number of guests!");
document.form.guests.focus();
return false;
}

if(document.form.statement.value == ""){
alert("You must enter a short statement of how you anticipate this benefit party will help your organization!");
document.form.statement.focus();
return false;
}

}

// // // // //

//Popup
var newWin = null;
function popUp(strU, strW, strH) {
x = (640 - strW)/2, y = (480 - strH)/2;
if(screen) { x = (screen.availWidth - strW)/2; y = (screen.availHeight - strH)/2; }
if(newWin != null && !newWin.closed) { newWin.close(); }
var newOpt = "";
newOpt = "status,scrollbars,width="+strW+",height="+strH+",screenX="+x+",screenY="+y+",top="+y+",left="+x;
newWin = window.open(strU,'newWin', newOpt);
}

// // // // //

//Flash Object Creation
function fnSwf(hold,id,path,width,height,scale){

//Variable Data
var output = '';

//Create Code
output = '<object type="application/x-shockwave-flash" id="' + id + '" data="' + path + '" width="' + width + '" height="' + height + '">';
output += '<param name="movie" value="' + path + '" />';
output += '<param name="quality" value="high" />';
output += '<param name="scale" value="' + scale + '" />';
output += '</object>';

//Output Data
document.getElementById(hold).innerHTML = output;

}