function ViewImage(ifile,ix,iy,ititle) { 
var win;
win = window.open("","imageviewer","width="+ix+",height="+iy+",'dependent=yes,screenX=30,screenY=30,menubar=no,toolbar=no");
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title></head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
win.focus();
}

function ViewAutoImage(ifile,ix,iy,ititle) { 
var win;
var pic=new Image();
pic.src=ifile;
hoehe=pic.height;
breite=pic.width;
win = window.open("","imageviewer","width="+breite+",height="+hoehe+",'dependent=yes,screenX=30,screenY=30,menubar=no,toolbar=no");
win.resizeTo(breite+10,hoehe+20); 
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title></head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
win.focus();
}

function ViewForm(id,title) {
  var win;
	if (win) win.close(); 
	title=escape(title);
  win=window.open("/cgi-bin/cs/yt_vote.pl?mode=form&id=" +id+ "&title=" +title,"_ytvote","dependent=yes,screenX=30,screenY=30,width=700,height=420,scrollbars=yes,resizable=yes");
}

function ViewAutorForm(id,title) {
  var win;
	if (win) win.close(); 
	title=escape(title);
  win=window.open("/cgi-bin/cs/cs_vote.pl?mode=form&id=" +id+ "&title=" +title,"_ytvote","dependent=yes,screenX=30,screenY=30,width=700,height=420,scrollbars=yes,resizable=yes");
}

function openWindow(name) {
  var s;
  var v = name;
  if (s) s.close(); 
  s = window.open('' + v,'','dependent=yes,screenX=30,screenY=30,width=700,height=420,scrollbars=1,toolbar=no,location=0,directories=0,menubar=1,resizable=1,status=0');
} 

function avote_popup(target) {
	msgWindow=window.open('', target, 'dependent=yes,screenX=30,screenY=30,width=500,height=300,resizable=1');
}

function pop(file,windowname,features)
{
	helpwindow = window.open(file,windowname,features);
	helpwindow.focus();
	return false;
}

function checkform() {
	ok=true;
	index = document.rw_avote.note.selectedIndex;
	if (index == 0) {
	  window.alert("Keine Auswahl getroffen!");
		ok=false;
	} else {
 //		ok = (document.voted_id == 0);
//		if (!ok) window.alert("Dieser Artikel wurde bereits von Ihnen bewertet!");
	}
	return ok;
}

function error() {
	HelpWin=open("vote.html","","height=300,width=420");
	HelpWin.setTimeout('window.close()',12000);
}