$(document).ready(function()
{ 
				


                $('div.demo').each(function() {eval($('p', this).text()); });
                $('#main p').wrap("<code></code>");
               // $("#proptype").multiSelect({
               // noneSelected: 'Not Specified'
                //});
                
}); 



function areas()
{
	document.getElementById('columnA').style.display = 'none';
	document.getElementById('frame1').style.display = 'block';
	document.getElementById('resultsContainer').style.display = 'block';
	document.getElementById('frame1').style.height = '2040px';

var results = $(document.Form1).serialize();
                results = decodeURI(results);
                var ptps = ""; 
                var ars = "";
                var mySplitResult = results.split("&");
                for(i = 0; i < mySplitResult.length; i++)
                {
                                if (mySplitResult[i].substr(0,4) == "type")
                                {
                                ptps = ptps + mySplitResult[i].substr(5) + "|"
                                }              
                                if (mySplitResult[i].substr(0,4) == "area")
                                {
                                ars = ars + mySplitResult[i].substr(5) + "|"
                                }              
                }
                
                if (ars == "|")
                {
                ars = "";
                }
                if (ptps == "|"){ptps = "";}
                if (ars == "|"){ars = "";}
                document.Form1.multiareas.value = ars;              
                document.Form1.multitypes.value = ptps;
}
