function topcatadd()
{
  catname = prompt('Please Enter the Top Level Category Name', '');
  if(catname)
  {
    document.topcat.topcatname.value = catname
	document.topcat.submit()
  }
}
function topdelete(catname)
{
  if(catname)
  {
    if(confirm("Delete Category?"))
	{
      document.topcat.addtop.value = 0
      document.topcat.deletetop.value = 1
      document.topcat.topcatname.value = catname
	  document.topcat.submit()
	}
  }
}
function subcatadd(topcatname)
{
  catname = prompt('Please Enter the Sub Category Name', '');
  if(catname)
  {
    document.subcat.topcatname.value = topcatname
    document.subcat.subcatname.value = catname
	document.subcat.submit()
  }
}
function subdelete(catname)
{
  if(catname)
  {
    if(confirm("Delete Sub Category?"))
	{
      document.subcat.addsub.value = 0
      document.subcat.deletesub.value = 1
      document.subcat.subcatname.value = catname
	  document.subcat.submit()
	}
  }
}
function productadd(subcatname)
{
  productname = prompt('Please Enter the Job Name', '');
  if(productname)
  {
 /*   productprice = prompt("Please Enter the Job's Rateing", '');
	if(productprice && productprice*0 == 0 && productprice > 0)
	{*/
	  document.product.subcatname.value = subcatname
	  document.product.productname.value = productname
	 // document.product.productprice.value = 1;
	  document.product.submit()
/*	}
	else
	{
	  alert("Invalid Reating entered!");
	} */

  }
}
function productdelete(catname)
{
  if(catname)
  {
    if(confirm("Delete Job?"))
	{
      document.product.addproduct.value = 0
      document.product.deleteproduct.value = 1
      document.product.productname.value = catname
	  document.product.submit()
	}
  }
}
function placementadd()
{
  catname = prompt('Please Enter the Placement Name', '');
  if(catname)
  {
    document.placement.placementname.value = catname
	document.placement.submit()
  }
}
function placementdelete(catname)
{
  if(catname)
  {
    if(confirm("Delete Placement?"))
	{
      document.placement.addplacement.value = 0
      document.placement.deleteplacement.value = 1
      document.placement.placementname.value = catname
	  document.placement.submit()
	}
  }
}
