// Set name of parent window so it can be referred back to
window.name="topdog";

// Set global variable newwin so it can be referred to by other functions
var newwin; 

// BEGIN Open Window 
function popup(file_path,win_name,win_width,win_height) {

	newwin = window.open("",win_name,"toolbar=no,directories=no,menubar=no,scrollbars=yes,width=" + win_width + ",height=" + win_height + ",left=10,top=10,resizable=yes");
	newwin.location = file_path;
	newwin.focus();

} // END popup(fname,wname,wwidth,wheight)

// BEGIN Open Word Window 
function popupWord(file_path,win_name,win_width,win_height) {

	newwin = window.open("",win_name,"toolbar=yes,directories=no,menubar=no,scrollbars=yes,width=" + win_width + ",height=" + win_height + ",left=10,top=10,resizable=yes");
	newwin.location = file_path;
	newwin.focus();

} // END popup(fname,wname,wwidth,wheight)


// Help window popup

function Help(fname) {
    var w = window.open('','HELP',
	'scrollbars,resizable=no,width=566,height=400');
	w.location = fname ;
}

// END help window popup

function showOrder(fname) {
    var w = window.open('','HELP',
	'menubar,scrollbars,resizable=no,width=566,height=600');
	w.location = fname ;
}

// END help window popup
