// ------------------------------------------------------
// | Titel: MyAge 1.0 (Altersberechnung)                |
// | Autor: Berchtel Jürgen                             |
// | Datum: 2002-08-09                                  |
// | Datei: myage.htm                                   |
// ------------------------------------------------------

//Gradual-Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

function high(which2){
 theobject=which2
 highlighting=setInterval("highlightit(theobject)",50)
}

function low(which2){
 clearInterval(highlighting)
 if (which2.style.MozOpacity)
  which2.style.MozOpacity=0.3
 else if (which2.filters)
  which2.filters.alpha.opacity=60
}

function highlightit(cur2){
 if (cur2.style.MozOpacity<1)
  cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
 else if (cur2.filters&&cur2.filters.alpha.opacity<100)
  cur2.filters.alpha.opacity+=10
 else if (window.highlighting)
  clearInterval(highlighting)
}

function openpopup(popurl,width,height){
winpops=window.open(popurl,"","width="+width+",height="+height+",")
}

function openwindow(popurl,width,height){
winpops=window.open(popurl,"","width="+width+",height="+height+",scrollbars")
}

function openpopup(popurl,width,height,name){
winpops=window.open(popurl,""+name+"","width="+width+",height="+height+",")
}

function delete_car(userid,carid) {
 openpopup('php_include/delete_car.php?userid='+userid+'&carid='+carid,380,85,'delete_win');
}

function delete_content(userid,carid,contentid) {
 openpopup('php_include/delete_content.php?userid='+userid+'&carid='+carid+'&contentid='+contentid+'',380,85,'delete_win');
}

function delete_article(articleid) {
 openpopup('php_include/delete_article.php?articleid='+articleid+'',380,85,'delete_win');
}

function delete_file(userid,file,filename) {
 openpopup('php_include/delete_file.php?userid='+userid+'&file='+file+'&filename='+filename,380,85,'delete_win');
}

function delete_artimg(userid,artid,imgid) {
 openpopup('php_include/delete_file.php?userid='+userid+'&artid='+artid+'&imgid='+imgid,380,85,'delete_win');
}

function edit_comment(userid,dir,number) {
 //openpopup('php_include/edit_comment.php?userid='+userid+'&dir='+dir+'&number='+number,565,275,'edit_win');
 openpopup('edit_comment.php?userid='+userid+'&dir='+dir+'&number='+number,565,275,'edit_win');
}
