
function openIFrame(winURL){
closeallmenus();
//frames['MainFrame'].location.href=winURL;
//location.href=winURL;
//var loaded = document.onLoad;
var dlfeat =  'personalbar=no,toolbar=no,statusbar=no,menubar=no,height=600,resizable=yes,scrollbars=yes';
var aaa = 'temp1';
var newWin = window.open(winURL,aaa,dlfeat);
newWin.focus();
};

function openPop_up(winURL){
closeallmenus();
var dlfeat =  'personalbar=no,toolbar=no,statusbar=no,menubar=no,width=800,height=600,resizable=yes,scrollbars=yes';
var aaa = 'temp1';
var newWin = window.open(winURL,aaa,dlfeat);
newWin.focus();
};

function launch_compform(){
var dlfeat =  'personalbar=no,toolbar=no,statusbar=no,menubar=no,width=750,height=600,resizable=yes,scrollbars=yes';
var aaa = 'temp1';
//var newWin = window.open('Compform.html',aaa, dlfeat);
window.location.href = "Compform.html"
//newWin.focus();
};
function launch_buyform(){
var dlfeat =  'personalbar=no,toolbar=no,statusbar=no,menubar=no,width=750,height=600,resizable=yes,scrollbars=yes';
var aaa = 'temp1';
//var newWin = window.open('buyersform.html',aaa, dlfeat);
window.location.href = "buyersform.html"
//newWin.focus();
};





function validateCompForm(form) {

if (MYSUB.Email_Address.value == '') {alert('Please enter an email address')}
else
{
if (MYSUB.First_Name.value == '') {alert('Please enter your first and last name')}
else
{
if (MYSUB.Last_Name.value == '') {alert('Please enter your first and last name')}
else
if (MYSUB.First_Name.value == MYSUB.Last_Name.value) {alert('Please enter your first and last name')}
else
if (MYSUB.Address.value == '') {alert('Address is required for a Market Comparison')}
else
{
if (MYSUB.Zip.value == '') {alert('Zip Code is required for a Market Comparison')}
else
{
{document.MYSUB.submit();};
}}}}
};

function validateForm2(form) {
alert('in validate Form2');
alert(MYSUB.email.value);
if (MYSUB.email.value == '') {alert('Please enter an email address')}
else
{

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

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


function validateForm(form) {

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

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

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