//Created by Tim Carey
//Careyt@GoldenFirecp.com

//This java script file of java functions allow a web page to be created with pop up windows easily.  These functions are made for various types of windows having various options and controls.
//Each of these functions has different characteristics as of controls, options, and how customizable they are.
//Parameters
//(TCpageLoc) The Url of the initial page that will show up in the window.
//(TCwintarg) Window Target: the name of the pop up window.  When a pop up function is called again with this variable set the same and the pop up window hasn't been closed that window will now take on any control settings or option settings set by the new function all.
//(TCparams) This variable takes a string of characters that are actually parameters separated by commas(,).  In each of these functions you must send a width and height parameter string i.e. ('width=410,height=500').  But depending on which function other parameters can be set like ('width=410,height=500,scrollbars=yes') or others.
//Other parameters are toolbar=yes, location=yes, directories=yes, status=yes, menubar=no, scrollbars=yes, resizable=yes.  Maybe others.
//In each of the window pop up functions the resizable parameter is set to resizable=yes except for the function TCwinpopCust which is totally customizable.  Each window should be resizeable as a user benefit.
//In each of the window pop up functions the scrollbars parameter is set to scrollbars=yes (scrollbars are possible when content exceeds visible area) except for the function TCwinpopCust which is totally customizable and TCwinpopMin which is set to scrollbars=no because of the minimum controls, options, and scrollbars not possible.


function TCwinpopCust (TCpageLoc, TCwintarg, TCparams)
{
//Has a pop up window appear that is totally customizable for all controls and options.

window.open(TCpageLoc,TCwintarg,TCparams); 
}

function TCwinpopAllcons (TCpageLoc, TCwintarg, TCparams)
{
//Has a pop up window appear, but this window has All of the controls showing. The scrollbars are possible and the window is resizable.

var localparam = ",toolbar=yes,location=yes,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes"

window.open(TCpageLoc,TCwintarg,TCparams + localparam); 
}

function TCwinpopNocons (TCpageLoc, TCwintarg, TCparams)
{
//Has a pop up window appear, but this window has None of the controls showing. The scrollbars are possible and the window is resizable.

var localparam = ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"

window.open(TCpageLoc,TCwintarg,TCparams + localparam); 
}

function TCwinpopMin (TCpageLoc, TCwintarg, TCparams)
{
//Has a pop up window appear, but this window has Minimum of everything including None of the controls showing and no scrollbars possible.  But the window is resizable.

var localparam = ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes"

window.open(TCpageLoc,TCwintarg,TCparams + localparam); 
}