/**
File: ce.js
**/

<!--
// open new window 
var status=1, toolbar=1;
function open_attache_reports(fname, height, width, top, left, resizable, scrollbar) {
	var query_string;
	query_string = "attache_reports.cfm?qstring="+fname;
	//window.open(query_string, 'attache_reports', 'height='+height+',width='+width+',top='+top+',left='+left+',resizable='+resizable+',toolbar='+toolbar+',scrollbars='+scrollbar+',status='+status);
	window.open("default_popwin.cfm?obj_name=attache_reports.cfm&qstring="+fname, "attache_reports", 'height='+height+',width='+width+',top='+top+',left='+left+',resizable='+resizable+',toolbar=0'+',scrollbars='+scrollbar+',status='+status);
	return;
}

// open print window 
function open_print_win(obj) {
	var obj_value = obj.options[obj.selectedIndex].value;
	var obj_title = obj.options[obj.selectedIndex].text;
	var subrgnid = this.document.forms[0].subrgnid.value;
	if (obj_title != "Select One") {
		window.open("default_popwin.cfm?obj_name=print_chart.cfm&subrgnid="+subrgnid+"&img_name="+obj_value+"&img_title="+obj_title, "print_chart", "height=625,width=799,top=15,left=50,menubar=1,resizable=1,scrollbars=1,status=1");
	}
	return;
}

// open new window 
function open_window(fname, height, width, top, left, resizable, scrollbar) {
	var status=1;
	window.open(fname, 'f_comments', 'height='+height+',width='+width+',top='+top+',left='+left+',resizable='+resizable+',scrollbars='+scrollbar+',status='+status);
	return;
}

// open locator map
function open_map(ftype, subrgnid, height, width) {
	if (ftype == "cropview") {
		window.open('../map.cfm?subrgnid='+subrgnid+'&regionid=#s_regionid#','location','height='+height+',width='+width+',top=100,left=150,resizable,scrollbars');
	}
	else {
		window.open('map.cfm?subrgnid='+subrgnid+'&regionid=#s_regionid#','location','height='+height+',width='+width+',top=100,left=150,resizable,scrollbars');
	}		
	return;
}

// -->