// Throw a popup
function popup(url, width, height, name, resizable) {
	// Check for default values and set them if they don't exist
	name = (!name) ? '' : name;
	resizable = (!resizable) ? 0 : 1;
	
	// Open the window
	var my_popup = window.open(url,name,"width="+width+",height="+height);//+",menubar=0,scrollbars=1,toolbar=0,location=0,resizable="+resizable);
	//return;
}

// These functions are deprecated... please call popup directly
function pop_image(image,width,height) {
        window.open(escape(image),"","width="+width+",height="+height+",menubar=0,scrollbars=1,toolbar=0");
        return false;
}

function pop_image2(image,width,height) {
        window.open(image,"","width="+width+",height="+height+",menubar=0,scrollbars=1,toolbar=0");
        return false;
}

function pop(url) { popup(url,600,500,'pop_resource',true); }
function pop_window(url, width, height) { popup(url,width,height,'info'); }