function repl_filename() {
var myurl = self.location;
if (myurl == 'http://www.eastbrunswickinfo.com/links/') {
   document.getElementById('container').innerHTML = '';
};
var fname = location.search.substring(1) ? unescape(location.search.substring(1)):'http://www.eastbrunswickinfo.com';
if ((fname.substr(0,32) != 'http://www.eastbrunswickinfo.com') &&
    (fname.substr(0,32) != 'http://karenruffner.msx.mlxchang') &&
    (fname.substr(0,28) != 'http://kruffner.remax-nj.com'))
{
fname = 'http://www.eastbrunswickinfo.com';
}
if (myurl == 'http://www.eastbrunswickinfo.com/index.html')  {
top.location.href = 'http://www.eastbrunswickinfo.com'; 
};
if ((fname == 'cat=11') || (fname == 'p=77')) {fname = 'http://www.eastbrunswickinfo.com/news.html';};
if ((fname != 'http://www.eastbrunswickinfo.com') && (fname != 'p=77') && (fname != 'cat=11') && (fname.substr(0,7) != "preview")){
document.getElementById('main-col').innerHTML = '<br/><IFRAME id="eb_frame"  src="'+fname+'" width="99%" height="3000" scrollbar=auto name="MainFrame" onload="Func1();"></IFRAME> ';
} else {
//New code to force all pages into the blog iframe.
if (self.location != top.location)
top.location.href = 'http://www.eastbrunswickinfo.com'; 
}
};

function Func1()
{
try {
window.frames[0].document.getElementById('motto').style.display="none";
window.frames[0].document.getElementById('banner').style.display="none";
window.frames[0].document.getElementById('navigation').style.display="none";
window.frames[0].document.getElementById('sitemap').style.display="none";
}
catch(err)
  {
  var txt;
  txt="There was an error on this page.\n\n";
  }
};
//setTimeout("Func1()", 300);
//container
//post-20
function validateForm2() {

if (document.MYSUB.email.value == '') {alert('Please enter an email address')}
else
{

if (document.MYSUB.First_Name.value == '') {alert('Please enter your first and last name')}
else
{

if (document.MYSUB.Last_Name.value == '') {alert('Please enter your first and last name')}
else
{
if (document.MYSUB.Address.value == '') {alert('Address is required for a Market Comparison')}
else
{
if (document.MYSUB.Zip.value == '') {alert('Zip Code is required for a Market Comparison')}
else
{
{document.MYSUB.realname.value = document.MYSUB.First_Name.value+" "+document.MYSUB.Last_Name.value;document.MYSUB.submit();};
}}}}}
};
function create_csv() {
   var today = new Date();
   var year = today.getYear();
   var month = GetMonth(today.getMonth());
   var day = GetDay(today.getDate());

document.MYSUB.CSV.value = '"'+document.MYSUB.First_Name.value+'","'+document.MYSUB.Last_Name.value+'","';
document.MYSUB.CSV.value += document.MYSUB.email.value+'","'+document.MYSUB.Phone_Number.value+'","'+year+'-'+month+'-'+day;
document.MYSUB.CSV.value += '-Seller-'+document.MYSUB.Property_Type.value+document.MYSUB.Number_of_Bedrooms.value+document.MYSUB.Number_of_Bathrooms.value;
document.MYSUB.CSV.value += document.MYSUB.Garage.value+document.MYSUB.Pool.value+' CMT:'+document.MYSUB.Comments.value+'","';
document.MYSUB.CSV.value += document.MYSUB.Address.value+'","'+document.MYSUB.City.value+'","';
document.MYSUB.CSV.value += document.MYSUB.State.value+'","'+document.MYSUB.Zip.value+'","';
document.MYSUB.CSV.value += document.MYSUB.Number_of_Bedrooms.value+'","'+document.MYSUB.Number_of_Bathrooms.value+'",""';
}

