/*****************************************************************************/
/*****************************************************************************/
/* function to start personal page */
/* loads background and header bar */
function start_default_page(imgpath)
 {
	var str = '';
	str +=' <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#8B008B" ALINK="#FF0000">';
	str +='<div style="position:absolute; left:0; top:0; z-index:2">';
	str +='<table bgcolor="#00CE39" width="100%" border="0" cellpadding="0" cellspacing="0">';
	str +='<tr>';
	str +='<td bgcolor="#005D93" height="70" width="20%"><font size="1"> </font></td>';
	str +='<td bgcolor="#005D93" height="70" width="60%" align=center><FONT FACE="Arial" >';
	str +='<b> Studiengang Elektrotechnik und Antriebssysteme + Mechatronik </font></td>';
	str +='<td bgcolor="#FFB522"height="34" width="20%" ><font size="1"> </font></td>';
	str +='</tr>';
	str +='</table>';
	str +='</div><br><br>';
	str +='<div style="position:absolute; left:0; top:0; z-index:2">';
	str +='<img src="'+   imgpath + 'nurlogo_grau.gif" height= "70" align=top>';
	str +='</div><br>';
	document.write(str);
}
/*****************************************************************************/
/*****************************************************************************/
/* function to start personal page */
/* loads background and header bar */
function start_page(imgpath)
 {
	var str = '';
	str +=' <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#000000" ALINK="#000000">';
	str +='<div style="position:absolute; left:0; top:0; z-index:2">';
	str +='<table class="none" bgcolor="#00CE39" width="100%" border="0" cellpadding="0" cellspacing="0">';
	str +='<tr>';
	str +='<td bgcolor="#005D93" height="20" width="80%"><font size="1"> </font></td>';
	str +='<td bgcolor="#FFB522"height="20" width="20%" ><font size="1"> </font></td>';
	str +='</tr>';
	str +='</table>';
	str +='</div><br>';
	str +='<div style="position:absolute; left:0; top:0; z-index:2">';
	str +='<img src="'+   imgpath + 'nurlogo_grau.gif" align=top height=20>';
	str +='</div>';
	str +='<font face=arial>';
	str +='<a href="http://mitarbeiter.hs-heilbronn.de/~nweller" >';
	str +='Prof. Dr.-Ing. N. Wellerdick';
	str +='</a>';
	str +='<br>';
	str +='<br>';
	document.write(str);
}
/*****************************************************************************/
/*****************************************************************************/
/* function to write page foot */
/* imgpath: path to the general purpose images */
function end_default_page(Resi,email,imgpath) {
	var str = '';
	str +='<div style="position:absolute; left:0;  z-index:2">';
	str +='<br> <table bgcolor="#00CE39" width="100%" border="0" cellpadding="0" cellspacing="0">';
	str +='<tr>';
	str +='<td bgcolor="#005D93" height="2" width="80%"><font size="1"> </font></td>';
	str +='<td bgcolor="#FFB522"height="2" width="20%" ><font size="1"> </font></td>';
	str +='</tr>';
	str +='</table>';
	str += '<TABLE BORDER=0 width=700>';
	str += '<TR>';
	str += '<td valign="top" colspan=3 >';
	str += '<font size=-2  face=arial>';
	//str += '<img src="gp_images/l4o700.gif" height=11 width=700>';
	str +=' Filename: '+ document.location;
	str += '<br>';
	str +=' Responsible: '
	str +=" <a href=\"mailto:" + email + " \" ";
	str +='> ' + Resi + ' </a> ; &nbsp;';
	str += '<br>';
	str+=' Last modified: ' +  document.lastModified;
	str += '</font>';
	str += '</td>';
	str += '</tr>';
	str += '</table>';
	str +='<a href="javascript:history.back();" >';
	str +='<IMG SRC="' + imgpath + '/back.gif" BORDER=0>';
	str +='</a>';
	str +='</div>';
	document.write(str);
}

/*****************************************************************************/
/*****************************************************************************/
/* insert a document in the list */
function insert_doc(number,author,docpath,docname,doctype,year){
	var str = '';
	str +='<tr>';
	str +='<td> <font FACE="Arial"> ['+ number + '] </td>';
	str +='<td> <font FACE="Arial"> ' + author + ' </td>';
	str +='<td> <font FACE="Arial">';
	str +='<A HREF="' + docpath + '">';
	str +=docname + '</A>';
	str +='</td>';
	str +='<td> <font FACE="Arial"> ' + doctype + '</td>';
	str +='<td> <font FACE="Arial"> ' + year + ' </td>';
	str +='</tr>';
	str +='<tr>';
	str +='<td> </td>';
	str +='<td colspan=4> <font FACE="Arial">';
	str +='<ul>';
	document.write(str);
}
/* function to insert a keyword */
function insert_keyword(keyword)
{
	var str = '';
	str +='<li>' + keyword ;
	document.write(str);
}
/* function to end document entries */
function end_doc()
{
	var str = '';
	str +='</ul>';
	str +='</td>';
	str +='</tr>';
	document.write(str);
}
var secnum=1;
var subsecnum=1;

function new_sec()
{
	secnum=secnum+1;
	subsecnum=1;
}

function reset()
{
    secnum=1;
 	subsecnum=1;
}
function set_secnum(num)
{
 	secnum=num
}
function set_subsecnum(num)
{
 	subsecnum=num
}
function afg(pdffile)
{
	var str = '';
	str +='<a href="' + pdffile+ '">';
	str += secnum +'.'+ subsecnum ;
	str +='</a>';
	subsecnum=subsecnum+1;
	document.write(str);

}
