function openWindow(url) {
    wpix=425
    hpix=450
    xpix=35
    ypix=35
    features='toolbar=no,location=no,directories=no,menubar=no,'
    features+='scrollbars=yes,resizable=no,width='
    features+=wpix
    features+=',height='
    features+=hpix
 
    if (navigator.appName.indexOf("Microsoft")>=0) {
    alert("Microsoft")
        xpix=+20
        ypix=+20
 features+=',left='
 features+=xpix
 features+=',top='
 features+=ypix
    }else{
//-- Netscape
 features+=',screenX='
 features+=xpix
 features+=',screenY='
 features+=ypix
    }
    floater=window.open(url,"Results",features) 
    floater.focus()    
}

function popup(url,height,width,name) {

    features='toolbar=no,location=no,directories=no,menubar=no,';
    features+='scrollbars=yes,resizable=no,width=';
    features+=width;
    features+=',height=';
    features+=height;
 
    floater=window.open(url,name,features);
    if(floater != null){
		floater.focus();
	}
} 

// stop double clicking of payment button
var submitcount = 0;
function checkFields(that)
{
if (submitcount == 0) {
 
 submitcount ++; 

 that.submit();
 return true; 
 }
else
 { 
  alert("Transaction is in progress.");
  return false;
 }
}

