function printpopup(url,w,h)
{ if(!w) w=500;
  if(!h) h=700;
  var pp=window.open(url, "pp", "width="+w+",height="+h+",location=no,menubar=no,scrollbars=no,resizable=yes,status=yes,toolbar=no")
}


//do we need this??? if not remove!!!!
function hideOptionalFields(box)
{ var spans=document.getElementsByTagName("span");
  var newClass=(box.checked==true)?"hiddenField":"visibleField";
  for(var i=0;i<spans.length;i++)
  { if(spans[i].className=="hiddenField" || spans[i].className=="visibleField")
    { spans[i].className=newClass;
    }
  }
}


//AdServer
//configuration
OAS_url ='http://austria1.adverserve.net//RealMedia/ads/';
OAS_listpos = 'Top,Right1,Position1,Middle1,Middle2,Middle3';
OAS_query = '?';
OAS_sitepage = 'tucareer.com/start';  //end of configuration
//OAS_sitepage = 'tucareer.com/artikel';
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos)
{ document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" TARGET=_top>');
  document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" BORDER=0 ALT="Click!"></A>');
}

OAS_version = 11;
if (navigator.userAgent.indexOf('Mozilla/3') != -1) OAS_version = 10;
if (OAS_version >= 11) document.write('<SC'+'RIPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + OAS_query + '"><\/SCRIPT>');

document.write('');
function OAS_AD(pos)
{ if (OAS_version >= 11 && typeof(OAS_RICH!='undefined')) OAS_RICH(pos);
	else OAS_NORMAL(pos);
}


// Clock
var timerID = null;
var timerRunning = false;

function stopclock()
{ if(timerRunning) clearTimeout(timerID);
  timerRunning = false;
}

function startclock()
{ stopclock();
  showtime();
}

function showtime()
{ var now = new Date();

  var day = now.getDate();
  var month = now.getMonth()+1;
  var year = now.getFullYear();

  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var timeValue  = ((day < 10) ?  "0" : "") + day + "." ;
	timeValue += ((month < 10) ? "0" : "") + month + ".";
	timeValue += year;
	timeValue += " - " + hours;
  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
  document.getElementById('header_clock').innerHTML=timeValue;
  timerID = setTimeout("showtime()",1000)
  timerRunning = true
}

var old_elm=null;
function mark(elm)
{	if(old_elm==null)
	{	old_elm=elm;
		document.getElementById(elm).className='navClick';
	}
	else
	{	document.getElementById(elm).className='navClick';
		document.getElementById(old_elm).className='navOut';
		old_elm=elm;
	}
}


//functions check is still needed
function hideOptionalFields(box)
{ var spans=document.getElementsByTagName("span");
  var newClass=(box.checked==true)?"hiddenField":"visibleField";
  for(var i=0;i<spans.length;i++)
  { if (spans[i].className=="hiddenField" || spans[i].className=="visibleField")
    { spans[i].className=newClass;
    }
  }
}

function showWaitingDiv(rev)
{ var bts=document.getElementById("buttons");
  var childs=bts.childNodes;
  for (i=0; i<childs.length; i++)
  { if (childs[i].nodeName=="INPUT")
    { childs[i].style.display=(rev? "inline": "none");
    }
    else
    { if (childs[i].nodeName=="DIV" && childs[i].getAttribute("id")=="wait")
      { childs[i].style.display=(rev? "none": "inline");
      }
    }
  }

  if (!rev)
  { setTimeout("showWaitingDiv(true)", 30000);
  }
}

/**************************************************************************/
/* Highlight a line in list onmouseover (table or div)
/**************************************************************************/
function admin_list_over(id)
{ document.getElementById(id).style.backgroundColor='#8EA7BB';
}

function admin_list_out(id, style)
{ if(style=="listenzeile2")
  { document.getElementById(id).style.backgroundColor='#FFFFFF';
  }
  else
  {  document.getElementById(id).style.backgroundColor='#F3F3F3';
  }
}



