

//-----------------------------------------------
// Function to validate contact form
//-----------------------------------------------
function chk_contactform()
{


	var msg = "";
	var emailReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
	
	if (document.contactform.firstname.value == "" || document.contactform.firstname.value == "First Name") { msg = msg+"Please fill in First Name\n";document.contactform.firstname.focus(); }
	
	
	else if (document.contactform.lastname.value == "" || document.contactform.lastname.value == "Last Name") { msg = msg+"Please fill in Last Name\n";document.contactform.lastname.focus(); }
	else if (document.contactform.phone.value == "" || document.contactform.phone.value == "Phone") { msg = msg+"Please fill in Phone\n";document.contactform.phone.focus(); }
	else if (document.contactform.email.value == ""  || document.contactform.email.value == "Email") { msg = msg+"Please fill in Email\n";document.contactform.email.focus(); }
	else if (!emailReegxp.test(document.contactform.email.value))
	{
		msg = msg+"Pleas fill in valid Email Address\n";
		document.contactform.email.focus();
	}
	else if (document.contactform.how_did_you_find_our_site.value == "") { msg = msg+"Please select How did you find our Site \n";document.contactform.how_did_you_find_our_site.focus();}
	
	else if (document.contactform.interestedin.value == "") { msg = msg+"Please select Interested in \n";document.contactform.interestedin.focus();}
	
	
	
	if (msg != "") { alert(msg); return false;}
	

		 
}

function EventPopup1(lightDiv)
{
	
	
	
	document.getElementById('popup_title_message').innerHTML = 'Search Engine Optimization';
	document.getElementById('message').innerHTML='SEO is the process by which an individual or a company improves the visibility of their website on various search engines.  SEO is typically an "unpaid" or organic approach that focuses on keywords and other tools to help a website be returned high in search results.  When done correctly, SEO can help more visitors find a website based on certain items they are searching for online via a search engine like Google.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');
	 
}

function EventPopup2(lightDiv)
{
	document.getElementById('popup_title_message').innerHTML = 'E-Commerce Solutions';
	document.getElementById('message').innerHTML='The development of solutions that helps consumers and business complete electronic  transactions online and over the Internet.  This facilitates the practice of selling goods or services online.  This could be used in the form of a set up of an electronic shopping cart and ways that a business can accept various forms of payment from their customers securely, privately, and efficiently.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}


function EventPopup3(lightDiv)
{

	document.getElementById('popup_title_message').innerHTML = 'Graphic Design';
	document.getElementById('message').innerHTML='Graphic design is the process and art of combining text and graphics and communicating an effective message in the design of logos, graphics, brochures, newsletters, posters, signs, and any other type of visual communication.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}

function EventPopup4(lightDiv)
{
	document.getElementById('popup_title_message').innerHTML = 'In-bound Marketing Strategy';
	document.getElementById('message').innerHTML='This is a marketing strategy that focuses on getting found by potential customers by building brand awareness online through advertising and website promotion and directing them to your website or online portal for doing business.  This is a form of Internet Marketing strategy.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}

function EventPopup5(lightDiv)
{
	document.getElementById('popup_title_message').innerHTML = 'Lead Conversion';
	document.getElementById('message').innerHTML='Lead conversion involves the process of converting a lead or a prospective buyer into an account, a contact, and/or a future sales opportunity.  Leads are traditionally generated through marketing efforts, in this instance, online.  In order to improve lead conversion rates online, a variety of online Internet and website marketing efforts are used via Search Engine Optimization and other techniques that will help drive buyers to a website and then turn them into paying customers.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}

function EventPopup6(lightDiv)
{
	document.getElementById('popup_title_message').innerHTML = 'Application Development';
	document.getElementById('message').innerHTML='Application development involves the creation of type of software that can be accessed over the Internet, for instance, the creation for an application that might be used for distribution on an iPhone or a Blackberry and can be bought or downloaded by multiple people on their computers or smartphones  while providing for compatibility on a variety of devices.  Applications such as this can be used in webmail, online retails sales, online auctions, wikis and many other functions.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}

function EventPopup7(lightDiv)
{
	document.getElementById('popup_title_message').innerHTML = 'Flash Technology';
	document.getElementById('message').innerHTML='Flash is a multimedia technology that allows a large amount of media interaction to fit into a small size file and be placed on a website.  For instance, flash technology can be used in interactive banner advertisements as well as created in button advertisements that are placed on websites.  Flash technology can enable a website owner to convert their entire site in order to be more interactive to a user as well as accompany their website with a "non-Flash site" in order to cater to those individuals who are not as advanced in the equipment they are using to view sites on the Internet.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}

function EventPopup8(lightDiv)
{
	document.getElementById('popup_title_message').innerHTML = 'Internet Marketing';
	document.getElementById('message').innerHTML='Internet marketing techniques includes organic strategy related to SEO, but also focuses on paid marketing strategies related to search engine submission, website indexing, increasing the number of backlinks to a site, as well as a host of other high-level strategic items that can help a website get more visitors and gain visibility.  Internet marketing also ties together creative and technical aspects of the web, including: design, development, advertising, and sales.  Internet marketing can also include the use of banner ads placed on specific websites, article marketing, and other broad strategies that can help sell a product or service.  Specific strategies can be developed in this area to fit the needs of your company.';
	
		document.getElementById(lightDiv).style.display='block';
		document.getElementById('Eventfade').style.display='block';
		//document.getElementById('message').innerHTML="Please Type Your Answer";
		centering_popup(lightDiv,'Eventfade');	
}



// Close poup div
function closelight(divid)
{
	document.getElementById('message').innerHTML = '';
	document.getElementById(divid).style.display='none';
	document.getElementById('Eventfade').style.display='none';
}

function is_child_of(parent, child) {
	if( child != null ) {			
		while( child.parentNode ) {
			if( (child = child.parentNode) == parent ) {
				return true;
			}
		}
	}
	return false;
}
function fixOnMouseOut(element, event, JavaScript_code) {
	var current_mouse_target = null;
	if( event.toElement ) {				
		current_mouse_target 			 = event.toElement;
	} else if( event.relatedTarget ) {				
		current_mouse_target 			 = event.relatedTarget;
	}
	if( !is_child_of(element, current_mouse_target) && element != current_mouse_target ) {
		eval(JavaScript_code);
	}
}







