//North Carolina Business Brokers - ENLIGN Business Brokers javascript//

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window_handler = window.open(theURL,winName,features);
  window_handler.focus();
}

function rndq() {
var howMany = 22;  // max number of items listed below
var test = new Array(howMany+1);

test[0]='&quot;ENLIGN was excellent. The broker always did what he said he was going to do.&quot;<BR><br style="line-height:5px"><i><b>Robert Ward (a buyer)<BR>336-906-4192</i></b>';

test[1]='<img border="0" src="images/p_diogenes.jpg" width="41" height="55" align="left">&quot;It was like having a guardian angel with business broker experience working for me. - Thanks!&quot;<BR><br style="line-height:5px"><i><b>Diogenes Ruiz (a seller)<BR>919-484-0225</i></b>';

test[2]='<img border="0" src="images/JoSmith.jpg" width="41" height="55" align="left">&quot;If you don\'t want to sell your business - don\'t call ENLIGN!&quot;<BR><br style="line-height:5px"><i><b>Jo Smith (a colleague)<BR>919-302-4493</i></b>';

test[3]='&quot;ENLIGN was excellent. The broker always did what he said he was going to do.&quot;<BR><br style="line-height:5px"><i><b>Robert Ward (a buyer)<BR>336-906-4192</i></b>';

test[4]='<img border="0" src="images/p_kcomer.jpg" width="41" height="55" align="left">&quot;From the initial contact, I recognized the personalized service ENLIGN provided and that integrity would be clearly represented.&quot;<BR><i><b>Ken Comer (Seller) - 919-846-5740</i></b>';

test[5]='&quot;ENLIGN represented the business we wanted to buy and did an excellent job working with both parties.&quot;<br><br style="line-height:5px"><b><i>Eran Salu, SG Capital<br></i>(310) 909-8999</b>';

test[6]='<img border="0" src="images/AngelaBaylis.jpg" width="41" height="55" align="left">&quot;ENLIGN helped me sell my practice at the highest value in the shortest amount of time.&quot;<br><br style="line-height:5px"><b><i>Dr. Angela Baylis (Seller Client)<br></i>(919) 861-8944</b>';

test[7]='&quot;ENLIGN was excellent in every respect - first class - definitely recommended.&quot;<br><br style="line-height:5px"><b><i>Alan and Kristi Harris (Seller Clients)<br></i>(843) 696-0192</b>';


test[8]='<img border="0" src="images/p_johnoconnor.jpg" width="41" height="55" align="left">&quot;My association with ENLIGN has resulted in excellent advise for many of my business, personal and entrepreneurial clients.&quot;<br><i><b>John O\'Connor (a colleague) <br>(919) 787-2400<br></b></i>';

test[9]='<img border="0" src="images/p_garydavis.jpg" width="41" height="55" align="left">&quot;Jeff has created an identity in the local business community as the &quot;go to guy&quot;. I would recommend anyone thinking of selling their business should talk to Jeff.&quot;<br><i><b>Gary Davis (a colleague) <br>(919) 696-5565<br></b></i>';

test[10]='<img border="0" src="images/adv_janis_pettit.jpg" width="41" height="55" align="left">&quot;Jeff Snell is the most professional and knowledgeable business broker I have encountered in my 20 years as a business owner and my past experience with buying and selling businesses.&quot;<br><i><b>Janis Pettit (Client Advisory Board)<BR>(919) 562-2280<br></b></i>';

test[11]='<img border="0" src="images/p_CarolynRhinebarger.jpg" width="41" height="55" align="left">&quot;ENLIGN Business Brokers are highly informed on all aspects of negotiating the successful sale or purchase of a business.&quot;<br><i><b>Carolyn Rhinebarger (a colleague) <br>(919) 461-0551<br></b></i>';

test[12]='<img border="0" src="images/p_martyclarke.jpg" width="41" height="55" align="left">&quot;The ENLIGN team is that rare combination of highly skilled subject matter experts who understand the human side of the transactions they facilitate.&quot;<br><i><b>Marty Clarke (a colleague) <br>(919) 518-0566<br></b></i>';

test[13]='<img border="0" src="images/p_JWhite.jpg" width="41" height="55" align="left">&quot;The ability to communicate, intelligence, self-confidence, and having a vision are part of what Jeff Snell brings to his business, ENLIGN Business Brokers.&quot;<br><i><b>Jeff White (a colleague) <br>(919) 806-8845<br></b></i>';

test[14]='<img border="0" src="images/p_oieosterkamp.jpg" width="41" height="55" align="left">&quot;What separates Jeff Snell from a lot of other smart people, however, is his ability to communicate his knowledge in a way that is helpful, yet not intimidating. &quot;<br><i><b>Oie Osterkamp (a buyer client) <br>(919) 210-0600<br></b></i>';

test[15]='<img border="0" src="images/p_johnoconnor.jpg" width="41" height="55" align="left">&quot;I have worked closely with Jeff Snell on my business and business interests. His devotion and commitments to his friends and clients are second to none.&quot;<br><i><b>John O\'Connor (a colleague) <br>(919) 787-2400<br></b></i>';

test[16]='<img border="0" src="images/p_carriemitchell.jpg" width="41" height="55" align="left">&quot;I had ENLIGN value ASAP Office Supply and was immediately impressed with how professional and thorough they were.&quot;<br><i><b>Carrie Mitchell (Business Valuation Client) <br>(919) 630-0809<br></b></i>';

test[17]='<img border="0" src="images/p_bobliddle.jpg" width="41" height="55" align="left">&quot;I have personally recommended ENLIGN in the transaction regarding the sale of a business. ENLIGN was extremely professional and helpful in all aspects.&quot;<br><i><b>Bob Liddle (a colleague) <br>(919) 961-3132<br></b></i>';

test[18]='&quot;During the entire process of buying the company I interfaced with ENLIGN and their experience and skill were paramount in making the deal happen.&quot;<br><i><b>Eran Salu (buyer client) <br>(919) 256-7890<br></b></i>';

test[19]='<img border="0" src="images/p_johnoconnor.jpg" width="41" height="55" align="left">&quot;My association with ENLIGN has resulted in excellent advise for many of my business, personal and entrepreneurial clients&quot;<br><i><b>John O\'Connor (a colleague)<br>(919) 787-2400<br></b></i>';

test[20]='<img border="0" src="images/p_CarolynRhinebarger.jpg" width="41" height="55" align="left">&quot;As a business owner, it is critical to rely on this wealth of knowledge as they guide you to success as a buyer or a seller.&quot;<br><i><b>Carolyn Rhinebarger (a colleague) <br>(919) 461-0551<br></b></i>';

test[21]='<img border="0" src="images/p_garydavis.jpg" width="41" height="55" align="left">&quot;If you could have only three friends they should be Jeff Snell, Jeff Snell and Jeff Snell.&quot;<br><i><b>Gary Davis (business partner)<BR>(919) 696-5565<br></b></i>';


function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > (howMany-1) || isNaN(randscript)){
	randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}

quo = rndnumber();
quox = test[quo];
//document.write('<font color="#ffffff">');
document.write(quox);
//document.write('</font>');
}

function footer2() {

document.write(' <a href="http://enlign.com/index.html" class="gray" title="Home">Home</a>  ');
document.write('  | <a href="http://enlign.com/services.html" class="gray" title="Services">Services</a> | <a href="http://listings.enlign.com/listings.aspx" class="gray" title="Listings">Listings</a>  ');
document.write('  | <a href="http://enlign.com/news_center.html" class="gray" title="Media Center">Media Center</a>  ');
document.write('  | <a href="http://enlign.com/wp/client-advisory/" class="gray" title="Partners">Partners</a> | <a href="http://enlign.com/wp/contact/" class="gray" title="Contact">Contact</a>  ');
document.write('  | <a href="http://enlign.com/forms.html" class="gray" title="Forms">Forms</a><BR><BR style="line-height:5px"> ');
document.write(' <a href="http://enlign.com/legal.html" class="gray" title="Legal">Legal</a>  | <a href="http://enlign.com/North_Carolina_NC_Cities_Served_by_ENLIGN_Business_Brokers.html" class="gray" title="Cities Served">Cities Served</a>');
document.write('  | <a href="http://enlign.com/sitemap.html" class="gray" title="Sitemap">Sitemap</a><BR><BR> ');

}

function footer() {

footer2();
            
document.write(' <div><center> ');
document.write(' <a href="http://enlign.com/jump.php?to=http://www.acg.org/" target="_blank" rel="nofollow" ><img border="0" src="http://enlign.com/images/logo-acg.gif" width="56" height="36" alt="ACG"></a> &nbsp;  ');
document.write(' <a href="http://enlign.com/jump.php?to=http://www.ibba.org/" target="_blank" rel="nofollow" ><img border="0" src="http://enlign.com/images/logo-ibba.gif" width="99" height="36" alt="IBBA" style="padding-top:7px"></a> &nbsp;  ');
document.write(' <a href="http://enlign.com/jump.php?to=http://www.masource.org/" target="_blank" rel="nofollow" ><img border="0" src="http://enlign.com/images/logo-masource.gif" width="66" height="36" alt="M&amp;A Source"></a> &nbsp;  ');
document.write(' <a href="http://enlign.com/jump.php?to=http://www.americanbusinessbrokers.org/" target="_blank" rel="nofollow" ><img border="0" src="http://enlign.com/images/logo-abba.gif" width="72" height="36" alt="American Business Brokers"></a> &nbsp; ');
document.write(' </center></div> ');


var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

document.write('<scr'+'ipt type="text/javas'+'cript">');
document.write('try { var pageTracker = _gat._getTracker("UA-656380-1"); pageTracker._trackPageview(); } ');
document.write('catch(err) {}');
document.write('</scr'+'ipt>');
}

function copy() {

document.write(' <center><b>ENLIGN Business Brokers</b><BR>2009 Caminos Street, Raleigh, NC 27607<BR>(919) 341-1100<BR><BR>  ');
document.write(' 2003-2010 &copy; ENLIGN<br>All rights reserved.<br><BR>');
document.write(' <img border="0" src="images/QB_09-ProAdvisor.jpg" alt="QuickBooks Certifies ProAdvisor" width="64" height="100"></center> ');

}

function news() {

document.write(' <b>12.10.2009</b><br>');
document.write(' <a href="http://enlign.com/wp/press" class="green" title="Michael Fekkes Awarded Certified Business Intermediary [CBI] Designation">Michael Fekkes Awarded Certified Business Intermediary [CBI] Designation</a><br>');
document.write(' Another ENLIGN Business Broker Awarded Certified Business Intermediary Designation<br><br>');

document.write(' <b>08.18.2009</b><br> ');
document.write(' <a href="http://enlign.com/wp/press" class="green" title="ENLIGN Business Brokers Retained By Carolina Carriage">ENLIGN Business Brokers Retained By Carolina Carriage</a><br> ');
document.write(' Local Business Brokerage Signs Golf Cart Dealership in Pinehurst, North Carolina<br><BR> ');

document.write(' <b>07.14.2009</b><br> ');
document.write(' <a href="http://enlign.com/wp/press" class="green" title="ENLIGN Business Brokers acted as the business intermediary in the sale of Wylie?s Golf Carts">ENLIGN Business Brokers acted as the business ');
document.write(' intermediary in the sale of Wylie?s Golf Carts</a><br> ');
document.write(' ENLIGN Business Brokers has acted as the business intermediary in the sale of Wylie?s Golf Carts on 15-501 in Pinehurst, NC.<br><BR>');

document.write(' <b>06.09.2009</b><br> ');
document.write(' <a href="http://enlign.com/wp/press" class="green" title="ENLIGN Represents Wylie?s Golf Carts in Sale of Business">ENLIGN Represents Wylie?s Golf Carts in Sale of Business</a><br> ');
document.write(' ENLIGN Business Brokers acted as the business intermediary in the sale of Wylie?s Golf Carts on 15-501 in Pinehurst, NC.<br><BR>');

document.write(' <img src="images/spacer.gif" width="1" height="25"><br> ');

}

function why_us() {

document.write(' <strong class="big">Why People Choose Us</strong><br><br style="line-height:12px"> ');

document.write(' <img src="http://enlign.com/images/Confidential.jpg" id="img0" align="left" width="73" height="73" style="margin-right:5px"> ');
document.write(' <strong>Confidentiality</strong><br><br style="line-height:5px"> ');
document.write(' <span class="inner-text">Every ENLIGN Broker understands that confidentiality is the #1 concern among business sellers.<br style="line-height:20px"><BR></span> ');

document.write(' <img src="http://enlign.com/images/1im1.jpg" id="img1" align="left" width="73" height="73" style="margin-right:5px"> ');
document.write(' <strong>Certification</strong><br><br style="line-height:5px"> ');
document.write(' <span class="inner-text">All ENLIGN Brokers are Certified by the IBBA, ABBA and/or M&A Source.<br style="line-height:20px"><BR></span>');

document.write(' <img src="http://enlign.com/images/1im2.jpg" id="img2" align="left" width="73" height="73" style="margin-right:5px"> ');
document.write(' <strong>Experience</strong><br><br style="line-height:5px"> ');
document.write(' <span class="inner-text">All ENLIGN Business Brokers have owned and operated their own businesses - just like you.<br style="line-height:20px"><BR></span>');

document.write(' <img src="http://enlign.com/images/1im3.jpg" id="img3" align="left" width="73" height="73" style="margin-right:5px"> ');
document.write(' <strong>Results</strong><br><br style="line-height:5px"> ');
document.write(' <span class="inner-text">We deliver the <i>highest market value</i> in the <i>shortest amount of time</i>&trade;, with complete confidentiality.<br><BR></span>');

document.write(' <img src="http://enlign.com/images/1im4.jpg" id="img4" align="left" width="73" height="73" style="margin-right:10px">');
document.write(' <strong class="big">Local</strong><br><br style="line-height:5px">');
document.write(' <span class="inner-text">ENLIGN Brokers all live and work in the communities we serve.  <br></span>');
}

/* adf - added social media links funciton for easy re-use*/
function social_links() {	
	document.write(' <div id="inner_left">');
	document.write(' <strong class="big" style="margin-bottom: 14px;">Follow Us</strong><br><br>');
	document.write(' <div align="center">');
	document.write(' <a href="http://maps.google.com/maps/place?q=enlign+business+brokers&hl=en&cid=15643603971054083810" target="_blank"><img width="32" class="social-sidebar-icon" src="images/GoogleMaps.png" /></a>');
	document.write(' <a href="http://www.linkedin.com/company/enlign-business-brokers" target="_blank"><img class="social-sidebar-icon" src="images/linkedin_32.png" /></a>');
	document.write(' <a href="http://twitter.com/enlign" target="_blank"><img class="social-sidebar-icon" src="images/twitter_32.png" /></a>');
	document.write(' <a href="http://www.facebook.com/ENLIGN.INC" target="_blank"><img class="social-sidebar-icon" src="images/facebook_32.png" /></a>');
	document.write(' <a href="http://local.yahoo.com/info-72546275-enlign-business-brokers-raleigh" target="_blank"><img class="social-sidebar-icon" width="32" src="images/YahooLocal.png" /></a>');
	document.write(' <a href="http://www.youtube.com/user/ENLIGN" target="_blank"><img class="social-sidebar-icon" src="images/YouTube_32.png" /></a>');
	document.write(' <a href="http://www.yelp.com/biz/enlign-business-brokers-raleigh" target="_blank"><img class="social-sidebar-icon" src="images/Yelp.png" /></a>');
	document.write(' <a href="http://foursquare.com/venue/5969897" target="_blank"><img class="social-sidebar-icon" src="images/FourSquare.png" /></a>');
	document.write(' <a href="http://www.merchantcircle.com/business/ENLIGN.Business.Brokers.919-341-1100" target="_blank"><img class="social-sidebar-icon" src="images/MerchantCircle.png" /></a>');
	document.write(' <a href="http://www.bebo.com/enlign" target="_blank"><img class="social-sidebar-icon" src="images/Bebo.png" /></a>');
	document.write(' </div>');
	document.write(' </div>');
}

/* adf - added main nav menu links funciton for easy re-use*/
function Main_menu() {	
	document.write(' <div id="nav">');
	document.write(' 		<div class="nav-frame">');
	document.write('          <a href="index.html" title="Home">HOME</a></span> <img class="nav-sep" src="images/b_sep.gif" >');
	document.write('          <a href="services.html" title="Services"></span>SERVICES</a> <img class="nav-sep" src="images/b_sep.gif">');
 	document.write('          <a href="http://listings.enlign.com/listings.aspx" title="Listings">LISTINGS</a> <img class="nav-sep" src="images/b_sep.gif">');
 	document.write('          <a href="news_center.html" title="Media Center">NEWS</a> <img class="nav-sep" src="images/b_sep.gif">');
 	document.write('          <a href="/wp/client-advisory/" title="Partners">PARTNERS</a> <img class="nav-sep" src="images/b_sep.gif">');
   document.write('          <a href="social_networking.html" title="Forms">SOCIAL MEDIA</a> <img class="nav-sep" src="images/b_sep.gif">');
   document.write('          <a href="http://enlign.com/wp/contact/" title="Contact">CONTACT</a>');
 	document.write('    </div>');
	document.write(' </div>');
}

function Main_menu_Listings() {	
	document.write(' <div id="nav">');
	document.write(' 		<div class="nav-frame">');
	document.write('          <a href="http://enlign.com/index.html" title="Home">HOME</a></span> <img class="nav-sep" src="http://enlign.com/images/b_sep.gif" >');
	document.write('          <a href="http://enlign.com/services.html" title="Services"></span>SERVICES</a> <img class="nav-sep" src="http://enlign.com/images/b_sep.gif">');
 	document.write('          <a href="http://listings.enlign.com/listings.aspx" title="Listings">LISTINGS</a> <img class="nav-sep" src="http://enlign.com/images/b_sep.gif">');
 	document.write('          <a href="http://enlign.com/news_center.html" title="Media Center">NEWS</a> <img class="nav-sep" src="http://enlign.com/images/b_sep.gif">');
 	document.write('          <a href="http://enlign.com/wp/client-advisory/" title="Partners">PARTNERS</a> <img class="nav-sep" src="http://enlign.com/images/b_sep.gif">');
   document.write('          <a href="http://enlign.com/social_networking.html" title="Forms">SOCIAL MEDIA</a> <img class="nav-sep" src="http://enlign.com/images/b_sep.gif">');
   document.write('          <a href="http://enlign.com/wp/contact/" title="Contact">CONTACT</a>');
 	document.write('    </div>');
	document.write(' </div>');
}

/* adf - added main nav menu links funciton for easy re-use*/
function Sub_menu_Services() {	
	document.write(' <div id="subnav">');
	document.write(' 	<div class="subnav-frame">');
	document.write(' 		<a href="seller_services.html" title="Seller Services">Seller Services</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="business_valuation_services.html" title="Business Valuation">Business Valuation</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="merger_acquisition_services.html" title="Mergers & Acquisitions" >Mergers & Acquisitions</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="code_ethics.html" title="ENLIGN Code of Ethics">ENLIGN Code of Ethics</a>');
	document.write(' 	</div>');
	document.write(' </div>');
	document.write(' <BR>');
}

/* adf - added main nav menu links funciton for easy re-use*/
function Sub_menu_News() {	
	document.write(' <div id="subnav">');
	document.write(' 	<div class="subnav-frame">');
	document.write(' 		<a href="http://enlign.com/wp/press" title="Press">Press</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="http://www.enlign.biz/blog/" title="Blog">Blog</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="/wp/free-reports/" title="Reports">Reports</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="podcast.html" title="Podcast">Podcast</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="videos.html" title="Videos">Videos</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="newsletter.html" title="Newsletter">Newsletter</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="articles.html" title="Magazines">Magazines</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="http://enlign.com/wp/testimonials/" title="Testimonials">Testimonials</a>');
	document.write(' 	</div>');
	document.write(' </div>');
	document.write(' <BR>');
}

/* adf - added main nav menu links funciton for easy re-use*/
function Sub_menu_Partners() {	
	document.write(' <div id="subnav">');
	document.write(' 	<div class="subnav-frame">');	
	document.write(' 		<a title="Partners" href="/wp/partners/">Partners</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a href="/wp/client-advisory/" title="Client Advisory Board">Client Advisory Board</a>');
	document.write(' 	</div>');
	document.write(' </div>');
	document.write(' <BR>');
}

/* adf - added main nav menu links funciton for easy re-use*/
function Sub_menu_Contact() {	
	document.write(' <div id="subnav">');
	document.write(' 	<div class="subnav-frame">');	
	document.write(' 		<a title="Brokers" href="http://enlign.com/wp/contact/">Brokers</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a title="Firm" href="firm.html">Firm</a>');
	document.write(' 		<img class="nav-sep" src="images/b_sep.gif">');
	document.write(' 		<a title="Employment" href="employment.html">Employment</a>');
	document.write(' 	</div>');
	document.write(' </div>');
	document.write(' <br>');
}

function enlign_rep() {
document.write(' <option value="jsnell@enlign.com">Bill Drew, ABI</option> ');
document.write(' <option value="bwatson@enlign.com">Bob Watson, CBI</option> ');
document.write(' <option value="dhardwick@enlign.com">Danny Hardwick</option> ');
document.write(' <option value="djackson@enlign.com">David Jackson, CBI</option> ');
document.write(' <option value="mfekkes@enlign.com">Michael Fekkes</option> ');
document.write(' <option value="bdre@enlign.com">Bill Drew, ABI</option> ');
document.write(' <option value="jroth@enlign.com">Jacqueline Roth</option> ');
document.write(' <option value="pbaker@enlign.com">Patrick Baker</option> ');
document.write(' <option value="crussitano@enlign.com">Charles (Chuck) Russitano, CPA</option> ');
document.write(' <option value="ramos@enlign.com">Robert Amos</option> ');
document.write(' <option value="jswigartl@enlign.com">Jim Swigart, MBA</option> ');
document.write(' <option value="cmilam@enlign.com">Charles Milam</option> ');
document.write(' <option value="canderson@enlign.com">Claudette Anderson</option> ');
document.write(' <option value="emcclenny@enlign.com">Erica McClenny</option> ');
}
/// ** form functions ** ///

function validateLogin(form) {
	if(isblank(document.forms[form].email.value)) {
		alert ("Please enter your email address");
		document.forms[form].email.focus();
		return false;
	} else {
		if(!email(document.forms[form].email)) {
			alert("Please enter your Email Address in correct format");
			document.forms[form].email.focus();
			return false;
		}	
	}
	if(isblank(document.forms[form].password.value)) {
		alert ("Please enter password");
		document.forms[form].password.focus();
		return false;
	}		
	document.forms[form].submit();
}

function validateSubscribe(form) {

	if((isblank(document.forms[form].name.value)) || (document.forms[form].name.value == "enter your name")) {
		alert ("Please enter Your Name");
		document.forms[form].name.focus();
		return false;
	}			
	if((isblank(document.forms[form].email.value))  || (document.forms[form].email.value == "enter your email")){
		alert ("Please enter your email address")	;
		document.forms[form].email.focus();
		return false;
	} else {
		if(!email(document.forms[form].email)) {
			alert("Please enter your Email Address in correct format");
			document.forms[form].email.focus();
			return false;
		}	
	}
	document.forms[form].submit();
}

function loginBox() {
document.write('<form action="loginDealTrax.php" method="post" name="loginForm" id="loginForm" rel="nofollow" >');
document.write('<div style="margin-left:0px "><strong>Client</strong><strong class="big"> Login</strong><br>');
document.write('<br style="line-height:9px">');
document.write('<input type="text" class="form" value="enter your email" size="20" name="email" onfocus="jav'+'ascr'+'ipt: if(this.value==\'enter your email\') this.value = \'\';"><br>');
document.write('<br style="line-height:3px">');
document.write('<input type="password" value="********" class="form" size="20" name="password" onfocus="jav'+'ascr'+'ipt: if(this.value==\'********\') this.value = \'\';"><br>');
document.write('<br style="line-height:3px">');
document.write('<select name="log_type" class="form_pass" id="log_type" >');
document.write('<option value="1" selected>Buyer</option>');
document.write('<option value="2" >Seller</option>');
document.write('</select><img src="images/spacer.gif" width="4" height="1"><input name="enter" type="image" src="images/enter.jpg" align="absmiddle" width="55" height="21" ');
document.write('onClick="return validateLogin(\'loginForm\')" title="Enter"></div></form>');
document.write('<span class="big"><a class="big" id="a" href="registration.html" rel="nofollow" >register</a></span><br>');
}

function subscribeBox() {
document.write('<form name="mailform" id="mailform" method="post" action="/subscribe.php" style="margin:0" target="_parent">');
document.write('<input type="hidden" name="account" value="2"><strong class="big">Subscribe</strong><br>');
document.write('<br style="line-height:9px"><div><input type="text" class="formSub" value="enter your name" size="20" name="name" ');
document.write('onfocus="jav'+'ascr'+'ipt: if(this.value==\'enter your name\') this.value = \'\';"></div>');
document.write('<br style="line-height:5px"><span><input type="text" class="formSub" value="enter your email" size="20" name="email" ');
document.write('onfocus="jav'+'ascr'+'ipt: if(this.value==\'enter your email\') this.value = \'\';" style="margin-bottom:3px"></span>');
document.write('<span><input name="enter" type="image" src="images/arrow.gif" width="20" height="20" onClick="return validateSubscribe(\'mailform\')" title="Enter"></span></form>');
}

