﻿// JScript File

function ShowPop(id)
{
   document.getElementById('popp').style.visibility = "hidden";
   document.getElementById('pop1').style.visibility = "visible";
   if(id=="brok")
   {
    document.getElementById('pop').innerHTML="<strong style='color:#e20404'>Brokerage</strong><br>We have a Complete knowledge of the real estate market in their communities. We have thorough knowledge of the Society or locality that best fit clients’ needs and budgets.<br />We are familiar with local zoning and tax laws and know where to obtain financing.<br />When selling we arrange for title searches and for meetings between buyers and sellers during which the details of the transactions are looked upon and are agreed upon and the new owners take possession of the property<br />A broker may help to arrange favorable financing from a lender for the prospective buyer; often, this makes the difference between success and failure in closing a sale. Brokers also supervise their own offices, advertise properties, and handle other business matters.";
   }
   else if(id=="mark")
   {
    document.getElementById('pop').innerHTML="<strong style='color:#e20404'>Marketing</strong><br>Our vision is to be the leading real estate specialty group offering innovative service and cost competitive products. In order to achieve this we have linked with key partners and associates to ensure we provide a quality product. Our goal is to deliver a superior level of return and customer satisfaction that exceeds expectations, by providing a complete and comprehensive property management services. These services include sales, marketing, consulting, research, project management and construction (civil and residential).";
   }
}
function HidePop(id)
{
   document.getElementById('pop').style.visibility = "hidden";
   document.getElementById('pop').className="popup";
}
function popupp(id)
{
   if(id=="pro")
   {
     document.getElementById('ifrm').style.display = "block";
     document.getElementById('ifrm').style.visibility = "visible";
     document.getElementById('ifrm').src="property.htm";
     document.getElementById('popp1').style.display = "none";
     document.getElementById('divcen').style.display = "none";
   }
   else if(id=="leg")
   {
     document.getElementById('ifrm').style.display = "block";
     document.getElementById('ifrm').style.visibility = "visible";
     document.getElementById('ifrm').src="legal.htm";
     document.getElementById('popp1').style.display = "none";
     document.getElementById('divcen').style.display = "none";
     
   }
   else if(id=="mark")
   {
    document.getElementById('divcen').style.display = "none";
    document.getElementById('popp1').style.display = "block";
    document.getElementById('ifrm').style.display = "none";
   // document.getElementById('popp1').innerHTML="<strong style='color:#e20404'>Marketing</strong><br>Our vision is to be the leading real estate specialty group offering innovative service and cost competitive products. In order to achieve this we have linked with key partners and associates to ensure we provide a quality product. Our goal is to deliver a superior level of return and customer satisfaction that exceeds expectations, by providing a complete and comprehensive property management services. These services include sales, marketing, consulting, research, project management and construction (civil and residential).";
   document.getElementById('popp1').innerHTML="<strong style='color:#e20404'>Marketing</strong><br><br><strong>For Buyers:</strong><br>Today, there are numerous websites, property guides, neighborhood brokers,lawyers and every possible person from close friends & relatives to the driver and laundry man giving information on realestate. A buyer today, is flooded with information on all matters that relate to property transactions...but the hitch is, this information, instead of assisting the buyer, confuse them.But at most times, the information generates fear of transcating in real estate and leaves the buyers and sellers to take a ponder as to whether they got the best deal or not. Finally, they are left with more questions than solutions and would doubt all from the industry.<br><br><strong>Presenting Enigma Properties.</strong><br>Buyers and sellers can meet us anywhere, anytime to avail our services through our integrated customer interface. All you have to do is to let us know the requirements and the entire network works as one to fulfill those requirements and provide a solution that leaves both the buyer and the seller with the feeling of contentment, of getting the best of deals. Our services and our website is designed to give the best of experience, added to it is our staff who is trained in regiment to attain strict confidence of the buyer and the seller and is always ready to assist in facilitating a solution rather than imposing a sale.<br><br><strong>For Sellers:</strong><br> Once you register your property with Enigma Properties, you get a local as well as international exposure through our website & by our network. It also works out to be a cost effective way to list your property and reach out to a Global viewership.";
   }
   else if(id=="brok")
   {
     document.getElementById('popp1').style.display = "block";
     document.getElementById('ifrm').style.display = "none";
     document.getElementById('popp1').innerHTML="<strong style='color:#e20404'>Brokerage</strong><br>We have a Complete knowledge of the real estate market in their communities. We have thorough knowledge of the Society or locality that best fit clients’ needs and budgets.<br />We are familiar with local zoning and tax laws and know where to obtain financing.<br />When selling we arrange for title searches and for meetings between buyers and sellers during which the details of the transactions are looked upon and are agreed upon and the new owners take possession of the property<br />A broker may help to arrange favorable financing from a lender for the prospective buyer; often, this makes the difference between success and failure in closing a sale. Brokers also supervise their own offices, advertise properties, and handle other business matters.";
     document.getElementById('divcen').style.display = "none";
   }
   document.getElementById('popp').style.visibility = "visible";
}
function close(id)
{
    document.getElementById('popp').style.visibility = "hidden";
    document.getElementById('ifrm').style.display = "none";
    document.getElementById('divcen').style.display = "block";
}

function foc()
{
   for(var i=1;i<=18;i++)
   {
    document.getElementById(i).style.display = "none";
   }
}
function clk(id)
{
   for(var i=1;i<=18;i++)
   {
     if(i==id)
     {
        if(document.getElementById(i).style.display == 'block')
        {
              document.getElementById(i).style.display = "none";
        }
        else
        {
            document.getElementById(i).style.display = "block";
        }
     }
     else
     {
            document.getElementById(i).style.display = "none";
     }
   }  
}
function faqfoc()
{
    for(var i=1;i<6;i=i+2)
    {
        document.getElementById(i).style.display = "none";
    }
    hideans();
        
}
function hideans()
{
    for(var j=10;j<=25;j++)
    {
        document.getElementById(j).style.display = "none";
    
    }
    for(var j=30;j<=35;j++)
    {
        document.getElementById(j).style.display = "none";
    }
    for(var k=50;k<=69;k++)
    {
        document.getElementById(k).style.display = "none";
    }
}
function showfaq(id)
{
    
    for(var i=1;i<6;i=i+2)
    {
        if(i==id)
        {
            if(document.getElementById(i).style.display == 'block')
            {
                  document.getElementById(i).style.display = "none";
            }
            else
            {
                document.getElementById(i).style.display = "block";
            }
        }
        else
        {
            document.getElementById(i).style.display = "none";
        }
    }
    hideans();  
}
function showquest(id)
{
    var x=id.substring(0,1);
    var start,end;
    if((x=="1") || (x=="2"))
    {
        start=10;
        end=25;
    }
    else if(x=="3")
    {
        start=30;
        end=35;
    }
    else if((x=="5") || (x=="6"))
    {
        start=50;
        end=69;
    }
    for(var i=start;i<=end;i++)
    {
       if(i==id)
        {
            if(document.getElementById(i).style.display == 'block')
            {
                document.getElementById(i).style.display = "none";
            }
            else
            {
                document.getElementById(i).style.display = "block";
            }
        }
        else
        {
            document.getElementById(i).style.display = "none";
        }
    }  
}
function close1(id)
{
    if(id=="DivPopImg1")
    {
        document.getElementById(id).style.display = "none";   
    }
    else if(id=="DivPopImg2")
    {
        document.getElementById(id).style.display = "none";
    }
}
function pcfoc()
{
   for(var i=1;i<=6;i++)
   {
    document.getElementById(i).style.display = "none";
   }
}
function showplan(id)
{
    for(var i=1;i<=6;i++)
    {
        if(i==id)
        {
            if(document.getElementById(i).style.display == 'block')
            {
                  document.getElementById(i).style.display = "none";
            }
            else
            {
                document.getElementById(i).style.display = "block";
            }
        }
        else
        {
            document.getElementById(i).style.display = "none";
        }
    }
}
function chksrch()
{
    if(document.getElementById('DdlArea').selectedIndex==0)
    {
        alert("Please select a Area");
        document.getElementById('DdlArea').focus();
        return false;
        
    }
    else if(document.getElementById('DdlPrice').selectedIndex==0)
    {
        alert("Please select a Price range");
        document.getElementById('DdlPrice').focus();
        return false;
        
    }
    else
    {
        return true;
    }
}
function chkcont()
{
    if(document.getElementById('TxtName').value=="")
    {
        alert("Please enter Name");
        document.getElementById('TxtName').focus();
        return false;
    }
    else if(document.getElementById('TxtPhone').value=="")
    {
        alert("Please enter Phone No.");
        document.getElementById('TxtPhone').focus();
        return false;
    }
    else if(document.getElementById('TxtMob').value=="")
    {
        alert("Please enter Mobile No.");
        document.getElementById('TxtMob').focus();
        return false;
    }
    else if(document.getElementById('TxtEmail').value=="")
    {
        alert("Please enter E-mail Id");
        document.getElementById('TxtEmail').focus();
        return false;
    }
    else if(document.getElementById('TxtEmail').value!="")
    {
        if((document.getElementById('TxtEmail').value.indexOf('.')==-1) || (document.getElementById('TxtEmail').value.indexOf('@')==-1))
        {
        
        alert("Please enter a valid E-mail Id");
        document.getElementById('TxtEmail').focus();
        return false;
        }
    }
    else
    {
        return true;
    }
}
function FixFlash(SwfFileName)
{
if(SwfFileName=="enigma.swf")
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="' + 523 +'" height="'+150+'">\n');
document.write('<param name="WMode" value="transparent">\n');
document.write('<param name="movie" value="Flash/'+SwfFileName+'">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<embed src="Flash/'+SwfFileName+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="523" height="150">\n');
document.write('</object>\n');
}
else
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="' + 523 +'" height="'+85+'">\n');
document.write('<param name="WMode" value="transparent">\n');
document.write('<param name="movie" value="Flash/'+SwfFileName+'">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<embed src="Flash/'+SwfFileName+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="523" height="85">\n');
document.write('</object>\n');
}
}
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src="images/bg.mp3" loop="infinite">')
else 
document.write('<embed src="images/bg.mp3"  border="0" width="20" height="20" autostart="true" loop="true">')
