function fnGetData( loc )
		{
			var content = "";
		    var header = "";
		    switch( loc.id )
		    {
		        case "Home":
					loc.classname ="SubMenuItemSelected";
					window.open("home.htm","_self");
					
		            break;
		        case "WhyMRTC":
					loc.classname ="SubMenuItemSelected";
					window.open("WhyMRTC.html","_self");
					break;
		        case "ContactUs":
					loc.classname ="SubMenuItemSelected";
					window.open("ContactUs.html","_self");
		            break;
		        case "ROE":
					loc.className = "SubMenuItemSelected";
					window.open("http://www.ramquest.com");
					window.open("home.htm","_self");
					break;
				case "OnlineOrdering":
					loc.classname ="SubMenuItemSelected";
		            window.open("OnlineOrdering.asp","_self");
					break;						
				case "AffiliatedServices":
					loc.className = "SubMenuItemSelected";
					window.open("SampleLawyerSite.htm");
					window.open("home.htm","_self");
					break;
		        case "Testimonials":
		            loc.classname ="SubMenuItemSelected";
					window.open("Testimonials.html","_self");
		            break;
		        case "KeyStaff":
		            loc.classname ="SubMenuItemSelected";
					window.open("KeyStaff.html","_self");
		            break;
		        case "Subdivisions":
		            loc.classname ="SubMenuItemSelected";
					window.open("subdivisions.asp","_self");
		            break;
		        case "SellerInformation":
		            loc.classname ="SubMenuItemSelected";
					window.open("SellerInformation.htm","_self");
		            break;       
		        case "BuyerInformation":
		            loc.classname ="SubMenuItemSelected";
					window.open("BuyerInformation.htm","_self");
		            break;  
		        case "Rates":
		            loc.classname ="SubMenuItemSelected";
					window.open("Rates.htm","_self");
		            break;  
		        case "SureClose":
		            loc.classname ="SubMenuItemSelected";
					window.open("SureClose.html","_self");
		            break;   
		            
		        case "DrivingDirection":
		            loc.classname ="SubMenuItemSelected";
					window.open("DrivingDirection.html","_self");
		            break;     
		        case "MortageCalculator":
		            window.open("MortgageCalc.html","_self");
		            break;  
		        case "RelatedLinks":
		            loc.classname ="SubMenuItemSelected";
		            window.open("Related Links.html","_self");
		            break;
		        case "ForSaleByOwner":
		            loc.classname ="SubMenuItemSelected";
		            window.open("ForSaleByOwnerConfirmation.html","_self");
		            break;
		        case "Glossary":
		            loc.classname ="SubMenuItemSelected";
		            window.open("Glossary.html","_self");
		            break;
		            }
		    if(loc.id!='MortageCalculator')
		    {
		        loc.className = "SubMenuItemSelected";		
		    }   
		}
		
function fnMouseOver(loc)
{

	if( loc.className != "SubMenuItemSelected" ) 
	{
		loc.className = "SubMenuItemMouseOver";
	}
		
}
function fnMouseOut(loc)
{
	if( loc.className != "SubMenuItemSelected" ) 
	{
		loc.className = "SubMenuItem";
	}
}
function formdownload()
{
	alert("Sorry the link is not available");
	return false;
}		


function checkForm()
{
	if(document.inforequest.txtAddress.value=="")
	{
		alert("Please enter the Address");
		document.inforequest.txtAddress.focus();
		return false;
	}

	if(document.inforequest.txtemail.value=="")
	{
		alert("Please enter the Contact Email");
		document.inforequest.txtemail.focus();
		return false;
	}
	if(document.inforequest.txtLoanAmt.value=="")
	{
		alert("Please enter the Loan Amount");
		document.inforequest.txtLoanAmt.focus();
		return false;
	}

	if(!(document.inforequest.vacant_land.checked) && document.inforequest.txtAddressOProperty.value=="" )
	{
		alert("Please enter address of the Property");
		document.inforequest.txtAddressOProperty.focus();
		return false;
	}
	if(document.inforequest.P_City.value=="")
	{
		alert("Please enter city of the Property");
		document.inforequest.P_City.focus();
		return false;
	}
	if(document.inforequest.P_State.value=="")
	{
		alert("Please enter state of the Property");
		document.inforequest.P_State.focus();
		return false;
	}
	var doc=document.forms[0]
	var msg="Please confirm to send an Email";
	if(confirm(msg))
	{
		doc.submit();
		return true;
	}
	else(!confirm)
		return false;
}


