
// www.BusinessSellCanada.com/sale/bsc_fspg.js //

defaultStatus=" - - -  Buy a Profitable Canadian Business For Sale  - - -";
window.status="<<< Buy a Profitable Canadian Business For Sale >>>";

function RestStat() { window.status=''; return true; }

logoonn = new Image(460, 208);
logoonn.src = "/images/bscfsc_w.jpg";
logooff = new Image(460, 208);
logooff.src = "/images/bscfsc_g.jpg";

function logo_onn()  {
  document.images["logo"].src = logoonn.src;
}
function logo_off()  {
  document.images["logo"].src = logooff.src;
}

bsconn = new Image(546, 89);  // == OBSOLETE ROUTINE == //
bsconn.src = "/images/bsc_ul.gif";
bscoff = new Image(546, 89);
bscoff.src = "/images/bsc.gif";
function img_onn(imgName)  {
 document.images[imgName].src = eval(imgName + "onn.src");
}
function img_off(imgName)  {
 document.images[imgName].src = eval(imgName + "off.src");
}

function nospamxsi(nom, dom, extn, subj) {
 document.write('<a href="mailto:'+nom+'&#064;'+dom+'.'+extn+
 '?Subject='+subj+'" TITLE="Click HERE to send an e-mail to the Seller.">');
}

function printit() {
 if (window.print != null) {
  window.print();
 }
 else {
  alert('Your browser does not support this feature. Please select -Print- from the -File- menu.');
 }
}

// Original Script by Trånn: http://come.to/tronds
// Visit http://javascriptkit.com for original script

var msg = "Hi - I was visiting the http://www.BusinessSellCanada.com website and thought that you might want to take a look at this great business that they have listed For Sale there: ";
var url = window.location;

function checkEmailAddress(field) {
 var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
 var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
 var goodEmail = !r1.test(field.value) && r2.test(field.value);

 if (goodEmail) {
  return true;
 }
 alert('Please enter a valid e-mail address.');
 field.focus();
 field.select();
 false;
}

function mailThisUrl() {
 if (checkEmailAddress(document.eMailer.email)) {
  window.location = "mailto:"+document.eMailer.email.value+"?subject="+escape(document.title)+"&body="+msg+url;
 }
}


