function fullmode(imgstr)
{
WindowF = "resizable=no,scrollBars=no,menuBar=no,directories=no,toolBar=no,location=No,status=No," 
WindowF += "width=400,height=400,screenX=0,screenY=0,top=0, left=0"
var ErrorName = "/full.asp?ximg=" + imgstr
var fullwin = window.open (ErrorName, "Full_View", WindowF);
fullwin.focus();
}


function go_shit(shit,gapi)
{
	if(shit.substring(0,3)=='xxx')
	{ 
		//navigate('http://www.filgifts.com/ssl/address.asp?xnew=on&xret=basket&xbasket=' + shit.substring(3, shit.length)  )
		//navigate('http://www.filgifts.com/ssl/address.asp?xnew=on&xret=basket&xbasket=' +  gapi )
		window.location.href = 'http://www.filgifts.com/ssl/address.asp?xnew=on&xret=basket&xbasket=' +  gapi 
	}

}


function GoToCreditCardValidation(){
	window.location.href='payoptions.asp' + '?card=mcard';
}	 


function GoToAvailBDOPromo(){
	window.location.href = "bdovalid.asp"
} 


function FormCheckout(xmID,xcurcode,xtotal,xorderref){
		document.frmCheckout.action	='https://www.paydollar.com/ECN/eng/payment/payForm.jsp';
		
		document.frmCheckout.merchantId.value		= xmID;
		document.frmCheckout.currCode.value			= xcurcode;
		document.frmCheckout.amount.value			= xtotal;
		document.frmCheckout.orderRef.value			= xorderref;
		document.frmCheckout.successUrl.value		= 'http://www.filgifts.com/ssl/purchase.asp';
		document.frmCheckout.failUrl.value			= 'http://www.filgifts.com/basket.asp';
		document.frmCheckout.cancelUrl.value		= 'http://www.filgifts.com/basket.asp';
		document.frmCheckout.payType.value			= 'N';
		document.frmCheckout.lang.value				= 'E';
		document.frmCheckout.xmode.value			= 'on';
		
		document.frmCheckout.submit();
} 

function FormInstallment(xtotal,xorderref){
		document.frmCheckout.action	='https://www.secureclient.biz/b2c/payment/index.php';
		document.frmCheckout.SC_MC.value			= 'SC000012';
		document.frmCheckout.SC_AMOUNT.value		= xtotal;
		document.frmCheckout.SC_REF.value			= xorderref;
		//document.frmCheckout.SC_SUCCESSURL.value	= 'http://www.filgifts.com/ssl/purchase.asp';
		//document.frmCheckout.SC_FAILURL.value		= 'http://www.filgifts.com/basket.asp';
		
		document.frmCheckout.submit();
		
}
		
