﻿ <script language="JavaScript">
 
 function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail Address")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail Address")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail Address")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail Address")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail Address")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail Address")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail Address")
		    return false
		 }

 		 return true					
	}
	
	
	function setButton(s) 
{ 
    document.form.buttonChoice.value = s; 
	workIsDone = true;
	form.submit();
  
}

	function movepic(img_name,img_src)
{
	document[img_name].src=img_src;
	
}

 
 
	function ValidateForm(){
	
	var emailID=document.form.FROM_EMAIL
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email Address")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
 


  function OpenProcessing()	{
 
  var LeftPosition = (screen.width) ? (screen.width-340)/2 : 0;
  var TopPosition = (screen.height) ? (screen.height-145)/2 : 0;
  var settings = 'height='+145+',width='+340+',top='+TopPosition+',left='+LeftPosition+''
  var win = window.open("","",settings)

  var html = '<html><head><title>One Moment Please...</title></head><body bgcolor="#ffffff" onLoad="setTimeout(\'window.opener=window;window.close()\', 5000)">'
  html += '<p><center><font class=verdana8><b>Your Merchant Account Application '
  html += 'is being processed...</b><br><br><b>This operation may take up to 20 seconds.</b>'
  html += '<br><br><b>Thank you for your patience.</b></font></center></p></body></html>'

  win.document.write(html)
  win.document.close()
					}
					


 function CloseProcessing() { 
 var win
 if (win && !win.closed) { 
 win.close() 
 } 
 }
 



var workIsDone = false;
//var workIsDone = true;


window.onbeforeunload = confirmBrowseAway;


function confirmBrowseAway()
{
  if (!workIsDone) {
  var response = "OTHER COMPANIES HAVE 3 YEAR CONTRACTS AND CANCELLATION FEES THAT COULD COST YOU OVER $1,000.  DON'T GET TRAPPED BY THESE COMPANIES!  FOR A LIMITED TIME WE'RE OFFERING NO CONTRACT TERM, NO CANCELLATION FEES AND TO TOP IT ALL OFF A FREE TERMINAL.   AFTER YOU COMPLETE OUR ONLINE APPLICATION YOU'LL KNOW INSTANTLY IF YOU'VE BEEN APPROVED. ";
  
return response


}

  
} 



function fileComplete()
{

  var button=document.form.submitbutton;
  button.value = 'Processing ...';
  button.disabled = true;
  workIsDone = true;
  form.submit();
  return true; 
  
}

</script>
<script type="text/javascript">
window.moveTo(0,0);
if (document.all) {window.resizeTo(screen.availWidth,screen.availHeight)}
else {window.outerHeight = screen.availHeight; window.outerWidth = screen.availWidth}
</script>



 <STYLE TYPE="text/css">
    <!-- 
    #cache {
    position:absolute; left:250px; top:10px; z-index:10; display:none;
	
    }
	DIV {
	line-height:9pt;
	
	}
	
	.hidelink
	{
	color:#FFFFFF;
	text-decoration:none;
	}
	
	.bigwarning
	{
	color:#E4080A;
	font-family:Arial, Helvetica, sans-serif;
	font-size:22px;
	}
	
	.bigwarning2
	{
	color:#000066;
	font-family:Arial, Helvetica, sans-serif;
	font-size:22px;
	}
	
	.warning
	{
	color:#E4080A;
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px;
	}	
	
	.smallwarning
	{
	color:#E4080A;
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px;
	}
	
	.smallwarning2
	{
	color:#000000;
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px;
	}

	.smallwarning3
	{
	color:#000000;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	}
	
	.smallwarning4
	{
	color:#000000;
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	}
	
	.copywarning
	{
	color:#000000;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	}
	
	.borderlesstext
	{
	border:none;
	border-style:none;
	color:#FFFFFF;
	
	}
	
    -->
    </STYLE>
    <!--
    Lines above are creating a layer which show a message
    displaying the 'PLEASE WAIT ... ' message
    -->
	
	
	

	
	<script language="Javascript1.2">

// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header

// Set the message for the alert box
am = "All rights reserved.";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

</script>

    <SCRIPT LANGUAGE="JavaScript">
    ver = navigator.appVersion.substring(0,1)
    if (ver >= 4)
    	{
    	document.write('<DIV ID="cache"><BR><BR><BR><BR><BR><TABLE WIDTH=400 BGCOLOR=#000000 BORDER=0 CELLPADDING=2 CELLSPACING=0 ALIGN=CENTER><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=CENTER><TR><TD ALIGN=center VALIGN=middle><FONT class=verdana8><B><BR>PLEASE WAIT ...APPLICATION LOADING <BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');
//    	var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4 && navigator.userAgent.indexOf("Firefox")!=-1);
//    	var HIDDEN = (navi) ? 'hide' : 'hidden';
//    	var VISIBLE = (navi) ? 'show' : 'visible';
//    	var cache = (navi) ? document.cache : document.getElementById("cache").style;
//    	largeur = screen.width;
//    	cache.left = Math.round(100);
		cache.style.display="block";

    	}
    function cacheOff()
    	{
    	if (ver >= 4)
    		{
    		cache.style.display="none";
    		}
    	}
		
		
  function processed() { 
  setTimeout('window.opener=window;window.close()', 5000); 
  } 

  function OpenProcessing()	{
 
  var LeftPosition = (screen.width) ? (screen.width-340)/2 : 0;
  var TopPosition = (screen.height) ? (screen.height-145)/2 : 0;
  var settings = 'height='+145+',width='+340+',top='+TopPosition+',left='+LeftPosition+''
  var win = window.open("","",settings)

  var html = '<html><head><title>One Moment Please...</title></head><body bgcolor="#ffffff" onLoad="setTimeout(\'window.opener=window;window.close()\', 5000)">'
  html += '<p><center><font class=verdana8><b>Your Merchant Account Application '
  html += 'is being processed...</b><br><br><b>This operation may take up to 20 seconds.</b>'
  html += '<br><br><b>Thank you for your patience.</b></font></center></p></body></html>'

  win.document.write(html)
  win.document.close()
					}
					


 function CloseProcessing() { 
 var win
 if (win && !win.closed) { 
 win.close() 
 } 
 }
 
    </SCRIPT>
