function popup(U,N,S,P,F,H) {
var				// SET YOUR **DEFAULT** SETTINGS HERE
URL = "http://www.yahoo.com",	// SPECIFY URL, or B for blank page
NAME = "PopUpWindow",		// Window Name (if use same twice, URL will load in same window
SIZE = "200x100",		// R=Random, OR WxH pixels (eg: 200x300)
POSN = "C",			// R=Random, C=Center (only if size specified), TL=TopLeft OR XxY pixels
FEAT = "",			// ONLY LIST ONES THAT YOU WANT !
HAND = "POP";			// FILEHANDLE, IF YA KNOW WHAT THAT MEANS

// usage : POPUP('URL','NAME','SIZE','POSN','FEATURES','HANDLE');
// All parameters passed to the function are optional (if none, will use default)
// - but can ONLY removed in this order : HAND -> FEAT -> POSN -> SIZE -> NAME -> URL
// - eg: you can omit HANDLE completely, but can't specify HANDLE yet omit POSN

var w,h,x,y,SI='',PO='',Sw,Sh;if(window.screen){Sw=screen.availWidth;Sh=screen.availHeight;}else{Sw=0;}
if(((!U)||(U=='')||(U=='D'))){U=URL;}	if(U=='B'){U='about:blank';}
if(((!N)||(N=='')||(N=='D'))){N=NAME;}	if(((!S)||(S=='')||(S=='D'))){S=SIZE;}
if(((!P)||(P=='')||(P=='D'))){P=POSN;}	if(((!F)||(F=='')||(F=='D'))){F=FEAT;}
if(((!H)||(H=='')||(H=='D'))){H=HAND;}	S=S.toUpperCase(); P=P.toUpperCase();
if(S!='R'){S=S.toUpperCase();w=S.split('X')[0];h=S.split('X')[1]; SI='width='+w+',height='+h;}
if(F){F=','+F;} if(P!='R'){if(P=='TL'){x=0;y=0;}else if(P=='C'){if((SI)&&(Sw!=0)){x=(Sw-w)/2;y=(Sh-h)/2;}
else {PO='';}}else{P=P.toUpperCase();x=P.split('X')[0];y=P.split('X')[1];}
PO=',screenX='+x+',left='+x+',top='+y+',screenY='+y;}if(Sw==0){PO='';}
var DOIT='var H=window'+'.open("'+U+'","'+N+'","'+SI+PO+F+'")'; eval(DOIT);
}