/*Genetic Calculator result
(c) 2002-2003 Martin Rasek*/



function pop(url,w,h){
	NewWindow=window.open(url,'description','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,align=left,width='+w+',height='+h)
	NewWindow.resizeTo(w,h);
	NewWindow.focus();
}

function popGal(sp,mut,ver){
	NewWindow=window.open('../gen/gallery.php?post=0&sp='+sp+'&ver='+ver+'&mut='+mut,'picture','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,align=left,width=550,height=530')
	NewWindow.focus();
}

function post(sp,mut,ver){
	var idx;
	idx = mut.indexOf("*");
	if (idx==-1) idx=mut.length-1;
	idx=mut.slice(0,idx);
	NewWindow=window.open('../gen/gallery.php?post=1&sp='+sp+'&mut='+mut+'&ver='+ver,sp+idx,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,align=left,width=535,height=510')
	NewWindow.focus();
}


function wDate(){
	d=new Date;
	year=d.getYear();
	if (year<2000) year=year+1900;
	return year;
}