// ********************************
// Order Free Text and Banner Advertising Step 1 MEMBER VERSION

function isblank1()
{

check_forexisting=document.getElementById("companyinfo").style.display
if (check_forexisting=="none")
{return true;}
else
{
var blank_exists="";

if (document.forms[0].elements[1].checked == false)
{blank_exists=blank_exists + "TERMS AGREEMENT is unchecked. \n\tPlease read and agree with our Policies for Advertisements. \n";}
if (document.forms[0].elements[2].value == "")
{blank_exists=blank_exists + "COMPANY NAME is blank. \n\tPlease enter a Company Name. \n";}
if (document.forms[0].elements[3].value == "")
{blank_exists=blank_exists + "ADDRESS is blank. \n\tPlease enter an Address. \n";}
if (document.forms[0].elements[5].value == "")
{blank_exists=blank_exists + "CITY is blank. \n\tPlease enter a City. \n";}
if (document.forms[0].elements[7].value == "")
{blank_exists=blank_exists + "ZIP CODE is blank. \n\tPlease enter a Zip Code. \n";}
if (document.forms[0].elements[8].value == "")
{blank_exists=blank_exists + "PHONE NUMBER is blank. \n\tPlease enter a Telephone Number. \n";}
if (document.forms[0].elements[10].value == "")
{blank_exists=blank_exists + "EMAIL is blank. \n\tPlease enter a Contact Email. \n";}
if (document.forms[0].elements[11].value == "")
{blank_exists=blank_exists + "FIRST NAME is blank. \n\tPlease enter a First Name. \n";}
if (document.forms[0].elements[12].value == "")
{blank_exists=blank_exists + "LAST NAME is blank. \n\tPlease enter a Last Name. \n";}
if (document.forms[0].elements[13].value == "")
{blank_exists=blank_exists + "TITLE is blank. \n\tPlease enter a Title. \n";}


if (blank_exists=="")
{return true;}
else
{alert(blank_exists);
return false;}
}
}


// ********************************
// Order Free Text and Banner Advertising Step 1 PUBLIC VERSION

function isblank20()
{

check_forexisting=document.getElementById("companyinfo").style.display
if (check_forexisting=="none")
{return true;}
else
{
var blank_exists="";

if (document.forms[0].elements[0].checked == false)
{blank_exists=blank_exists + "TERMS AGREEMENT is unchecked. \n\tPlease read and agree with our Policies for Advertisements. \n";}
if (document.forms[0].elements[1].value == "")
{blank_exists=blank_exists + "COMPANY NAME is blank. \n\tPlease enter a Company Name. \n";}
if (document.forms[0].elements[2].value == "")
{blank_exists=blank_exists + "ADDRESS is blank. \n\tPlease enter an Address. \n";}
if (document.forms[0].elements[4].value == "")
{blank_exists=blank_exists + "CITY is blank. \n\tPlease enter a City. \n";}
if (document.forms[0].elements[6].value == "")
{blank_exists=blank_exists + "ZIP CODE is blank. \n\tPlease enter a Zip Code. \n";}
if (document.forms[0].elements[7].value == "")
{blank_exists=blank_exists + "PHONE NUMBER is blank. \n\tPlease enter a Telephone Number. \n";}
if (document.forms[0].elements[9].value == "")
{blank_exists=blank_exists + "EMAIL is blank. \n\tPlease enter a Contact Email. \n";}
if (document.forms[0].elements[10].value == "")
{blank_exists=blank_exists + "FIRST NAME is blank. \n\tPlease enter a First Name. \n";}
if (document.forms[0].elements[11].value == "")
{blank_exists=blank_exists + "LAST NAME is blank. \n\tPlease enter a Last Name. \n";}
if (document.forms[0].elements[12].value == "")
{blank_exists=blank_exists + "TITLE is blank. \n\tPlease enter a Title. \n";}


if (blank_exists=="")
{return true;}
else
{alert(blank_exists);
return false;}
}
}




// ********************************
// Order Free and Text Advertising Step 3

function isblank3()
{
var blank_exists="";

if (document.forms[0].elements[0].value == "")
{blank_exists=blank_exists + "COMPANY NAME is blank. \n\tPlease enter a Company Name for this Ad. \n";}
if (document.forms[0].elements[2].value == "")
{blank_exists=blank_exists + "CONTENT is blank. \n\tPlease enter Content for this Ad. \n";}
if (document.forms[0].elements[6].value == "")
{blank_exists=blank_exists + "START MONTH is blank. \n\tPlease enter a Starting Month for this Ad. \n";}
if (document.forms[0].elements[7].value == "")
{blank_exists=blank_exists + "START YEAR is blank. \n\tPlease enter a Starting Year for this Ad. \n";}
if (document.forms[0].elements[8].value == "")
{blank_exists=blank_exists + "END MONTH is blank. \n\tPlease enter an Ending Month for this Ad. \n";}
if (document.forms[0].elements[9].value == "")
{blank_exists=blank_exists + "END YEAR is blank. \n\tPlease enter an Ending Year for this Ad. \n";}


if (blank_exists=="")
{return true;}
else
{alert(blank_exists);
return false;}
}

// ********************************
// Order Banner Advertising Step 3

function isblank4()
{

if (document.forms[0].elements[0].value == "")
{
alert("You are not uploading a Banner today, please feel free to email it to webmaster@indypartyconnection.com in the future. \n");

}

}

// ********************************
// Order Banner Advertising Step 3

function isblank5()
{
var blank_exists="";

if (document.forms[0].elements[0].value == "")
{blank_exists=blank_exists + "COMPANY NAME is blank. \n\tPlease enter a Company Name. \n";}
if (document.forms[0].elements[1].value == "")
{blank_exists=blank_exists + "ADDRESS is blank. \n\tPlease enter a Company Address. \n";}
if (document.forms[0].elements[3].value == "")
{blank_exists=blank_exists + "CITY is blank. \n\tPlease enter a City. \n";}
if (document.forms[0].elements[5].value == "")
{blank_exists=blank_exists + "ZIP CODE is blank. \n\tPlease enter a Zip Code. \n";}
if (document.forms[0].elements[6].value == "")
{blank_exists=blank_exists + "PHONE NUMBER is blank. \n\tPlease enter a Contact Phone Number. \n";}
if (document.forms[0].elements[8].value == "")
{blank_exists=blank_exists + "FIRST NAME is blank. \n\tPlease enter a Contact First Name. \n";}
if (document.forms[0].elements[9].value == "")
{blank_exists=blank_exists + "LAST NAME is blank. \n\tPlease enter a Contact Last Name. \n";}
if (document.forms[0].elements[10].value == "")
{blank_exists=blank_exists + "TITLE is blank. \n\tPlease enter the Title / Department of the Contact Name. \n";}

if (blank_exists=="")
{return true;}
else
{alert(blank_exists);
return false;}
}

// ********************************
// Admin Create Free Listing

function isblank6()
{
check_forexisting=document.getElementById("companyinfo").style.display
if (check_forexisting=="none")
{return true;}
else
{
var blank_exists="";

if (document.forms[0].elements[1].value == "")
{blank_exists=blank_exists + "COMPANY NAME is blank. \n\tPlease enter a Company Name. \n";}
if (document.forms[0].elements[2].value == "")
{blank_exists=blank_exists + "ADDRESS is blank. \n\tPlease enter a Company Address. \n";}
if (document.forms[0].elements[4].value == "")
{blank_exists=blank_exists + "CITY is blank. \n\tPlease enter a City. \n";}
if (document.forms[0].elements[6].value == "")
{blank_exists=blank_exists + "ZIP CODE is blank. \n\tPlease enter a Zip Code. \n";}
if (document.forms[0].elements[7].value == "")
{blank_exists=blank_exists + "PHONE NUMBER is blank. \n\tPlease enter a Contact Phone Number. \n";}
if (document.forms[0].elements[9].value == "")
{blank_exists=blank_exists + "FIRST NAME is blank. \n\tPlease enter a Contact First Name. \n";}
if (document.forms[0].elements[10].value == "")
{blank_exists=blank_exists + "LAST NAME is blank. \n\tPlease enter a Contact Last Name. \n";}
if (document.forms[0].elements[11].value == "")
{blank_exists=blank_exists + "TITLE is blank. \n\tPlease enter the Title / Department of the Contact Name. \n";}

if (blank_exists=="")
{return true;}
else
{alert(blank_exists);
return false;}
}

}

