﻿function clearDefault(control, defaultValue) {
  if (control.value==defaultValue) control.value = ""
}

function OpenCategories(ParentCategoriesID, ChildCategoriesID, LabelCategoryInfo)
{

	var ParentCategoriesIDValue = document.getElementById(ParentCategoriesID).value;
	var ChildCategoriesIDValue = document.getElementById(ChildCategoriesID).value;
	CategoriesWin=window.open('Categories.aspx?LabelCategoryInfo=' + LabelCategoryInfo + '&ParentCategoriesID=' + ParentCategoriesID + '&ChildCategoriesID=' + ChildCategoriesID + '&pids=' + ParentCategoriesIDValue + '&cids=' + ChildCategoriesIDValue,'CategoriesWin','left=400,top=100,height=500,width=600,scrollbars=yes,resizable=yes');
	CategoriesWin.focus();
}