/*
Spawns a new HTML window with parameterized attributes
Function expects the following arguments:
	webpage URL (eg. http://www.microsoft.com) REQUIRED,
	New Window Name (eg. myWindow) OPTIONAL default=win0,
	New Window Height (eg. 600) OPTIONAL,
	New Window Width (eg. 600) OPTIONAL,
	Show Tool Bar OPTIONAL default='yes',
	Show Menu Bar OPTIONAL default='yes',
	New Window Resizable OPTIONAL default='yes',
	New Window ScrollBars OPTIONAL default='yes'

Example Function Calls:
	newWin('http://www.microsoft.com','myWin',500,600,'no','no','no','no','no')	
	newWin('http://www.microsoft.com','',500,600)
	newWin('http://www.microsoft.com','',500,600,'','','no','no')
	
Other remarks
	-if you choose to leave out an OPTIONAL argument, you must substitute '' in its place
	-yes and no arguments must always be entered using single quotes (eg. 'yes','no')
*/
function newWin(sUrl,sName,iHeight,iWidth,sToolBar,sMenuBar,sResizable,sScrollBars)
{

	var sDefaultUrl = 'http://www.naffainc.com';
	var sDefaultName = 'win0';

	window.open(
		(sUrl) ? sUrl:sDefaultUrl,
		(sName) ? sName:sDefaultName, 
		((iHeight) ? 'height='+ iHeight:'') + ((iWidth) ? ',width='+iWidth:'') +
		',toolbar=' + ((sToolBar) ? sToolBar:'yes') +
		',menubar=' + ((sMenuBar) ? sMenuBar:'yes') +
		',resizable=' + ((sResizable) ? sResizable:'yes') +
		',scrollbars=' + ((sScrollBars) ? sScrollBars:'yes')
	);
	
	
}


/*
go back one page in the history
*/
function back(){
	window.history.go(-1);
}