var mysample
function fnOpen(type, dest){
// first check to see if the window was closed from the calling window
if (mysample != null) {
if (mysample.closed == true ) {mysample = null;}
}
// and set it to null if it was closed so it can be re-opened
if (type=="big") 
{
if (mysample == null) {
mysample=window.open(dest);
}
//
// open a window with no attributes specified = whatever the users default browser window setting currently are
}

if (type=="small") 
{
// make sure the window is not already opened - keeps multiple windows from opening 
if (mysample == null) {
mysample=window.open(dest,null,
"height=330,width=400,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no");
}
//
// Other properties (features) include: top, left, directories, channelmode, fullscreen
// Syntax:
// oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace] )
} 
}
// mysample is a window object - 
function fnClose(){
// make sure the window is opened before trying to close it
if (mysample != null) {
mysample.close();
// this lets the user reopen the window if they wish; mysample still contains data after closing it
mysample = null;
}
}
