if (navigator.appName=="Netscape"){document.write("<link rel=stylesheet type='text/css' href='/aish_ns.css'>");}else{document.write("<link rel=stylesheet type='text/css' href='/aish_ie.css'>");}
function toframe() // wie in aish.js
{
if(window.location.href.indexOf("aish")<0){window.location.href = "http://www.aish.de/";return true;};
if(this.document == top.document){window.location.href = "../../../index.htm";}
}

function setFirmSelect() // wie in aish.js
{
if(parent.Selection.document.forms.length>0){
	for (i=0;i<parent.Selection.document.Formular.Berufe.length;i++)
	if(this.location.href.indexOf(parent.Selection.document.Formular.Berufe.options[i].value+".htm")>0){
		parent.Selection.document.Formular.Berufe.options[i].selected=true;
		return true;
		}
	parent.Selection.document.Formular.Berufe.options[0].selected=true;
	}
}

function sel(letter){
selWhere="../firmen/firmen_index.htm";
parent.Main.document.location.href=selWhere+"#"+letter;
}

function openwin(URL){window.open(URL,'fensterl','status=no,location=no,directories=no,scrollbars=yes');}

function goff(hpage)
{
var selWhich=parent.Main.document.location.href;
selWhich=selWhich.substr(selWhich.indexOf("?")+1);
if(selWhich.indexOf("#")>0)selWhich=selWhich.substr(0,selWhich.indexOf("#"));
var hdir=hpage.substr(0,1);
with (parent.Main.document)
	{
	clear();
	open('text/html','replace');
	write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">");
	write("<html><head><TITLE></TITLE></head>");
	write("<FRAMESET rows=\"35,*\" marginwidth=\"0\" marginheigth=\"0\" frameborder=\"0\" border=\"0\" framespacing=\"0\">");
	write("	<FRAME src=\"../cgi-bin/select_firma.pl?"+hpage+"\" name=\"Selection\" noresize scrolling=\"no\">");
	write("	<FRAME src=\"../firmen/"+hdir+"/"+hpage+"/firma.htm\" name=\"Content\">");
	write("</FRAMESET><body></body></html>");
	close();
	}
return;
}
winopen = false;
function gof(hpage)
{
var hdir=hpage.substr(0,1);
if(winopen) firm.close();
firm = window.open("about:blank",'fensterl','status=no,location=no,directories=no,scrollbars=yes');
with (firm.document)
	{
//	clear();
	open('text/html','replace');
	write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">");
	write("<html><head><TITLE>AISH - Ausbildungs-Initiative Schleswig-Holstein</TITLE></head>");
	write("<FRAMESET rows=\"60,*\" marginwidth=\"0\" marginheigth=\"0\" frameborder=\"0\" border=\"0\" framespacing=\"0\">");
	write("	<FRAME src=\"../cgi-bin/select_firma.pl?"+hpage+"\" name=\"Selection\" noresize scrolling=\"no\">");
	write("	<FRAME src=\"../firmen/"+hdir+"/"+hpage+"/firma.htm\" name=\"Content\">");
	write("</FRAMESET><body></body></html>");
	close();
	}
	winopen = true;
	firm.focus();
//return;
}

function beruf(x)
{
 if(x == "nothing")
 {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   parent.frames[1].focus();
   return;
 }
 else
  {
   var hpage=parent.Selection.location.href.substr(parent.Selection.location.href.lastIndexOf("?")+1);
   parent.Content.location.href = "../firmen/"+hpage.substr(0,1)+"/"+hpage+"/"+x+".htm";
   document.forms[0].elements[0].blur();
   parent.Content.focus();
  }
}

