//	set
width = "490";
height = "340";

function winopen(url,windowname) {
 var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
 if (width) {
  if (window.screen.width > width)
   features+=", left="+(window.screen.width-width)/2;
  else width=window.screen.width;
  features+=", width="+width;
 }
 if (height) {
  if (window.screen.height > height)
   features+=", top="+(window.screen.height-height)/2;
  else height=window.screen.height;
  features+=", height="+height;
 }
 window.open(url,windowname,features);
}

//	set_b
width_b = "490";
height_b = "370";

function winopen_b(url,windowname) {
 var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
 if (width) {
  if (window.screen.width > width_b)
   features+=", left="+(window.screen.width-width_b)/2;
  else width=window.screen.width;
  features+=", width="+width_b;
 }
 if (height) {
  if (window.screen.height > height_b)
   features+=", top="+(window.screen.height-height_b)/2;
  else height_b=window.screen.height;
  features+=", height="+height_b;
 }
 window.open(url,windowname,features);
}

//	set_c
width_c = "490";
height_c = "470";

function winopen_c(url,windowname) {
 var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
 if (width) {
  if (window.screen.width > width_c)
   features+=", left="+(window.screen.width-width_c)/2;
  else width=window.screen.width;
  features+=", width="+width_c;
 }
 if (height) {
  if (window.screen.height > height_c)
   features+=", top="+(window.screen.height-height_c)/2;
  else height_c=window.screen.height;
  features+=", height="+height_c;
 }
 window.open(url,windowname,features);
}

//	set_d
width_d = "490";
height_d = "280";

function winopen_d(url,windowname) {
 var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
 if (width) {
  if (window.screen.width > width_d)
   features+=", left="+(window.screen.width-width_d)/2;
  else width=window.screen.width;
  features+=", width="+width_d;
 }
 if (height) {
  if (window.screen.height > height_d)
   features+=", top="+(window.screen.height-height_d)/2;
  else height_d=window.screen.height;
  features+=", height="+height_d;
 }
 window.open(url,windowname,features);
}

//	set_e
width_e = "490";
height_e = "310";

function winopen_e(url,windowname) {
 var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
 if (width) {
  if (window.screen.width > width_e)
   features+=", left="+(window.screen.width-width_e)/2;
  else width=window.screen.width;
  features+=", width="+width_e;
 }
 if (height) {
  if (window.screen.height > height_e)
   features+=", top="+(window.screen.height-height_e)/2;
  else height_e=window.screen.height;
  features+=", height="+height_e;
 }
 window.open(url,windowname,features);
}

//	set_f
width_f = "490";
height_f = "410";

function winopen_f(url,windowname) {
 var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
 if (width) {
  if (window.screen.width > width_f)
   features+=", left="+(window.screen.width-width_f)/2;
  else width=window.screen.width;
  features+=", width="+width_f;
 }
 if (height) {
  if (window.screen.height > height_f)
   features+=", top="+(window.screen.height-height_f)/2;
  else height_f=window.screen.height;
  features+=", height="+height_f;
 }
 window.open(url,windowname,features);
}
