// JavaScript Document

$(document).ready(function() {
 // hides the adminbox as soon as the DOM is ready
 // (a little sooner than page load)
  $('#adminbox').hide();
 // shows the adminbox and hides the visitor on clicking the noted link  
 	$('#admin-open').click(function() {
    $('#adminbox').slideDown('slow');
	$('#visitorbox').slideUp('slow');
    return false;
  });
 // hides the adminbox and shows the visitorbox on clicking the noted link  
   $('#admin-close').click(function() {
    $('#adminbox').slideUp('slow');
	$('#visitorbox').slideDown('slow');
    return false;
  });
});


function SubmitForm(type)
{

        if(type==1)
        {
            document.forms[0].action="Index.aspx";
        }
        else if(type==2)
        {
            document.forms[0].action="About.aspx";
        }
         else if(type==3)
        {
            document.forms[0].action="ContactUs.aspx";
        }
         else if(type==4)
        {
            document.forms[0].action="postproperty.aspx";
        }
         else if(type==5)
        {
            document.forms[0].action="requirements.aspx";
        }
         else if(type==6)
        {
            document.forms[0].action="FeedBack.aspx";
        }
        else
        {
            document.forms[0].action="Result.aspx";
        }
        document.forms[0].submit();
}

