<!-- //open product availability window
function newWindow()
{
	var winref = window.open( "/scripts/prodavail.htm", "mapWin", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=400,height=260" );
	winref.focus();
}

// open a "tiny" window to perform background tasks (like file downloads)
function newWindowNoChrome(url, windowName)
{
	var winref = window.open( url, windowName, "top=0,left=0,scrollbars=0,title=0,address=0,status=0,toolbar=0,resizable=0,width=4,height=4" );
	winref.focus();
	return winref;		// can be used by calling code
}

// new window with 4 params...
function newWindow4p( url, windowName, width, height )
{
	var size = "width=" + width + ",height=" + height;
	var chrome = "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1," + size;
	var windo = window.open(url, windowName, chrome);
	windo.focus();
}
// same as above so works for both function names
function openWindow4p(url, windowName, width, height)
{
	newWindow4p(url, windowName, width, height);
}

//--------------------------------------------------------------
//--   Input : (imageName) - the name of the large image to be shown in the popup
function showImage(imageName, width, height, windowTopAndLeft)
{
	if (windowTopAndLeft <= 10) windowTopAndLeft = 10;
	var pURL = 'showImage.asp?pi=' + imageName;
	var pInfo = 'toolbar=0,';
	pInfo += 'location=0,';
	pInfo += 'directories=0,';
	pInfo += 'status=0,';
	pInfo += 'menubar=0,';
	pInfo += 'scrollbars=0,';
	pInfo += 'resizable=1,';
	pInfo += 'top=' + windowTopAndLeft + ',left=' + windowTopAndLeft + ',';
	pInfo += 'width=' + width + ',height=' + height;
	var winref = window.open(pURL, 'showImage', pInfo);
	winref.focus();
}

function openTermsWindow()
{
	var winref = window.open( "/checkout/tandc.asp", "tandcWin", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=560,height=470" );
	winref.focus();
}

function newQuickAccountingDetailsWindow()
{
	var winref = window.open( "quickaccountingdetails.html", "quickAccountingWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=600,height=500" );
	winref.focus();
}		

function newDepSlipDetailsWindow()
{
	var winref = window.open( "f1_dep.htm", "depSlipDetailsWindow", "top=20,left=20,scrollbars=0,title=0,address=0,status=0,toolbar=0,resizable=1,width=375,height=500" );
	winref.focus();
}

function newCheck21Window()
{
	var winref = window.open( "check21.asp", "check21", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=600,height=540" );
	winref.focus();
}

function newPrintFactoryWindow( version )
{
	var winref = window.open( "pfdetails.asp?v=" + version, "printFactoryWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=600,height=500" );
	winref.focus();
}

function newCheck21ComplianceWindow()
{
	var winref = window.open ( "check21compliance.html", "check21c", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=580,height=540" );
	winref.focus();
}

function newWindowch21() 
{
	var winref = window.open("check21.asp","mapWin", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=600,height=540")
	winref.focus();
}

function newCheckFactWindow()
{
	var winref = window.open ( "vi_checkfact.html", "newCheckFactWindow", "top=20,left=20,scrollbars=0,title=0,address=0,status=0,toolbar=0,resizable=1,width=520,height=270" );
	winref.focus();
}

function newVIDetailsWindow()
{
	var winref = window.open ( "vi_details.html", "newVIDetailsWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=500,height=520" );
	winref.focus();
}

/*******************************************************************************
'  moreProductDetails - 04/08/2009 2:12PM
'  @METAGS moreProductDetails
'******************************************************************************/
function moreProductDetails ( productId, fragment )
{
	var pageURL = "";
	var width = "700";
	switch ( productId )
	{
		case 1942:
			width = "640";
			pageURL = "versacardmoredetails.html"
			if ( fragment != undefined ) 
			{
				pageURL += fragment;
			}
			fragment;
			break;
		default:
			pageURL = "/";
			break;
	}
	winChrome = "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=";
	winChrome += width + ",height=520";
	var winref = window.open ( pageURL, "moreProductDetailsWindow", winChrome );
	winref.focus();
}  // moreProductDetails
//-->

function newDisclaimerWindow()
{
	var winref = window.open ( "/scripts/disclaimer.asp", "disclaimerWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=360,height=435" );
	winref.focus();
}
function newPrivacyPolicyWindow()
{
	var winref = window.open ( "/scripts/privacypolicy.asp", "privacyPolicyWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=360,height=435" );
	winref.focus();
}

function UVdetails() 
{
	var winref = window.open ( "uvdetails.asp","mapWin", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=600,height=480" )
	winref.focus();
}
	
function UVcomp ( send )
{
	var winref = window.open ( "uvcompatibility.asp?cart=" + send,"mapWin", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=540,height=480" )
	winref.focus();
}
				 
