//for pop up inside
//$(document).ready(function() {
//	$("#kabu_main").newWindow({
//		 windowTitle:"Kabu-pedia",
//		 ajaxURL: "http://localhost/vst_2009/vst/index.php/kabupedias/",
//		 //onDragBegin: function(){alert("Drag begin")},
//		 //onDragEnd: function(){alert("Drag end")},
//		 //onResizeBegin: function(){alert("Resize begin")},
//		 //onResizeEnd: function(){alert("Resize end")},
//		 //onAjaxContentLoaded: function(){alert("Ajax Content Loaded")},
//		 width:600,height:400
//	});
//});

function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=no, resizable=no');
 win.resizeTo(w, h);
 win.focus();
}
