<!--
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	var newWindow
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
	newWindow.focus();
}

function BookmarkLink(URL,Text) {
  if (navigator.appName == "Microsoft Internet Explorer") {
    window.external.AddFavorite(URL,Text);
  }
  else {
    alert ("Press CTRL-D to bookmark this page!");
  }
}

function addNetscapePanel() {
	if ((typeof sidebar == "object") && (typeof sidebar.addPanel == "function")) {
		sidebar.addPanel ('Label', 'URL', '');
	} else {
		var rv = window.confirm ("This page is enhanced for use with Mozilla.  " + "Would you like to upgrade now?");
		if (rv) document.location.href = "http://www.mozilla.org";
	}
}

function closeRemote() {
timer = setTimeout('window.close();', 10);
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function disablePrice()
{
document.forms.EditListing.Price.disabled = true
}

function disablePriceRange()
{
document.forms.EditListing.PriceRange.disabled = true
}

function callJS(jsStr) { 
  return eval(jsStr)
}

function openEditor(selObj,url,name,width,height){
	if (selObj.selectedIndex == 1)
	eval(openNewWindow(''+ url + '','' +name+ '','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ''));
}

function goToURL() { //v3.0
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function findObj(n, d) { //v4.01
  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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showHideLayers() { //v6.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function CheckParent(i)
{
    document.choosecats.elements[i].checked = 1;
}
//-->