var open1=false;
function closerWindow() {Theplan.close();}
function Change_plan(plan,tw,th){
var a
var b
var url
titl= "";
vidWindowWidth=tw;
vidWindowHeight=th;
a=(screen.height-vidWindowHeight)/2;
b=(screen.width-vidWindowWidth)/2;
features="top="+a+",left="+b+",width="+vidWindowWidth+",height="+vidWindowHeight+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=no";
url="view.php?vid="+plan+"&titl="+titl;
if (open1) {Theplan.close();};
if ((!open1)||(Theplan.closed)){open1=true;
Theplan=window.open(url,"New_Window",features,true);
Theplan.focus();
}else{
if ((open1)||(!Theplan.closed)){
Theplan.location=url;
Theplan.focus();
}}}
