var curWindowName

function InitVariables()
{
	curWindowName = self.name;
	/*Application("curWin") = curWindowName;*/
	/*mywindow=window.open("","mywin");
	mywindow.document.write("curWindowName="+curWindowName);*/
}

function Classification_Click()
{	var strPar = document.getElementById('Classification').value;
	var strPars = new Array;
	
	strPars = strPar.split(",");
	//WriteDebugging2("strPars[0]="+strPars[0]+",strPars[1]="+strPars[1], true);
	classWindow = window.open("/buildingcode/pc-search_app.asp?class_id="+
															strPars[0]+"&class_desc="+strPars[1],"_self");
}

function WriteDebugging(string,overwrite)
{	var fso, s;
	var ForAppending=8;
	var NewFileCanBeCreated=true;
	
	fso = new ActiveXObject("Scripting.FileSystemObject");
  if (overwrite) 
    {
      s = fso.CreateTextFile("C:\\temp\\bcco_test.txt",true);
      s.WriteLine(string); 
      s.Close();
	  }
  else
    {
      s = fso.OpenTextFile("C:\\temp\\bcco_test.txt", ForAppending, true);
      s.WriteLine(string);
      s.Close();
    }
  fso = null;
}

function WriteDebugging2(string)
{
	my_window = window.open("","mywindow1","status=1,width=1024,height=150"); 
	my_window.document.write('<H1>'+string+'</H1>');  
}