

<!--

function Message () {
alert ('Report international spam to cdncc@cdncc.com\nYou must include the location where the ad is posted and the ad number.') }


function bookmark(url, description)
{
netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}



function search(cur){
//make sure searching for more than one character

var now = cur.Search.value.length

if (now<3){
alert("Please restrain your 'Search' to greater than 2 characters, currently there are " + now + " .")

return false
}

//make sure category choosen

if (cur.City.value == ""){
alert("Please choose a Location");

return false;
}
}


function checkchars(cur){

var description = cur.Description.value.length
var title = cur.Title.value.length
var contact = cur.Contact.value.length
var username = cur.Username.value.length


if (cur.City.value == ""){
alert("Please choose a Location");
return false;
}
if (cur.Title.value.length<3){
alert("Please make your 'Title' at least three characters in length, currently there are " + title + " .");
return false;
}
if (cur.Title.value.length>48){
alert("Please make your 'Title' less than 50 characters in length, currently there are " + title + " .");
return false;
}
if (cur.Contact.value.length<3){
alert("Please make your 'Contact Info' at least three characters in length, currently there are " + contact + " .");
return false;
}
if (cur.Contact.value.length>48){
alert("Please make your 'Contact Info' less than 50 characters, currently there are " + contact + " .");
return false;
}
if (cur.Username.value.length<3){
alert("Please enter a 'Username' at least three characters in length, currently there are " + username + " .");
return false;
}
if (cur.Description.value.length<10){
alert("Please restrain your 'Item Description' to 10-1500 characters, currently there are " + description + " .");
return false;
}
if (cur.Description.value.length>1500){
alert("Please restrain your 'Item Description' to 10-1500 characters, currently there are " + description + " .");
return false;
}
}

function checkDelete(cur){

var username = cur.Username.value.length
var adnumber = cur.AdNumber.value.length

if (cur.City.value == ""){
alert("Please choose a Location");
return false;
}
if (cur.Username.value.length<3){
alert("Please enter a 'Username' at least three characters in length, currently there are " + username + " .");
return false;
}
if (cur.AdNumber.value.length<2){
alert("Please enter an 'Ad Number' greater than 1 character in length, currently there are " + adnumber + " .");
return false;
}
}

function jumpPage(newLoc) {
       newPage = newLoc.options[newLoc.selectedIndex].value
        
       if (newPage != "") {
          window.location.href = newPage
       }
}



// end hiding script-->


