//Javascript functions that are used on the home pages (index.asp files of each directory)

/*
fnGetShipping is used to control the show or hide the shipping info section.  if the Shipping Information Checkbox is checked, the Shipping 
Section will not be displayed.  if the Shipping Information Checkbox is unchecked, the Shipping Section will be displayed
*/
function fnGetShipping()
{	
	if(document.billing.same.checked == true)
		document.getElementById("tblShipping").style.display="none"        
	else
		document.getElementById("tblShipping").style.display="block"            
}

/*
fnCreditOrCheck controls the fields that gather information pertaining to the payment method the customer is using
*/
function fnCreditOrCheck()
{
	if(document.billing.pMeth.value == 'Credit')
	{
		document.getElementById("displayCredit").style.display="block"
		document.getElementById("displayCheck").style.display="none"
	}
	if(document.billing.pMeth.value == 'Check')
	{
		document.getElementById("displayCredit").style.display="none"
		document.getElementById("displayCheck").style.display="block"
	}
}

/*
popUpCIC is used to create the Credit Card Validation Pop Up.
*/
function popUpCIC(url) 
{
CICWin = window.open(url,'win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=450');
self.name = "mainWin";
}

/*
popUp is used for generating the Privacy Policy pop up. 
*/
function popUp(url) 
{
Win = window.open(url,'win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=795,height=500');
self.name = "mainWin";
}
/*
popUp1 is used for generating a pop up. 
*/
function popUp1(url) 
{
Win = window.open(url,'win1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=325,height=250');
self.name = "mainWin1";
}

/*
popUp2 is used for generating a pop up. 
*/
function popUp2(url) 
{
Win = window.open(url,'win2','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=325,height=355');
self.name = "mainWin2";
}
/*
popUpVideo is used for sites that need the no video displayed on the home page, but want a pop up to a video
*/
function popUpVideo(url) {
	sealWin = window.open(url,'win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=295,height=235');
	self.name = "mainWin";
}
/*
popUpCS is used for generating the Customer Service. 
*/
function popUpCS(url) 
{
Win = window.open(url,'win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=300');
self.name = "mainWin";
}

/*
popUpCheck is used for generating the Check Information pop up. 
*/
function popUpCheck(url) 
{
Win = window.open(url,'win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=320,height=200');
self.name = "mainWin";
}