var win = null;
function region(width,height)
{
    return "toolbar=0,scrollbars=1,location=0,statusbar=0,width=" + width + ",height=" + height + ",top=" + ((screen.height-height)/2).toString() + ",left=" + ((screen.width-width)/2).toString();
}
function openwindow(url,width,height,resizable)
{
   if (win!=null && (!win.closed)) win.close();
   win=window.open(url,"win",region(width,height)+(resizable?",resizable=yes":""));
}
function int_rates(id,name)
{
  openwindow("http://www.netphoneinfo.com/php/int_rates.php?plan="+id+"&name="+name,500,500);
}
function clearOld (old_place) {
	var oldDiv = document.getElementById(old_place);
	oldDiv.style.visibility = 'hidden';
	oldDiv.style.overflow = 'hidden';
	oldDiv.style.display = 'none';
	oldDiv.style.top = '-2px';
	oldDiv.style.left = '-2px';
	oldDiv.style.width = '1px';
	oldDiv.style.height = '1px';
}
function netmove(old_place, new_place) {
	var leftDiv = document.getElementById(new_place);
	var oldLeftDiv = document.getElementById(old_place);
	var leftHTML = oldLeftDiv.innerHTML;
	leftDiv.innerHTML = leftHTML;
	oldLeftDiv.innerHTML = null;
	clearOld (old_place);
}
function google_ad(width, height) {
	google_ad_client = "pub-1406225841485952";
	google_ad_width = width;
	google_ad_height = height;
	google_ad_format = width + "x" + height + "_as";
	google_ad_type = "text_image";
	google_ad_channel = "";
	google_color_border = "ffffff";
	google_color_bg = "FFFFFF";
	google_color_link = "49708F";
	google_color_text = "666666";
	google_color_url = "666666";
}