function openCentre(a,b,c,d,e,f) {

// where a=href > in single quotes
// b=width of window you want > a number
// c=height of window > a number,
// d=name of window > in single quotes
// e=adjust centring horizontally > a number, f=status bar > 1 or 0

if (navigator.appVersion.substring (0,1) > 3)
        {    var x1 = screen.availWidth - 10;
		    var y1 = screen.availHeight-30;}
        else{var x1 = 800;
        var y1 = 600;}

        if(x> 1600){var x = (x1/(4));}
        else{var x = (x1/2);} 
        
        var y = (y1/2);
		adb= (b/2)+e;
		adc= c/2;
        

win=open(a,d,'toolbar=no,status=no,Width='+b+',Height='+c+',directories=no,scrollbars=no,status='+f+',location=no,resize=no,menubar=n,screenx='+(x-adb)+',screeny='+(y-adc)+',left='+(x-adb)+',top='+(y-adc));
}

function openCentreScroll(a,b,c,d,e,f) {

// where a=href > in single quotes
// b=width of window you want > a number
// c=height of window > a number,
// d=name of window > in single quotes
// e=adjust centring horizontally > a number, f=status bar > 1 or 0

if (navigator.appVersion.substring (0,1) > 3)
        {    var x1 = screen.availWidth - 10;
		    var y1 = screen.availHeight-30;}
        else{var x1 = 800;
        var y1 = 600;}

        if(x> 1600){var x = (x1/(4));}
        else{var x = (x1/2);} 
        
        var y = (y1/2);
		adb= (b/2)+e;
		adc= c/2;
        

win=open(a,d,'toolbar=no,status=no,Width='+b+',Height='+c+',directories=no,scrollbars=yes,status='+f+',location=no,resize=yes,menubar=n,screenx='+(x-adb)+',screeny='+(y-adc)+',left='+(x-adb)+',top='+(y-adc));
}