/**
 * FIE FUNCS v0.96: Utilities for FIE sites - http://www.flashiteasy.com/
 *
 * please enter your own scripts below the line USER FUNCTIONS
 *
 */

/**
 *		Opens a popup window
 *		@param url 			: 	String, the url of the window to be popped
 *		@param target 		: 	String, the target of the url (should be '' for a classic popup)
 *		@param width		:	Number, the width of the poppedup window
 *		@param height		:	Number, the height of the poppedup window
 *		@param resize		:	Boolean, displays the resize tool bottom right of the window
 *		@param scollbars	:	Boolean, displays the browser window scrollbars
 *		@param menubar		:	Boolean, displays the browser window menubar
 *		@param toolbar		:	Boolean, displays the browser window toolbar
 *		@param directories	:	Boolean, displays the browser window directories box
 *		@param location		:	Boolean, displays the browser window location box
 *		@param status		:	Boolean, displays the browser window status box
 */

function fie_openWin(str) 
{
	var prm = str.split(",")
	var url = prm[0];
	var target = prm[1];
	var width = prm[2];
	var height = prm[3];
	var resize = prm[4] || false;
	var scrollbars = prm[5] || false;
	var menubar = prm[6] || false;
	var toolbar = prm[7] || false;
	var directories = prm[8] || false;
	var location = prm[9] || false;
	var status = prm[10] || false;
	var wf = "";
	wf = wf + "width=" +width;
	wf = wf + ",height=" + height;
	wf = wf + ",screenX=" + (screen.width-width)/2;
	wf = wf + ",left=" + (screen.width-width)/2;
	wf = wf + ",screenY=" + (screen.height-height)/2;
	wf = wf + ",top=" + (screen.height-height)/2;
	wf = wf + ",resizable=" + (resize ? "yes" : "no");
	wf = wf + ",scrollbars=" + (scrollbars ? "yes" : "no");
	wf = wf + ",menubar=" + (menubar ? "yes" : "no");
	wf = wf + ",toolbar=" + (toolbar ? "yes" : "no");
	wf = wf + ",directories=" + (directories ? "yes" : "no");
	wf = wf + ",location=" + (location ? "yes" : "no");
	wf = wf + ",status=" + (status ? "yes" : "no");
	//alert(url+ " / "+wf);
	fen=window.open(url,target,wf);
}

function test(s)
{
	alert(s);
}
