window.name = "LA";
function openwin() 
  {
    window.open('articeldetails.html','adetail','top=25,left=225,height=470,width=450,toolbar=no,scrollbars=yes,') 
  }
function signupnow()
  {
    window.open('articeldetails.html','adetail','top=80,left=225,height=400,width=408,toolbar=no,scrollbars=yes') 
  }
function crsignupnow()
  {
    window.open('crarticeldetails.html','adetail','top=80,left=225,height=400,width=408,toolbar=no,scrollbars=yes') 
  } 
function tourg()
{
	open('tourguarantee.html', menubar='no', 'left=100, top=20,width=345, height=199', resizable='no');
}
function tourgc()
{
	open('../tourguarantee.html', menubar='no', 'left=100, top=20,width=345, height=199', resizable='no');
}
function tourres()
{
	open('tourresume.html', menubar='no', 'left=100, top=20,width=345, height=285', resizable='no');
}
function writers()
{
	open('ourwriters.html', menubar='no', 'left=100, top=20, width=375, height=355', resizable='no');
}
function summers()
{
	open('summerassociatepop.html', menubar='no', 'left=100, top=20, width=575, height=725, scrollbars=yes', resizable='no');
}
function bbb()
{
	open('bbb.html', menubar='no', 'left=100, top=20, width=491, height=580', resizable='no');
}
function faqint()
{
	open('../wwd/faqinteriorpop.html', menubar='no', 'left=100, top=20, width=500, height=250', resizable='no');
}
function sitemap()
{
	 window.open('site_map.html','sitemap','top=80,left=225,height=500,width=380,toolbar=no,scrollbars=yes') 
} 
function tour(page)
{
	OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=345,height=325,top=80,left=225");
}
function pri(page)
{
	OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=420,height=400,top=80,left=100");
}
function qt(url)
{
	open(url+'quicktour/qt1.php', menubar='no', 'left=100, top=20,width=650, height=650, scrollbars=yes', resizable='no');
}
function mbg()
{
	open('guarantee_popup.html', menubar='no', 'left=100, top=20, width=590, height=490', resizable='no');
}
function mbgd(url)
{
	open(url+'guarantee_popup.php', menubar='no', 'left=100, top=20, width=650, height=750', resizable='no');
}
//added by mhshah for left side navigation
function qt1()
{
	open('../qt1.html', menubar='no', 'left=100, top=20,width=567, height=480', resizable='no');
}

//Quick Tour image swap code
function Swapon(x,y)
{	
	if( compat ) 
	{ 
	document.images[x].src = eval(y+".src"); 
	}
}
function Swapout(x,y)
{	
	if( compat ) 
	{ 
	document.images[x].src = eval(y+".src"); 
	}
}
//quick Tour Image swap code ends



//Link Rollover starts here
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//link rollover ends here


//pre load images scrip starts here
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
//Enter path of images to be preloaded inside parenthesis. Extend list as desired.
preloadimages("images/abouttma.gif","images/whatwedoa.gif","images/provenrslta.gif","images/pricinga.gif")
//preload images scrip ends here

function footer(imgpath)
{
if (arguments.length==0)
	imgpath="";
	document.write ("<table cellpadding='0' cellspacing='0' Width='100%' border='0'>");
	document.write ("	<tr>");
	document.write ("		<td width='100%' colspan='2' align='center' height='40' valign='bottom'><a href='http://www.employmentscape.com' target='_new'><img src='"+imgpath+"images/logo_es.gif' width='200' height='20' border='0'></a></td>");
	document.write ("	</tr>");
	document.write ("	<tr>");
	document.write ("		<td width='2%'></td>");
	document.write ("		<td width='98%' height='40' align='center'>");
//	document.write ("		")
	document.write ("			<table cellpadding='0' cellspacing='0' border='0'>");
	document.write ("				<tr>");
	document.write ("					<td><img src='"+imgpath+"images/daily_quote_heart.gif' width='12' height='12' border='0'></td>");
	document.write ("					<td width='5'></td>");
	document.write ("					<td class='textbrown'><strong><script language='JavaScript' type='text/javascript'>jsquote();</script></strong></td>");
	document.write ("					<td width='5'></td>");
	document.write ("					<td><img src='"+imgpath+"images/daily_quote_heart.gif' width='12' height='12' border='0'></td>");
	document.write ("				</tr>");
	document.write ("			</table>");
	document.write ("		</td>");
	document.write ("	</tr>");
	document.write ("	<tr>");
	document.write ("		<td></td>");
	document.write ("		<td class='textpartnersite'><font color=#aac0d4><b>Our Company Sites:</strong> <a href='http://www.AccountingCrossing.com' target='_blank'>AccountingCrossing</a> | <a href='http://www.AdminCrossing.com' target='_blank'>AdminCrossing</a> | <a href='http://www.advertisingcrossing.com' target='_blank'>AdvertisingCrossing</a> | <a href='http://www.ArchitectureCrossing.com' target='_blank'>ArchitectureCrossing</a> | <a href='http://www.attorneyresearchgroup.com' target='_blank'>Attorney Research Group</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'> <a href='http://www.attorneyresume.com' target='_blank'>Attorney Resume</a> | <a href='http://www.bcgsearch.com' target='_blank'>BCG Attorney Search</a> | <a href='http://www.BioTechCrossing.com' target='_blank'>BiotechCrossing</a> | <a href='http://www.BlueCollarCrossing.com' target='_blank'>BlueCollarCrossing</a> | <a href='http://www.BusinessDevelopmentCrossing.com' target='_blank'>BusinessDevelopmentCrossing</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'> <a href='http://www.ComplianceCrossing.com' target='_blank'>ComplianceCrossing</a> | <a href='http://www.ConstructionCrossing.com' target='_blank'>ConstructionCrossing</a> | <a href='http://www.ConsultingCrossing.com' target='_blank'>ConsultingCrossing</a> | <a href='http://www.CustomerServiceCrossing.com' target='_blank'>CustomerServiceCrossing</a> | <a href='http://www.DesigningCrossing.com' target='_blank'>DesigningCrossing</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'> <a href='http://www.edfed.com' target='_blank'>EdFed</a> | <a href='http://www.EducationCrossing.com' target='_blank'>EducationCrossing</a> | <a href='http://www.EngineeringCrossing.com' target='_blank'>EngineeringCrossing</a> | <a href='http://www.graduateschoolloans.com' target='_blank'>Graduate School Loans</a> | <a href='http://www.hrcrossing.com' target='_blank'target='_blank'>HRCrossing</a> | <a href='http://www.HealthcareCrossing.com' target='_blank'>HealthcareCrossing</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'> <a href='http://www.HospitalityCrossing.com' target='_blank'>HospitalityCrossing</a> | <a href='http://www.hound.com' target='_blank'>Hound</a> | <a href='http://www.jd2b.com' target='_blank'>JD2B</a> | <a href='http://www.judged.com' target='_blank'>Judged</a> | <a href='http://www.lawfirmstaff.com' target='_blank'>Law Firm Staff</a> | <a href='http://www.lawschoolloanreport.org' target='_blank'>Law School Loan Report</a> | <a href='http://www.lawschoolloans.com' target='_blank'>Law School Loans</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'> <a href='http://www.lawcrossing.com' target='_blank'>LawCrossing</a> | <a href='http://www.ManagerCrossing.com' target='_blank'>ManagerCrossing</a> | <a href='http://www.ManufacturingCrossing.com' target='_blank'>ManufacturingCrossing</a> | <a href='http://www.marketingcrossing.com' target='_blank'>MarketingCrossing</a> | <a href='http://www.medicalschoolloans.com' target='_blank'>Medical School Loans</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'><a href='http://www.moneycrossing.com' target='_blank'>MoneyCrossing</a> | <a href='http://www.operationscrossing.com' target='_blank'>OperationsCrossing</a> | <a href='http://www.prcrossing.com' target='_blank'>PRCrossing</a> | <a href='http://www.PharmaceuticalCrossing.com' target='_blank'>PharmaceuticalCrossing</a> | <a href='http://www.projectmanagementcrossing.com' target='_blank'>ProjectManagementCrossing</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'><a href='http://www.resumeapple.com' target='_blank'>ResumeApple</a> | <a href='http://www.RetailCrossing.com' target='_blank'>RetailCrossing</a> | <a href='http://www.sapcrossing.com' target='_blank'>SAPCrossing</a> | <a href='http://www.sciencescrossing.com' target='_blank'>SciencesCrossing</a> | <a href='http://www.sellingcrossing.com' target='_blank'>SellingCrossing</a> | <a href='http://www.TechieCrossing.com' target='_blank'>TechieCrossing</a> | <br><img src='../images/blanker.gif' width='114' height='1' border='0'><a href='http://www.TransportationCrossing.com' target='_blank'>TransportationCrossing</a></td>");
	document.write ("	</tr>");
    document.write ("	<tr>");
	document.write ("		<td colspan='2' align='center' height='10'><img src='"+imgpath+"images/blanker.gif' width='1' height='1' border='0'></td>");
	document.write ("	</tr>");
	document.write ("</table>");
	document.write ("<table cellpadding='0' cellspacing='0' Width='100%' border='0'>");
	document.write ("	<tr>");
	document.write ("	<td width='15'></td>");
	document.write ("	<td class='textbrown'><br><br><em>*Legal Authority is America's largest and most popular job search service for attorneys and law students and its ads may be seen nationally in every major legal publication including American Lawyer, The National Law Journal, *The National Jurist, *L Magazine, *JD Jungle, Corporate Counsel Magazine, California Lawyer, Lawyers Weekly USA, Massachusetts Lawyers Weekly, Detroit Legal News, Michigan Lawyers Weekly, Missouri Lawyers Weekly, North Carolina Lawyers Weekly, Rhode Island Lawyers Weekly, South Carolina Lawyers Weekly, Virginia Lawyers Weekly, Atlantic Coast In-House, Midwest In-House, New England In-House, Los Angeles Daily Journal, San Francisco Daily Journal, The San Francisco Recorder, The Washington Legal Times, The Orange County Register, The Miami Business Journal, The Colorado Lawyer, Fultyn County Daily Report (Atlanta), The Chicago Daily Law Bulletin, The New York Law Journal, Texas Lawyer.</em></td>");
	document.write ("	<td width='10'></td>");
	document.write ("	</tr>");
	document.write ("	<tr>");
	document.write ("	<td width='15'></td>");
	document.write ("	<td></td>");
	document.write ("	<td height='30'></td>");
	document.write ("	</tr>");
	document.write ("	<table>");


/*document.write("<table width='100%' cellpadding='0' cellspacing='0' class='bgbluebox' border='1'>");
document.write("	<tr><td height='30' valign='bottom' align='center' colspan='2'><a href='http://employmentscape.com' target='_new'><img src='"+imgpath+"images/logo_es.gif' width='200' height='20' border='0'></a></td></tr>");
document.write("	<tr><td width='1'><img src='"+imgpath+"images/space.gif' width='1' height='1' border='1'></td><td class='textbrown' align='center'><strong>Partner Sites:</strong> <a href='http://juriscape.com' target='_new'>Juriscape</a> | <a href='http://lawcrossing.com' target='_new'>LawCrossing</a> |<a href='http://bcgsearch.com' target='_new'>BCG Attorney Search</a> | <a href='http://attorneyresume.com' target='_new'>Attorney Resume</a> | <a href='http://lawschoolloans.com' target='_new'>Law School Loans</a> | <a href='http://jd2b.com' target='_new'>JD2B</a> | General Counsel Consulting</td></tr>");
document.write("	<tr><td colspan='2'><img src='"+imgpath+"images/space.gif' width='1' height='18' border='0'></td></tr>");
document.write("</table>");*/
}

//To remove spaces before & after the string
function ValidatorTrim(s) 
{
    var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
    return (m == null) ? "" : m[1];
}

// Email Validation
function checkEmail(strng)
{
	var error = "";
	if (strng == "")
		{
		error = "You did not enter an email-address.\n";
		}
	var emailFilter=/^.+@.+\..{2,4}$/;
	if (!(emailFilter.test(strng))) 
		{ 
		error = "Please enter a valid email address.\n";
		}
	var illegalChars= "/[\(\)\<\>\,\;\:\\\/\"\[\]]/";
	if(strng.match(illegalChars))
		{
		error = "The email address contains illegal characters.\n";
		}
	return error;
}
function emailToColleague(title,filename,url)
{
	
	var strurl = url+'emailtocolleague.php';

	if(typeof(title)!="undefined")
		strurl = strurl + "?title="+escape(title);
  	if(typeof(url)!="undefined")
		strurl = strurl + "&articleid=" + escape(filename);
	window.open(strurl,'mailtocollegue','height=600,width=500,scrollbars=yes,toolbar=no,menubar=no,top=60,left=200');
}

function articlepath(filename)
{
	window.open (pdf_path+filename);
}
function shareyourstory()
{
	open('share-your-story.php', menubar='no', 'left=150, top=125,width=325, height=375', resizable='no');
}
function addcomment(url,articleid){
	window.open(url+'addcomments.php?articleid='+articleid,'ADD_ARTICLE_COMMENTS','height=600,width=525,scrollbars=yes,toolbar=no,menubar=no,top=60,left=200');
}
function viewcomment(url,articleid){
	window.open(url+'viewcomments.php?articleid='+articleid,'ADD_ARTICLE_COMMENTS','height=500,width=500,scrollbars=yes,toolbar=no,menubar=no,top=60,left=200');
}
/*Copy right and footer links*/

function copyright(){
	var imgpath="http://www.legalauthority.com/";
	document.write ("<table cellpadding='0' cellspacing='0' width='100%' border='0' class='bgbluebox'>");
	document.write ("	<tr>");
	document.write ("		<td width='1%'><img src='" + imgpath + "images/space.gif' width='1' height='1' border='0'></td>");
	document.write ("		<td width='34%' class='textbrown'>&copy; 2008 Legal Authority Inc. All rights reserved.</td>");
	document.write ("		<td width='16%' class='textbrown' align='center'><a href='" + imgpath +"about/index.html'><font color=#6C3100>About Legal Authority</font></td>");
	document.write ("		<td width='1%' align='center' valign='top'>");
	document.write ("			<table border='0' cellpadding='0' cellspacing='0' width='1'>");
	document.write ("				<tr>");
	document.write ("					<td width='1' background='" + imgpath + "images/dotbrownv.gif' height='18' valign='bottom'><img src='" + imgpath + "images/dotbrownv.gif' width='1' height='2' border='0'></td>");
	document.write ("				</tr>");
	document.write ("			</table>");
	document.write ("		</td>");
	document.write ("		<td width='3%' class='textbrown' align='center'><a href='" + imgpath + "wwd/faq.html'><font color='#6C3100'>FAQ</font></a></td>");
	document.write ("		<td width='1%' align='center' valign='top'>");
	document.write ("			<table border='0' cellpadding='0' cellspacing='0' width='1'>");
	document.write ("				<tr>");
	document.write ("					<td width='1' background='" + imgpath + "images/dotbrownv.gif' height='18' valign='bottom'><img src='" + imgpath + "images/dotbrownv.gif' width='1' height='2' border='0'></td>");
	document.write ("				</tr>");
	document.write ("			</table>");
	document.write ("		</td>");
	document.write ("		<td width='8%' class='textbrown'><a href='" + imgpath + "contact.html'><font color='#6C3100'>Contact Us</font></a></td>");
	document.write ("		<td width='1%' align='center' valign='top'>");
	document.write ("			<table border='0' cellpadding='0' cellspacing='0' width='1'>");
	document.write ("				<tr>");
	document.write ("					<td width='1' background='" + imgpath + "images/dotbrownv.gif' height='18' valign='bottom'><img src='" + imgpath +"images/dotbrownv.gif' width='1' height='2' border='0'></td>");
	document.write ("				</tr>");
	document.write ("			</table>");
	document.write ("		</td>");
	document.write ("		<td width='7%' class='textbrown' align='center'><a href='" + imgpath + "newsitemap.html'><font color=#6C3100>Site Map</font></a></td>");
	document.write ("		<td width='1%' align='center' valign='top'>");
	document.write ("			<table border='0' cellpadding='0' cellspacing='0' width='1'>");
	document.write ("				<tr>");
	document.write ("					<td width='1' background='" + imgpath + "images/dotbrownv.gif' height='18' valign='bottom'><img src='" + imgpath + "images/dotbrownv.gif' width='1' height='2' border='0'></td>");
	document.write ("				</tr>");
	document.write ("			</table>");
	document.write ("		</td>");
	document.write ("		<td width='16%' class='textbrown'><a href='" + imgpath + "about/tos.html'><font color='#6C3100'>Terms of Membership</font></a></td>");
	document.write ("		<td width='1%' align='center' valign='top'>");
	document.write ("			<table border='0' cellpadding='0' cellspacing='0' width='1'>");
	document.write ("				<tr>");
	document.write ("					<td width='1' background='" + imgpath + "images/dotbrownv.gif' height='18' valign='bottom'><img src='" + imgpath + "images/dotbrownv.gif' width='1' height='2' border='0'></td>");
	document.write ("				</tr>");
	document.write ("			</table>");
	document.write ("		</td>");
	document.write ("		<td width='14%' class='textbrown'><a href='" +imgpath + "privacy.html'><font color='#6C3100'>Privacy Policy</font></a></td>");
	document.write ("	</tr>");
	document.write ("</table>");
}

// flash banners
function homeflash(path)
{
	document.write('<object data="'+path+'home.swf" type="application/x-shockwave-flash" width="455" height="147"><param name="MOVIE" value="'+path+'home.swf"><param name="wmode" value="transparent"></object>');
}

function virtualgirl()
{
   document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" HEIGHT=295 WIDTH=215 ID="Flash1">');
   document.write('<PARAM NAME="Movie" VALUE="http://www.mvsp.net/law/mvsp6.swf">');
   document.write('<PARAM NAME="Quality" VALUE="High"><PARAM NAME="Loop" VALUE="0"><PARAM NAME="Play" VALUE="1">');
   document.write('<PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="Menu" VALUE="False"><PARAM NAME="SAlign" VALUE="L"><param name="wmode" value="transparent"><PARAM NAME="KeyColor" VALUE="FFFFFF"></PARAM>');
   document.write('<EMBED ID="Flash1" SRC="http://www.mvsp.net/law/mvsp6.swf" HEIGHT=295 WIDTH=215 PALETTE=BACKGROUND Quality=High Loop=FALSE Play=TRUE Scale=ShowAll SAlign=L ALT="" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer/" TYPE="application/x-shockwave-flash" wmode="transparent">');
   document.write('</OBJECT>');
}

function testimonial_signup()
{
   document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" HEIGHT="20" WIDTH="230" ID="ver04"><PARAM NAME="Movie" VALUE="images/signup.swf"><param name="allowScriptAccess" value="sameDomain"><PARAM NAME="Quality" VALUE="High"><EMBED ID="ver04" SRC="<?=URL_HTTP_IMAGES?>images/signup.swf" HEIGHT="20" WIDTH="230" bgcolor="#dfe4e8" Quality="High" Loop="FALSE" Play="TRUE" Scale="ShowAll" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer/" TYPE="application/x-shockwave-flash"></OBJECT>');
}

/*************/
function qt1()
{
	open('<?=$URL?>quicktour/qt1.html', menubar='no', 'left=100, top=20,width=567, height=480', resizable='no');
}
function referafriend(url)
{
	window.open(url+"referafriend.php",'popuptellothers','height=650,width=500,toolbar=no,menubar=no,scrollbars=no,top=50,left=200,resizable=no');
}
function openPop(url){
	window.open(url+'quicktour/qt1-process.php', menubar='no', 'left=100, top=20,width=650, height=600', resizable='no');
}

function blurval_text(str,obj_val,txt_obj)
{
	if(obj_val == "") txt_obj.value = str;
}

function focusval_txt(obj_val,txt_obj,default_txt)
{
	if(obj_val == default_txt) txt_obj.value = "";
}

function showPopup(w,h,t,l){
	var popUp = document.getElementById("popupMsgcontent");
	if (t == "") popUp.style.top = "150px";
	else popUp.style.top = t+"px";
	if (l == "") popUp.style.left = "150px";
	else popUp.style.left = l+"px";
	
	popUp.style.width = w + "px";
	popUp.style.height = h + "px";
	if (baseText == null) baseText = popUp.innerHTML;
	popUp.innerHTML = "<div id=\"statusbar\" class=\"style_align_left\"><a class=\"close_win_link\" href=\"#\" onclick=\"hidePopup();\" title=\"Close Window\">X</a></div><br />" + baseText;
	popUp.style.visibility = "visible";
}

function hidePopup(){
	var popUp = document.getElementById("popupMsgcontent");
	popUp.style.visibility = "hidden";
}
//Center Popup
function NewWindow(mypage, myname, w, h, scroll) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}