// JavaScript Document

var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=600,width=450,scrollbars=yes,resizable=yes');
	if (window.focus) {newwindow.focus()}
}



// This is to open SmartMart Captivate demo windows: demo size published @ 800 X 500

var newwindow;
function poptastic_smartmartdemos(url)
{
	newwindow=window.open(url,'name','height=490,width=822,location=1,scrollbars=no,resizable=no,toolbar=no,location=no');
	if (window.focus) {newwindow.focus()}
}



// This is to open video for Financial System applications

var newwindow;
function poptastic_video(url)
{
	newwindow=window.open(url,'name','width=520,height=470,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no');
	if (window.focus) {newwindow.focus()}
}



// This is to open Buy/Pay Guide Window

var newwindow;
function poptastic_buypayguide(url)
{
	newwindow=window.open(url,'name','width=820,scrollbars=yes,resizable=yes');
	if (window.focus) {newwindow.focus()}
}

// This is to open Buy/Pay Guide - Pop-Up Info Window
var newwindow;
function poptastic_buypay(url)
{
	newwindow=window.open(url,'name','width=600,height=500,resizable=no,scrollbars=yes,toolbar=no');
	if (window.focus) {newwindow.focus()}
}

// This is to open pop-up screen shots of Zip Purchasing Overview page
var newwindow;
function poptastic_zipbuy(url)
{
	newwindow=window.open(url,'name','width=755,height=570,resizable=no,scrollbars=yes,toolbar=no');
	if (window.focus) {newwindow.focus()}
}



// This is to open Purchasing Method Workflow - Pop-Up Info Window (SmartMart, Standard & RPO)
var newwindow;
function poptastic_workflow(url)
{
	newwindow=window.open(url,'name','width=675,resizable=yes,scrollbars=yes,toolbar=no');
	if (window.focus) {newwindow.focus()}
}


// This is to Buy/Pay Statistics window
var newwindow;
function buypay_perfmetrics(url)
{
	newwindow=window.open(url,'name','width=675,height=435,resizable=yes,scrollbars=yes,toolbar=no');
	if (window.focus) {newwindow.focus()}
}








// Useful Attributes
/*
1. width=300
Use this to define the width of the new window. 

2. height=200
Use this to define the height of the new window. 

3. resizable=yes or no
Use this to control whether or not you want the user to be able to resize the window. 

4. scrollbars=yes or no
This lets you decide whether or not to have scrollbars on the window. 

5. toolbar=yes or no
Whether or not the new window should have the browser navigation bar at the top (The back, foward, stop buttons..etc.). 

6. location=yes or no
Whether or not you wish to show the location box with the current url (The place to type http://address). 

7. directories=yes or no
Whether or not the window should show the extra buttons. (what's cool, personal buttons, etc...). 

8. status=yes or no
Whether or not to show the window status bar at the bottom of the window. 

9. menubar=yes or no
Whether or not to show the menus at the top of the window (File, Edit, etc...). 

10. copyhistory=yes or no
Whether or not to copy the old browser window's history list to the new window. 


Set the Window Position 

There is another set of options you can use to set the position of the new window on the viewers, but it only works with NS4+ and IE4+: 

1. screenX=number in pixels
Sets the position of the window in pixels from the left of the screen in Netscape 4+. 

2. screenY=number in pixels
Sets the position of the window in pixels from the top of the screen in Netscape 4+. 

3. left=number in pixels
Sets the position of the window in pixels from the left of the screen in IE 4+. 

4. top=number in pixels
Sets the position of the window in pixels from the top of the screen in IE 4+. 



*/


