
// ----------------------------------------------------
// OPEN WINDOW
// ----------------------------------------------------
// opens page in a new window
// called example:  Open('includes/xyz.htm')
// ----------------------------------------------------
var Win = ""

function TestLink(url) {
alert(url)
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 790   //528
	var h = 590   //363

	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();
	
	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self; 
}


function OpenLink(url) {
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 790   //528
	var h = 590   //363

	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();
	
	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self; 
}



function Open(url) {
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 790   //528
	var h = 590   //363

	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();

	// fix for pages in folders
	url = "../" + url
	
	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self; 
}

function OpenPic(url) {
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 528
	var h = 363

	// fix for pages in folders
	url = "../" + url
	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();

	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self;
}

function OpenPic2(url) {
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 690
	var h = 510

	// fix for pages in folders
	url = "../" + url
	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();

	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self;
}

function OpenPic3(url) {
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 1039
	var h = 240
	
	// fix for pages in folders
	url = "../" + url
	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();

	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self;
}


function OpenPic4(url) {
	var avWidth = screen.availWidth;
	var avHeight = screen.availHeight;
	var w = 790
	var h = 610

	// fix for pages in folders
	url = "../" + url
	// only allow one window open at a time
	if (Win != null && Win.open) Win.close();

	// open the window
	Win =  window.open(url,'', 'scrollbars=yes,resizable=yes,toolbars=yes,' +'width=' + w + ',height=' + h + ',left='+((avWidth  - w - 10) * .5) + ',top=' + ((avHeight  - h - 30) * .5));
    if (!Win.opener)
         Win.opener = self;
}

