var t, ns;
function rn(mn,mx){
 return (Math.round((mx-mn) * Math.random() + mn));
 }
 
function create_ra(ne,mn,mx){
 ns = new Array;
  for (var e=0; e<ne; e++){
    while((t=nf(rn(mn,mx),ns))==-1);  ns[e] = t; 
	}
	 return (ns)
}

function nf (rn,na){
for (var e=0; e<na.length; e++){
if (rn==na[e])return (-1);
}
return (rn);
}

function popImage(strLocation,w,h){
	
	window.open(strLocation,"sos_ext","width=" + w + ",height=" + h + ",toolbar=no,status=no,menubar=0,scrollbars=no,resizable=no");
	
}