function open_window(src,sizeX,sizeY)
{
 sY = 200;
 sX = 300;
 window.open('win1.php?src='+src,'wi','toolbar=no location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
}

function open_window2(src,_x,_y)
{
 sX = 300+_x;
 sY = 200+_y;
 window.open('win2.php?src='+src,'wi','toolbar=no location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
}
function open_window3(src)
{sY = 200;
 sX = 300;
 window.open('win1.php?src='+src,'wi','toolbar=no location=no,directories=no,status=yes,menubar=no, scrollbars=yes,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
}
function open_gallery(prefix,title)
{
 sY = 10;
 sX = 10;
 a=open_gallery.arguments;
 l = a.length;
 arg = '';
 for (i=2;i<l;i++) {
	arg = arg + 'img['+(i-2)+']=' + a[i] + '&';
 }
 window.open('gal1.php?title='+title+'&sprefix='+prefix+'&'+arg,'wi','toolbar=no location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
}
function open_chart(chart_src)
{
 sY = 10;
 sX = 10;
 window.open(chart_src,'wi','toolbar=no location=no,directories=no,status=yes,menubar=no, scrollbars=yes,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
}

function open_movie(movie_src,title) {
 sY = 200;
 sX = 300;
 window.open('movie1.php?title='+title+'&src='+movie_src,'wi','toolbar=no location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
}
function open_camera() {
 sY = 200;
 sX = 300;
 window.open('camera.php','wi','toolbar=no location=no,directories=no,statusbar=yes,status=yes,menubar=no, scrollbars=no,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
} 
function open_download(file,resize) {
 sY = 200;
 sX = 400;
 if (resize) r ='yes'; else r='no';
 window.open('download.php?file='+file,'wi','toolbar=no location=no,directories=no,statusbar=yes,status=yes,menubar=no, scrollbars='+r+',resizable='+r+',fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
} 
function open_download_demo() {
 sY = 400;
 sX = 400;
 r ='yes';
 window.open('download_demo.php','wi','toolbar=no location=no,directories=no,statusbar=yes,status=yes,menubar=no, scrollbars='+r+',resizable='+r+',fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
} 

function open_doc(file,resize) {
 sY = screen.height-100;
 sX = screen.width-50;
 if (resize) r ='yes'; else r='no';
 window.open('download.php?file='+file,'wi','toolbar=no location=no,directories=no,statusbar=yes,status=yes,menubar=no, scrollbars='+r+',resizable='+r+',fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top=10,left=10');
} 

function open_window_form(src,_x,_y) {
 sX = _x;
 sY = _y;
 cY = (screen.height/2)-(_y/2);
 cX = (screen.width/2)-(_x/2);
 window.open(src,'wi','toolbar=no location=no,directories=no,statusbar=yes,status=yes,menubar=no, scrollbars=yes,resizable=yes,fullscreen=no,channelmode=no,width='+sX+',height='+sY+',top='+cY+',left='+cY);
}