// JavaScript Document
var currentPage = 'tax';

function setPos()
{
var clientWidth = document.body.clientWidth;
clientWidth = ((clientWidth - 990)/2);
document.getElementById("left_bg").style.width = clientWidth + "px";
document.getElementById("right_bg").style.width = (clientWidth -1)+ "px";
}

function setImg(obj)
{
	
	obj.style.cursor=  "Pointer";
	obj.style.backgroundImage = "url('images/" + obj.id + "_over.jpg')";	
}

function resetImg(obj)
{
	
	obj.style.backgroundImage = "url('images/" + obj.id + "_back.jpg')";
	
}


function setImg1(obj)
{
	
	
		//alert(currentPage = obj.id);
	obj.style.cursor=  "Pointer";
	obj.style.backgroundImage = "url('images/" + obj.id + "_over.gif')";
	if(obj == 'account')
	{
	obj.style.backgroundImage = "url('images/" + obj.id + "_over.gif')";	
	}
}

function resetImg1(obj)
{
	if (currentPage != obj.id)
	obj.style.backgroundImage = "url('images/" + obj.id + "_back.gif')";
	
}

function openUrl(obj)
{
	window.open(obj + ".html", "_self");
}


function openHtml(cbs)
{
	//alert(currentPage);
//	if(cbs == 'account')
//	{

		currentPage= cbs;
		document.getElementById('servicecontent').innerHTML = eval(cbs + "_text");
		resetImg1(document.getElementById("computer"));
		resetImg1(document.getElementById("tax"));
		resetImg1(document.getElementById("additional"));
		resetImg1(document.getElementById("account"));

document.getElementById(cbs).style.backgroundImage = "url('images/" + cbs + "_over.gif')";
		
		
		//
		
//	}
	
//else if(cbs == 'tax')
//{
	//currentPage = cbs;
//	document.getElementById('servicecontent').innerHTML = tax;
	
	//resetImg1('account');
//	resetImg1('addtional');
	//resetImg1('computer');
//}
//else if(cbs == 'computer')
//{
	//currentPage = cbs;
//	document.getElementById('servicecontent').innerHTML = computer;
	
	
	//resetImg1('account');
//	resetImg1('addtional');
	//resetImg1('tax');
//}

//else if(cbs == 'additional')
//{
	//currentPage = cbs;
//	document.getElementById('servicecontent').innerHTML = additional;
	
	
//	resetImg1('account');
//	resetImg1('computer');
//	resetImg1('tax');
//}
}

function resetForm()
{
document.cbs.uname.value="";
document.cbs.comp.value="";
document.cbs.add.value="";
document.cbs.tel.value="";
document.cbs.fax.value="";
document.cbs.email.value="";
document.cbs.comptype.value="";
document.cbs.comments.value="";

}

function submitForm()
{
	
		if ((document.cbs.uname.value=="")||(document.cbs.comp.value=="") || (document.cbs.email.value=="") || (document.cbs.tel.value=="")||(document.cbs.comptype.value=="")||(document.cbs.comments.value=="") || (document.cbs.add.value==""))
		
		{
			
			alert("Please fill all fields.");
		}	
		else
		{
		var emailID=document.cbs.email.value;
	
		if (echeck(emailID)==false)
		{
			
			document.cbs.email.focus();
			
		}
		else
		{
			document.cbs.submit();	
			
		}
		}
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}	

var account_text ="	<div class=\"maintitle\" style=\" width: 370px; height: 20px;\">Accounting Services</div>            <div class=\"maintitle\" style=\" width: 370px; height: 100px;font-size: 11px; text-align:justify;  font-weight:normal;\">Custom Business Solutions offers a complete range of accounting services, including receivables, payables, and payroll management. We prepare financial statements in accordance with Generally Accepted Accounting Principles (GAAP) for use by banks, investors, and other third parties. Our firm will also prepare custom financial reports for internal managerial use.</div>            <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>     <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Bookkeeping/Write-Up</div>            <div class=\"innercontent\" style=\" width: 370px; height: 75px;\">We offer full-charge bookkeeping services, including general journal and subsidiary ledger maintenance, bank statement reconciliation, and receivables and payables tracking and analysis. We utilize Software such as Quick Pro and conduct training classes for you and/or your staff.  </div>               <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Cash Flow & Budgeting Analysis</div>            <div class=\"innercontent\" style=\" width: 370px; height: 65px;\">Our firm offers expert cash flow and budgeting analyses that can help you minimize cost overruns, lost purchase discounts, and uncollectable receivables. Many of our clients state that these value-added services are indispensable.</div>                       <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>             <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Compilation, Review, and Audit Services</div>            <div class=\"innercontent\" style=\" width: 370px; height: 65px;\">We provide professional compilation, review, and audit services to businesses of all sizes. We can quickly compile your financial records into meaningful GAAP-compliant financial statements, offer limited-scope review testing, and can deliver complete audit attestation.</div>                        <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Financial Forecast and Projections</div>            <div class=\"innercontent\" style=\" width: 370px; height: 50px;\">Our firm provides complete financial and business forecasting services, including proforma projections. We will also customize What If planning scenarios to help management foresee and plan for unexpected business contingencies.</div> <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Financial Statements</div>            <div class=\"innercontent\" style=\" width: 370px; height: 50px;\">Our firm prepares professional, GAAP-compliant financial statements as well as tailor-made financial analyses that can help business owners and managers eliminate inefficiency and realize a businesss full profit potential.</div><div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Forensic Accounting</div>            <div class=\"innercontent\" style=\" width: 370px; height: 50px;\">We offer tailor-made forensic accounting services as well as expert testimony. We are often consulted during matrimonial disputes and partnership dissolutions to provide business valuation services and uncover malfeasance and financial irregularities.</div><div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Accounting Software Selection & Implementation</div>            <div class=\"innercontent\" style=\" width: 370px; height: 35px;\">Need help with accounting software selection and implementation? We will help you select the software that's right for you and will teach you how to use it effectively. </div>       </div>        ";


var tax_text ="	 	<div class=\"maintitle\" style=\" width: 370px; height: 20px;\">Tax Services</div>            <div class=\"maintitle\" style=\" width: 370px; height: 65px;font-size: 11px; text-align:justify; font-weight:normal;\">Custom Business Services offers a full range of tax planning and compliance services. We work with you year-round if necessary, to minimize your total tax burden. We prepare all federal, state and local tax returns for individuals and businesses.</div>            <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Tax Planning</div>            <div class=\"innercontent\" style=\" width: 370px; height: 75px;\">We monitor federal, state, and local tax law changes to allow our clients to minimize current and future tax liabilities. If necessary, we can implement tailor-made due-date tax compliance monitoring systems to prevent costly interest and penalty assessments attributable to late filing. </div>                         <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>              <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Tax Preparation</div>            <div class=\"innercontent\" style=\" width: 370px; height: 35px;\">We offer professional preparation of all federal, state, and local tax returns at competitive, affordable rates.</div>                        <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">IRS and State/Local Representation</div>            <div class=\"innercontent\" style=\" width: 370px; height: 65px;\">Our firm knows the tax laws, and has intimate knowledge of how your tax return was prepared. We provide complete representation services before the IRS as well as state and local taxing authorities. We are also experienced in negotiating Offers in Compromise with the IRS.</div>                      <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>              <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Payroll Services</div>            <div class=\"innercontent\" style=\" width: 370px; height: 200px;\">Custom Business Services offers payroll preparation and payroll tax reporting services. We prepare all federal and state returns and offer full magnetic media and electronic filing capabilities. We offer you the payroll services available from service bureaus, with three key differences: a far superior level of personalized service, total flexibility, and the best value around. Unlike payroll service bureaus that use a \"one size fits all\" approach, we have the capability to provide a comprehensive payroll service that can be precisely designed to meet your unique needs. Our flexible state-of-the-art system enables us to work collaboratively with you. Based on our accrued knowledge of your business and consultation with you, we will design a payroll service that is optimal for your company’s needs. You will not find this level of personal, attention from any service bureau at any price. </div>                        <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>              <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Sales Tax Services</div>            <div class=\"innercontent\" style=\" width: 370px; height: 20px;\">We prepare all sales tax filings and offer full sales tax audit representation.</div>             ";




var computer_text ="	 	<div class=\"maintitle\" style=\" width: 370px; height: 20px;\">Computer Consulting</div>            <div class=\"maintitle\" style=\" width: 370px; height: 125px;font-size: 11px; text-align:justify; font-weight:normal;\">You are ready to move into the computer age but you have fears of expensive, unsuitable software, fourteen year-olds hacking into your server, and systems crashing. Custom Business Services understand your fears. We will work with you to set up an efficient, user-friendly computer system. Our business-savvy computer technicians and programmers can explain even the most advanced high-tech concepts in plain English. Whether you want to set up a computerized accounting system, a computer network, or even an online web store, we can help. </div>            <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>               <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Consulting Services</div>            <div class=\"innercontent\" style=\" width: 370px; height: 40px;\">Our company offers a wide range of consulting services to help you improve business operations, boost efficiency, and increase the bottom line.</div>                         <div style=\" width: 400px; height: 10px; line-height: 10px;\">&nbsp;</div>              <div class=\"innertitle\" style=\" width: 370px; height: 20px;\">Management Advisory Services</div>            <div class=\"innercontent\" style=\" width: 370px; height: 35px;\">We offer  complete management advisory services, including systems implementation and management, cost controls, employee benefit plan restructuring, and much more.</div> ";



var additional_text ="	 	<div class=\"maintitle\" style=\" width: 370px; height: 25px;\">    Additional Services on a Personal and Professional Level</div>            <div class=\"innercontent\" style=\" width: 370px; height: 55px;font-size: 11px; line-height:20px; text-align:justify; font-weight:normal;\">Credit Repair <br>Assistance in Securing Financing for Personal or Business Needs<br>Loan Remodification</div>            ";








