




/*This code is owned by AdlandPro Classifieds
http://www.adlandpro.com
Copying or modifying is strictly prohibited.
*/


function changeCase(frmObj) {
var index;
var tmpStr;
var tmpChar;
var preString;
var postString;
var strlen;
tmpStr = frmObj.value.toLowerCase();
strLen = tmpStr.length;
if (strLen > 0)  {
for (index = 0; index < strLen; index++)  {
if (index == 0)  {
tmpChar = tmpStr.substring(0,1).toUpperCase();
postString = tmpStr.substring(1,strLen);
tmpStr = tmpChar + postString;
}
else {
tmpChar = tmpStr.substring(index, index+1);
if (tmpChar == " " && index < (strLen-1))  {
tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
preString = tmpStr.substring(0, index+1);
postString = tmpStr.substring(index+2,strLen);
tmpStr = preString + tmpChar + postString;
         }
      }
   }
}
frmObj.value = tmpStr;
}





function VerifyForm(theForm)  {
 
 if (theForm.fname.value == "")  {
   alert ("Your first name is missing!");
    theForm.fname.focus();
    return (false);
  }


 if (theForm.lname.value == "")  {
   alert ("Your last name  is missing!");
    theForm.lname.focus();
    return (false);
  }


if (theForm.fname.value.length > 100)
  {
	var name_length = theForm.fname.value.length 
    alert("Text for your first name exceeds 100 characters. \n Your first name contains " + name_length + " characters.");
    theForm.fname.focus();
    return (false);
  }

if (theForm.lname.value.length > 100)
  {
	var name_length = theForm.lname.value.length 
    alert("Text for your last name exceeds 100 characters. \n Your last name contains " + name_length + " characters.");
    theForm.fname.focus();
    return (false);
  }


if (theForm.headline.value== "")  {
   alert ("Heading for your submission is missing!");
    theForm.headline.focus();
    return (false);
  }


if (theForm.headline.value.length > 200)
  {
	var name_length = theForm.headline.value.length 
    alert("Text of your ad heading exceeds 200 characters. \n Your ad heading contains " + name_length + " characters.");
    theForm.headline.focus();
    return (false);
  }


if (theForm.ad_body.value=="" )  {
   alert ("Description  for your submission is missing.!");
	 theForm.ad_body.focus();
    return (false);
  }

  if (theForm.ad_body.value.length > 255 ) {
   alert ("You entered too many characters for description of your ad.\n\nClick (Count) button to the left to ensure that your description doesn't contain more than 255 characters.");
	theForm.ad_body.focus();
   return (false);
  }


 if (theForm.elements.email.value== "" )  {
   alert ("Contact Email for your submission is missing.!");
	 theForm.email.focus();
    return (false);
  }


 if (theForm.email.value.indexOf("@") == -1  || theForm.email.value.indexOf(".") == -1)
  {
   alert(  "Sorry: This is not valid email address.");
    theForm.email.focus();
    return (false);
  }
  


 if (theForm.elements.k1.value== "" || theForm.elements.k2.value== ""  || theForm.elements.k3.value== "" || theForm.elements.k4.value== ""  || theForm.elements.k5.value== "" || theForm.elements.k6.value== "")  {
   alert ("Please enter all six keywords!");
	 theForm.k1.focus();
    return (false);
  }






if ( theForm.theButton.value != "Click Refresh") {
	theForm.theButton.value="Click Refresh";
	theForm.submit();
	return (true)
   }


}

function CountDescription(theForm) {
 
 var num = theForm.ad_body.value.length;
  
 theForm.counter.value = num;
  


}

function Disclaimer () { 
var url="http://www.adlandpro.com/help/search_engine_submissions.htm";
var helpWindow=window.open(url,"Help","status,height=400,width=500,left=10,top=10,resizable=yes,scrollbars=yes");

if(navigator.appVersion.charAt(0)=="2" && navigator.appName=="Netscape") 
helpWindow=window.open(url, "Help", "status,height=400,width=500,left=10,top=10,resizable=yes,scrollbars=yes"); 



}


function guaranty () {
  var msg = "";
  msg = msg + "Should you for any reason be not happy with our submission service, we will gladly refund 100% of your money, no questions asked.\n\n";
  alert (msg);
}


function help1 () {
  var msg = "";
  msg = msg + "First Name\n\nThe First Name should be the name of the person who submitted this ad. Please provide first name.\n\n";
  alert (msg);
}


function help11 () {
  var msg = "";
  msg = msg + "Last Name\n\nThe Last Name should be the name of the person who submitted this ad. Please provide last name.\n\n";
  alert (msg);
}


function help2 () {
  var msg = "";
  msg = msg + "Heading\n\nThe heading will be linked to URL or if none is supplied we will create for you special page on our site and use that url.\n\n";
  alert (msg);
}

function help3 () {
  var msg = "";
  msg = msg + "URL\n\nThe URL is your web page address. If you don't have your own web page, we still be able to submit your ad. We will create page dedicated to your ad on our site and use this url for submission of your ad.   If you type your own URL, make sure that there is no misspellings. Please leave this field empty if you don't have your own web site.\n\n";
  alert (msg);
}

function help4 () {
  var msg = "";
  msg = msg + "Description\n\nThe Description can't exceed 255 characters. To find out how many characters you typed before you submit your ad click (Count) button to the left.\n\n";
  alert (msg);
}

function help5 () {
  var msg = "";
msg = msg + "Email to Contact\n\nThe email to contact is a required field and needed to handle your ad in case if any problems should occur. This email address won't be given to anyone and won't be available as a part of your ad. To provide email address to contact you from web pages, please  enter email address in the field below (Email in ad).  You also agree that when you submit your ad we will send your confirmation message to this address.\n\n";
  alert (msg);
}


function help6 () {
  var msg = "";
msg = msg + "Email in  Ad\n\nThe email in ad is an optional field. This email address will be included in your ad where applicable and will be available to everybody who visits pages with your ad.\n\n";
  alert (msg);
}


function help7 () {
  var msg = "";
msg = msg + "Password\n\nYou will need password to access your report.\n\n";
  alert (msg);
}


function rep_submission(rep, img_path) {
 if (! rep || rep == '' ) 
{ alert ("WARNING!\nAdlandPro Search Engine Submitter link is set-up incorrectly.\n\nPlease contact support@adlandpro.com and notify about the problem. Please provide url of the page with error.\n\n"); }


document.write("<style>\n");
document.write ("INPUT.button {font-family: arial,helvetica; font-size: 8pt; font-weight: bold; color: #000000}\n");
document.write ("TD.textinput {font-family: arial,helvetica; font-size: 8pt; font-weight: normal; color: #000000}\n");
document.write ("TEXTAREA, SELECT.desc, OPTION.desc {font-family: arial,helvetica; font-size: 8pt; font-weight: normal; color: #000000}\n");
document.write ("TD.desc, SPAN.desc {font-family: arial,helvetica; font-size: 8pt; font-weight: bold; color: #880000}\n");
document.write ("TD.butt_text, SPAN.butt_text {font-family: arial,helvetica; font-size: 9pt; font-weight: bold; color: #0000dd}\n");
document.write("</style>\n");
document.write ("<form  method='post' action='https://www.adlandpro.com/Secure/SelectSESubmissions_e.asp'  name='NewAd'  target='_blank'>\n");
document.write ("    <input type='hidden' name='rep' value='" + rep + "'>\n");
document.write ("    <input type='hidden' name='source' value='2'>\n");
document.write ("    <input type='hidden' name='new_ad' value='Y'>\n");
document.write ("<table align='center'  border=5 width=500 cellpadding=0 cellspacing=0>\n");

if (! img_path || img_path == '' ) 
	document.write ("	<tr><td align='center'  colspan=3 bgcolor='#FFFFFF'><a href='http://www.adlandpro.com/default.asp?rep=" + rep + "'><img border='0' src='http://www.adlandpro.com/images/powerd1.gif' width='311' height='65'></a></td></tr>\n");
else if (img_path == 'none' ) 
	document.write ("");
else
  document.write ("	<tr><td align='center'  colspan=3 bgcolor='#FFFFFF'><img border='0' src='" + img_path  + "'></td></tr>\n");


document.write ("  <tr><td align='center'>\n");
document.write ("      <table width=100% align='center' border=0 bgcolor='#ffcc00' cellpadding=2 cellspacing=0>\n");
document.write ("	<tr><td align='center' colspan=3>\n");
document.write ("<table border='3' width='100%' cellpadding='0' cellspacing='0' height='36'>\n");
document.write ("<tr>\n");
document.write ("<td width='100%' height='34' bgColor='#FFFFFF' align='center'><b><blink><font size='2'><font color='#000000'><font face='Arial'>\n");
document.write ("<b><blink><font face='Arial' color='#FF0000' size='2'><br>\n");
document.write ("<marquee behavior='alternate'  height='16' scrolldelay='160'>***PROFESSIONAL\n");
document.write ("submissions to over 80,000&nbsp;&nbsp; \n");
document.write ("&nbsp; <a href='http://www.adlandpro.com/submissions/Engines/engines.htm' target='_blank'>\n");
document.write ("directories</a></font></blink></marquee></b></td>\n");
document.write ("</tr>\n");
document.write ("</table>\n");
document.write ("	</td></tr>\n");
document.write ("<!-- First Name -->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text'>\n");
document.write ("	  First Name\n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput'>\n");
document.write ("	  <input type=text name='fname'  onBlur='javascript:changeCase(this.form.fname)' size=35 maxlength=100>\n");
document.write ("	</td><td bgcolor='#ffcc00'>\n");
document.write ("	   <a href='javascript: help1()'><input type=button value='?' onClick='help1()' class='button'></a> \n <span class='desc'>(Max 100 Chars- required)</span>\n");
document.write ("	</td></tr>\n");
document.write ("<!-- Last Name -->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text'>\n");
document.write ("	  Last Name\n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput'>\n");
document.write ("	  <input type=text name='lname'  onBlur='javascript:changeCase(this.form.lname)' size=35 maxlength=100>\n");
document.write ("	</td><td bgcolor='#ffcc00'>\n");
document.write ("	   <a href='javascript: help1()'><input type=button value='?' onClick='help11()' class='button'></a> \n <span class='desc'>(Max 100 Chars- required)</span>\n");
document.write ("	</td></tr>\n");
document.write ("<!-- Heading -->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text'>\n");
document.write ("	  Heading\n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput'>\n");
document.write ("	  <input type=text name='headline' size=35 maxlength=200>\n");
document.write ("	</td><td bgcolor='#ffcc00'>\n");
document.write ("	   <a href='javascript: help2()'><input type=button value='?' onClick='help2()' class='button'></a> \n <span class='desc'>(Max 200 Chars- required)</span>\n");
document.write ("	</td></tr>\n");
document.write ("<!-- URL -->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text'>\n");
document.write ("	  URL\n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput'>\n");
document.write ("	  <input type=text name='url' value='http://' size=35 maxlength=125>\n");
document.write ("	</td><td bgcolor='#ffcc00' class='desc'><a href='javascript: help3()'><input type=button value='?' onClick='help3()' class='button'></a> \n (optional)\n");
document.write ("	</td></tr>\n");
document.write ("<!-- Description -->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='center' class='butt_text'>\n");
document.write ("	  Description<br> \n");
document.write ("	  <span class='desc'>(Max 255)</span><br>\n");
document.write ("	  <input type='text' size=2 name='counter' value='0'><br> \n");
document.write ("	  <input type='button' value='Count' onClick='CountDescription(form)' class='button'>\n");
document.write ("	</td><td bgcolor='#ffcc00'>\n");
document.write ("	  <textarea name='ad_body' rows=6 cols=36 wrap='virtual'></textarea>");
document.write ("	<a href='javascript: help4()'><input type=button value='?' onClick='help4()' class='button'></a> \n</td><td bgcolor='#ffcc00'>\n");
document.write ("<!-- Categorys -->\n");
document.write ("	  <table cellpadding=0 cellspacing=3 border=0>\n");
document.write ("		<tr><td bgcolor='#ffcc00' class='desc'>\n");
document.write ("	  <span class='butt_text'>Ad Category</span> <span class='desc'></span>\n");
document.write ("		  <select name='category' size=1  >\n");
document.write ("	<option value='44'>$$$$$$</option>\n");
document.write ("       <option value='64'>Advertising</option>\n");
document.write ("       <option value='53'>All others</option>\n");
document.write ("       <option value='38'>Announcements</option>\n");
document.write ("       <option value='46'>Antiques</option>\n");
document.write ("       <option value='56'>Art</option>\n");
document.write ("       <option value='39'>Automotive</option>\n");
document.write ("       <option value='78'>Banking</option>\n");
document.write ("       <option value='49'>Books</option>\n");
document.write ("       <option value='41'>Business Opportunities</option>\n");
document.write ("       <option value='58'>Classifieds</option>\n");
document.write ("       <option value='72'>Collectibles</option>\n");
document.write ("       <option value='32'>Comp-Hardware</option>\n");
document.write ("       <option value='34'>Comp-Software</option>\n");
document.write ("       <option value='42'>Electronics</option>\n");
document.write ("       <option value='37'>Employment</option>\n");
document.write ("       <option value='62'>Entertainment</option>\n");
document.write ("       <option value='75'>F R E E</option>\n");
document.write ("       <option value='76'>Finance</option>\n");
document.write ("       <option value='81'>Games</option>\n");
document.write ("       <option value='63'>General Merchandise</option>\n");
document.write ("       <option value='54'>Health</option>\n");
document.write ("       <option value='73'>Help Wanted</option>\n");
document.write ("       <option value='82'>Home &amp; Garden</option>\n");
document.write ("       <option value='80'>Hosting </option>\n");
document.write ("       <option value='67'>International Trade</option>\n");
document.write ("       <option value='77'>Investment</option>\n");
document.write ("       <option value='45'>Jokes</option>\n");
document.write ("       <option value='43'>MLM</option>\n");
document.write ("       <option value='74'>Music</option>\n");
document.write ("       <option value='33'>Personals </option>\n");
document.write ("       <option value='35'>Pets and Animals</option>\n");
document.write ("       <option value='40'>Real Estate</option>\n");
document.write ("       <option value='60'>Rentals &amp; Roommates</option>\n");
document.write ("       <option value='61'>Services Offered</option>\n");
document.write ("       <option value='55'>Sport</option>\n");
document.write ("       <option value='52'>Travel </option>\n");
document.write ("       <option value='69'>Web Design</option>\n");
document.write ("       <option value='70'>Web Promotion</option>\n");
document.write ("       <option value='68'>Work from Home</option>\n");
document.write ("		  </select>\n");
document.write ("		</td></tr>\n");
document.write ("	  </table>\n");
document.write ("	</td></tr>\n");
document.write ("<!-- Email Mandatory-->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text' valign='top'>\n");
document.write ("	  Email to contact: \n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput' valign='top'>\n");
document.write ("	  <input type=text name='email' size=35 maxlength=150>\n");
document.write ("	</td><td bgcolor='#ffcc00' class='desc'>\n");
document.write ("	<a href='javascript: help5()'><input type=button value='?' onClick='help5()' class='button'></a> \nrequired</td></tr>\n");
document.write ("<!-- Email Optional-->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text' valign='top'>\n");
document.write ("	  Email in Ad: \n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput' valign='top'>\n");
document.write ("	  <input type=text name='email_contact' size=35 maxlength=150>\n");
document.write ("	</td><td bgcolor='#ffcc00' class='desc'>\n");
document.write ("	<a href='javascript: help6()'><input type=button value='?' onClick='help6()' class='button'></a> \noptional</td></tr>\n");
document.write ("<!-- Keywords -->\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text'>\n");
document.write ("	  Keywords: \n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='k1'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='k2'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='k3'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='k4'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='k5'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='k6'>\n");
document.write ("	</td><td bgcolor='#ffcc00' class='butt_text'>\n");
document.write ("	  <a href='javascript: guaranty()'><input type=button value='Guaranty' onClick='guaranty()' class='button'> </a>\n");
document.write ("	  <a href='javascript: Disclaimer()'><input type=button value='Information' onClick='Disclaimer()' class='button'> \n");
document.write ("	</a></td></tr>\n");
document.write ("	<tr><td bgcolor='#ffcc00' width='20%' align='right' class='butt_text'>\n");
document.write ("	  Password: \n");
document.write ("	</td><td bgcolor='#ffcc00' class='textinput'>\n");
document.write ("	<input type='Text' size='10' maxlength='20' name='passwd1'>\n");
document.write ("	<a href='javascript: help7()'><input type=button value='?' onClick='help7()' class='button'></a> \nrequired</td><td bgcolor='#ffcc00' class='butt_text'>\n");
document.write ("	&nbsp;</td></tr>\n");
document.write ("<!-- Reset / Submit -->\n");
document.write ("	<tr><td align='center' bgcolor='#ffcc00' colspan=3>\n");
document.write ("	<table><tr><td align='center' width='15%'>\n");
document.write ("	&nbsp;</td><td align='left' colspan=2 bgcolor='#ffcc00' nowrap>\n");
document.write ("	  <input name='theButton' type=button value='Enter Your Ad' onClick='VerifyForm(NewAd)' class='button'>\n");
document.write ("	</td>\n");
document.write ("	<td width=3></td><td class='desc'>\n");
document.write ("<!-- Confirmation Email Notice -->\n");
document.write ("	  An email will be sent to the (Email to Contact) address to confirm your submission.\n");
document.write ("	  As a bonus your ad will be also linked  for free from over 8,000 members of our classifieds network.\n");
document.write ("	</td></tr></table>\n");
document.write ("	</td></tr>\n");
document.write ("     </table>\n");
document.write ("  </td></tr>\n");
document.write ("	<tr><td align='center' bgcolor='#800080' colspan=3>&nbsp;</td></tr>\n");
document.write ("</table>\n");
document.write ("</form>\n");
document.write ("<br clear='all'>\n");


}