﻿// JScript File

var wnd = null;
function showBasket(strParameters) {
	var intWidth=790;
	var intHeight=650;
	var intScWidth,intScHeight,intXPos,intYPos;
	intScWidth = screen.availWidth;
	intScHeight = screen.availHeight;
	intXPos = ((intScWidth - intWidth) / 2);
	intYPos = ((intScHeight - intHeight) / 2);
	if (wnd != null) { // if the window has been created at some point 
		if (wnd.closed) { // if the window has been closed by the kill icon
			wnd=null;
		}
		else {
			// close the window
			wnd.close();
			wnd=null;
		} // endif
	} // endif
	//alert(strUrl);
	wnd=null;  
	//wnd=window.open('../Shopping/Basket.aspx?' + strParameters,"wnd","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + intWidth + ",height=" + intHeight + ",screenX=" + intXPos + ",screenY=" + intYPos + ",left=" + intXPos + ",top=" + intYPos)
	//wnd=window.open('https://www.verysecureservers.com/mbnlp/Site/Contents/shopping/basket.aspx?' + strParameters,"wnd","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + intWidth + ",height=" + intHeight + ",screenX=" + intXPos + ",screenY=" + intYPos + ",left=" + intXPos + ",top=" + intYPos)
	wnd=window.open('http://www.mcssl.com/app/netcart.asp?MerchantID=101115&' + strParameters,"wnd","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + intWidth + ",height=" + intHeight + ",screenX=" + intXPos + ",screenY=" + intYPos + ",left=" + intXPos + ",top=" + intYPos)
	wnd.focus();
}	

function showWindow(intWidth,intHeight,strUrl) {
	var intScWidth,intScHeight,intXPos,intYPos;
	intScWidth = screen.availWidth;
	intScHeight = screen.availHeight;
	intXPos = ((intScWidth - intWidth) / 2);
	intYPos = ((intScHeight - intHeight) / 2);
	if (wnd != null) { // if the window has been created at some point 
		if (wnd.closed) { // if the window has been closed by the kill icon
			wnd=null;
		}
		else {
			// close the window
			wnd.close();
			wnd=null;
		} // endif
	} // endif
	//alert(strUrl);
	wnd=null;  
	wnd=window.open(strUrl,"wnd","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + intWidth + ",height=" + intHeight + ",screenX=" + intXPos + ",screenY=" + intYPos + ",left=" + intXPos + ",top=" + intYPos)
	wnd.focus();
}

function openTeleclassWindow(id) 
{
  showWindow(760,550, 'TeleclassRegister.aspx?ID=' + id)
}


