
var gVar = 111;
var gOFIL = "";
function OpenFreeList() {//v1.0
//debugger
 var ret, szURL, szDialogProperties;
 var myObject = new Object();
 myObject.opener = this.window
 myObject.ret = ""
 szURL = "http://" + gDomain + "/FLS/FLSWEB/MortgageFC/MtgFreeList.aspx";
 szDialogProperties = "dialogHeight:560px;dialogWidth:900px; center; resizable:yes;scroll:yes;toolbar:0;location:0;menubar:0";
 ret=window.showModalDialog(szURL,myObject,szDialogProperties);
 //alert(myObject.ret); 
 if(myObject.ret == "Subscribe") 
   window.open("../NewPage3/OrderForm.aspx", "_self")
 else
   window.open("default.htm", "_self")
}

function OFIL() //OrderFormIntermediateLinks()
{
//	<a href="javascript:window.location.replace('https://' + gDomain_Path + 'OrderForm1.aspx?New_or_Renew=New&amp;UserName=');">ORDER NOW</a>
	var szURL = "OrderFormIntermediateLinks.htm"; //aspx"
     var myObject = new Object();
	myObject.opener = this.window
	myObject.ret = ""
/*    if(navigator.appName == "Netscape") {
  		try {
  		var newWin = window.open(szURL,"Order Form Intermediate Links","modal=yes,directories=0,menubar=0,titlebar=0,toolbar=0,height=250,width=540,top=1px,resizable=no,status=no");
  		
        //return;//function TS_Access_from_BottomFrame()
  		}
  		catch (e) {  alert("e.message="+e.message) }
    }
    else {
  		hWin = window.showModalDialog(szURL,myObject,"dialogHeight:250px;dialogWidth:540px; center; resizable:yes;scroll:yes;status:0;toolbar:0;location:0;menubar:0  "); 
    }
*/
	hWin = window.showModalDialog(szURL,myObject,"dialogHeight:250px;dialogWidth:540px; center; resizable:yes;scroll:yes;status:0;toolbar:0;location:0;menubar:0  "); 
  //  debugger
  switch(gOFIL) {
    case "btnNewCustomer":
//<!--	<a href="javascript:window.location.replace('https://' + gDomain_Path + 'OrderForm.aspx?New_or_Renew=New&amp;UserName=');">ORDER NOW</a> -->
      szURL = "https://"+window.document.domain+"/FLS/FLSWEB/Newpage3/OrderForm.aspx?New_or_Renew=New&amp;UserName="
      break;
    case "btnCurrentCustomer":
      szURL = "https://"+window.document.domain+"/FLS/FLSWEB/Newpage3/Login.aspx"
      break;
    case "btnFormerCustomer":
      szURL = "https://"+window.document.domain+"/FLS/FLSWEB/Newpage3/Login.aspx"
      break;
  }
//------------------------------
  window.open (szURL, "_self")
}
