<!--
<!--
var totalval = 0;

function myListings(id){
alert("You must register before you can save your listings.");
}


function checkIt(){

iscity = getSize(selectedList);
selectItAll();
document.form133.submit();

}

var selectedList;
var availableList;
function createListObjects(){
    availableList = document.getElementById("availableOptions");
    selectedList = document.getElementById("selectedOptions");
    availableList2 = document.getElementById("availableOptions2");
    selectedList2 = document.getElementById("selectedOptions2");

}
function delAttribute(){
    var selIndex = selectedList.selectedIndex;
    if(selIndex < 0)
        return;
    availableList.appendChild(selectedList.options.item(selIndex))
    selectNone(selectedList,availableList);
}
function delAttribute2(){
    var selIndex = selectedList2.selectedIndex;
    if(selIndex < 0)
        return;
    availableList2.appendChild(selectedList2.options.item(selIndex))
    selectNone(selectedList2,availableList2);
}
function delAttribute3(){
    var selIndex = selectedList3.selectedIndex;
    if(selIndex < 0)
        return;
    availableList3.appendChild(selectedList3.options.item(selIndex))
    selectNone(selectedList3,availableList3);
}
function selectItAll(){


  var optionList = document.getElementById("selectedOptions").options;
    var len = optionList.length;
    for(i=0; i<len; i++){
        optionList[i].selected = true;
    }


 var optionList = document.getElementById("selectedOptions2").options;
    var len = optionList.length;
    for(i=0; i<len; i++){
        optionList[i].selected = true;
    }



}



function addAttribute(){


if(document.getElementById('selectedOptions').options.length > 0){
alert('You may only select one area at a time.\r\nRemove Selected City to Add a New One.');
return false;
}

    var addIndex = availableList.selectedIndex;
    if(addIndex < 0)
        return;
    selectedList.appendChild(availableList.options.item(addIndex));
    selectNone(selectedList,availableList);
}

function addAttribute2(){
    var addIndex = availableList2.selectedIndex;
    if(availableList2.options.item(addIndex).value != ""){
    if(addIndex < 0)
        return;
    selectedList2.appendChild(availableList2.options.item(addIndex));
    selectNone(selectedList2,availableList2);
    }
}

function addAttribute3(){
    var addIndex = availableList3.selectedIndex;
    if(availableList3.options.item(addIndex).value != ""){
    if(addIndex < 0)
        return;
    selectedList3.appendChild(availableList3.options.item(addIndex));
    selectNone(selectedList3,availableList3);

    }
}

function selectNone(list1,list2){
    list1.selectedIndex = -1;
    list2.selectedIndex = -1;
    addIndex = -1;
    selIndex = -1;
}

function getSize(list){
    /* Mozilla ignores whitespace, IE doesn't - count the elements in the list */
    var len = list.childNodes.length;
    var nsLen = 0;
    //nodeType returns 1 for elements
    for(i=0; i<len; i++){
        if(list.childNodes.item(i).nodeType==1)
            nsLen++;
    }
    return nsLen;
}
function showSelected(){
    var optionList = document.getElementById("selectedOptions").options;
    var data = '?city[]=';
    var len = optionList.length;
    for(i=0; i<len; i++){
        if(i>0)
            data += '&city[]=';
        data += optionList.item(i).value;
    }
    alert(data);
}



function refer(id){
alert("You must register before you can refer a listing.");
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0

createListObjects();





  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
           
     function showtip(current,e,num)
        {
		var posy = 0;
		if (!e) var e = window.event;
		if (e.pageX || e.pageY)
		{
			posy = e.pageY;
		}
			else if (e.clientX || e.clientY)
		{
			posy = e.clientY + document.body.scrollTop;
		}
		posy = posy - 90
		if (document.layers) // Netscape 4.0+
            {
             theString="<DIV <img src="+num+" width=182 height=146><BR><font face=Verdana, Arial, Helvetica, sans-serif font size=1>Click Camera for Details</font></DIV>"
             document.tooltip.document.write(theString)
             document.tooltip.document.close()
             document.tooltip.left=posy
             document.tooltip.top= 462
             document.tooltip.visibility="show"
            }
         else
           {
            if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
              {
               elm=document.getElementById("tooltip")
               elm.innerHTML="<center><img src="+num+" width=182 height=146><BR><font face=Verdana, Arial, Helvetica, sans-serif font size=1>Click Camera for Details</font></center>"
               elm.style.top= posy
               elm.style.left=462
               elm.style.visibility = "visible"
              }
           }
        }
		
function hidetip(){
if (document.layers) // Netscape 4.0+
   {
    document.tooltip.visibility="hidden"
   }
else
  {
   if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
     {
      elm.style.visibility="hidden"
     }
  } 
}

//-->