// start JavaScript for TopNavigation 
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1).toLowerCase();
// end

function ConfirmDelete()
{
	if (confirm("Are you sure you want to delete this record?"))
		return true;
		else
		return false;
}
   function Anthem_Error(result)
        {
            alert('An error occured during the processing of your request, Please report to support@23-degrees.com. Error detail:: '+result.error);
         }

function openNewWindow(theURL,winName,height) { 
  var features = 'toolbar=0,menubar=0,scrollbars=1,width='+height; 
  window.open(theURL,winName,features);
} 
function Toggle(item)
{
    var content = document.getElementById(item);
   if(content.style.display != "none")
      content.style.display = "none";
     else
      content.style.display = "block";
}
function Show(item)
{
   var content = document.getElementById(item);
   content.style.display = "block";
}
function Hide(item)
{
   var content = document.getElementById(item);
   content.style.display = "none";
}

jQuery(function($){   
    $("#CtlSearch1_txtSearch").Watermark("ASDHA", "#EBDDF9");
    $("#CtlNewsSignup1_txtEmail").Watermark("Enter Email Address", "#EBDDF9");
    $.Watermark.HideAll();
    $.Watermark.ShowAll();
    //// thickbox hack for IE when called from serverside
    //tb_init('a.thickbox, area.thickbox, input.thickbox');
    //imgLoader = new Image();
    //imgLoader.src = 'assets/controls/thickbox/progress.gif';
});