

//-- This function opens the new, empty window named floater.

function openWindow(url) {

    		wpix=300

    		hpix=200

    		xpix=50

    		ypix=50

    		features='toolbar=no,location=no,directories=no,menubar=no,status=no,'

    		features+='scrollbars=no,resizable=yes,width='

    		features+=wpix

    		features+=',height='

    		features+=hpix

 

    		if (navigator.appName.indexOf("Microsoft")>=0) {

        		//xpix=screen.width-wpix-50

        		//ypix=screen.height-hpix-150

 			features+=',left='

 			features+=xpix

 			features+=',top='

 			features+=ypix

    		}else{

 			//-- Netscape

 			features+=',screenX='

			features+=xpix

 			features+=',screenY='

			features+=ypix

		}

		floater=window.open(url,"LittleWindow",features); 

		floater.opener=self;

    		floater.focus(); 

}

// stop double clicking of payment button
var submitcount = 0;

function checkFields()
{

if (submitcount == 0) {
	//sumbit form
	submitcount ++;	
	return true;	
	}
else
	{	
		alert("Transaction is in progress.");
		return false;
	}
}