function mmLoadMenus() {
  if (window.mm_menu_0129155321_0) return;
  window.mm_menu_0129155321_0 = new Menu("root",197,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#BEC1B0","#70745A","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_0129155321_0.addMenuItem("»&nbsp;Email&nbsp;Marketing");
  mm_menu_0129155321_0.addMenuItem("»&nbsp;Search&nbsp;Engine&nbsp;Marketing");
  mm_menu_0129155321_0.addMenuItem("»&nbsp;Search&nbsp;Engine&nbsp;Optimization");
  mm_menu_0129155321_0.addMenuItem("»&nbsp;Webdesigning");
  mm_menu_0129155321_0.addMenuItem("»&nbsp;Webdevolopment");
   mm_menu_0129155321_0.hideOnMouseOut=true;
   mm_menu_0129155321_0.bgColor='#FFFFFF';
   mm_menu_0129155321_0.menuBorder=1;
   mm_menu_0129155321_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0129155321_0.menuBorderBgColor='#FFFFFF';
 window.mm_menu_0218163513_0 = new Menu("root",197,20,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#FFFFFF","#57778D","#1F4C6B","left","middle",3,1,500,-5,7,true,true,true,0,true,true);
 mm_menu_0218163513_0.addMenuItem("»&nbsp;Affiliate&nbsp;Marketing&nbsp;Services","location='http://www.bipsum.com/affiliate-marketing-services.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;Content&nbsp;Writing","location='http://www.bipsum.com/web-content-writing.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;Email&nbsp;Marketing","location='http://www.bipsum.com/email-marketing.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;Pay&nbsp;Per&nbsp;Click&nbsp;Services","location='http://www.bipsum.com/pay-per-click-services.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;SEO&nbsp;Services","location='http://www.bipsum.com/seo-services.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;SMO&nbsp;Services","location='http://www.bipsum.com/social-media-optimization.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;Web&nbsp;Analytics&nbsp;","location='http://www.bipsum.com/web-analytics.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;Web&nbsp;Design&nbsp;","location='http://www.bipsum.com/web-design.html'");
  mm_menu_0218163513_0.addMenuItem("»&nbsp;Web&nbsp;Development&nbsp;","location='http://www.bipsum.com/'");
   mm_menu_0218163513_0.hideOnMouseOut=true;
   mm_menu_0218163513_0.bgColor='#FFFFFF';
   mm_menu_0218163513_0.menuBorder=1;
   mm_menu_0218163513_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0218163513_0.menuBorderBgColor='#FFFFFF';

mm_menu_0218163513_0.writeMenus();
} // mmLoadMenus()

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];}}
}

var keybNumeric = new keybEdit('01234567890','Numeric input only.');
function keybEdit(strValid, strMsg) {
	var reWork = new RegExp('[a-z]','gi');
	if(reWork.test(strValid))
		this.valid = strValid.toLowerCase() + strValid.toUpperCase();
	else
		this.valid = strValid;
	if((strMsg == null) || (typeof(strMsg) == 'undefined'))
		this.message = '';
	else
		this.message = strMsg;
	this.getValid = keybEditGetValid;
	this.getMessage = keybEditGetMessage;
	function keybEditGetValid() {
		return this.valid.toString();
	}
	function keybEditGetMessage() {
		return this.message;
	}
}
void function editKeyBoard(objForm, objKeyb) {
	strWork = objKeyb.getValid();
	strMsg = '';
	blnValidChar = false;
	if(!blnValidChar)
		for(i=0;i < strWork.length;i++)
			if(window.event.keyCode == strWork.charCodeAt(i)) {
				blnValidChar = true;
				break;
			}
	if(!blnValidChar) {
		if(objKeyb.getMessage().toString().length != 0)
			alert('Error: ' + objKeyb.getMessage());
		window.event.returnValue = false;		// Clear invalid character
		objForm.focus();						// Set focus
	}
}
void function setEvents() {
	document.all.txtNumeric.onkeypress = new Function('editKeyBoard(this,keybNumeric)');
}
function numcheck(str)
			{
				var tr=true;
				var s=str.length;
				if(s==0)
				{
					return true;
				}
				else
				{
 					for(i=0;i<s;i++)
    				{
      					if(str.charCodeAt(i)<48||str.charCodeAt(i)>57)
           				{
                			tr=false;
							break;
            			}
     				}
					if(tr==false)
					{
						return false;
					}
					else
					{
						return true;
					}
				}
			}

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){
		    	//errormsg=errormsg+'\n* Invalid E-mail ID'; 
				//alert("Invalid E-mail ID")
				return false
			}
			if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   			//errormsg=errormsg+'\n* Invalid E-mail ID'; 
	   			//alert("Invalid E-mail ID")
	   			return false
			}
			if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	    		//errormsg=errormsg+'\n* Invalid E-mail ID'; 
	   			//alert("Invalid E-mail ID")
	   			return false
			}
	 		if (str.indexOf(at,(lat+1))!=-1){
	    		//errormsg=errormsg+'\n* Invalid E-mail ID'; 
	   			//alert("Invalid E-mail ID")
	   			return false
	 		}
	 		if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    		//errormsg=errormsg+'\n* Invalid E-mail ID'; 
	   			//alert("Invalid E-mail ID")
	   			return false
	 		}
	 		if (str.indexOf(dot,(lat+2))==-1){
	    		//errormsg=errormsg+'\n* Invalid E-mail ID'; 
	   			//alert("Invalid E-mail ID")
	   			return false
	 		}
	 		if (str.indexOf(" ")!=-1){
	    		//errormsg=errormsg+'\n* Invalid E-mail ID';
	   			//alert("Invalid E-mail ID")
	   			return false
	 		}
	 		return true
		}
		function Validate(frm)
		{
			//alert('Valid');
			//var errmsg='';
			if(frm.getElementById('name').value=='') {
				alert('Please enter your name.');
				frm.getElementById('name').focus();
				return false;
			}
				
			if(frm.getElementById('phone').value=='') {
				alert('Please enter your phone number.');
				frm.getElementById('phone').focus();
				return false;
			}
			else if(numcheck(frm.getElementById('phone').value)==false)
						{
							alert('Only numeric characters allowed in Mobile/Telephone number!');
							frm.getElementById('phone').value='';
							frm.getElementById('phone').focus();
							return false;
						}	
		 if(frm.getElementById('email').value=='') {
			 alert('Please enter your Emailid.');
			 frm.getElementById('email').focus();
			 return false;
		  }
			 
		else if(echeck(frm.getElementById('email').value)==false)
		  {
			 alert('Please enter a valid Email address!');
			 frm.getElementById('email').value='';
			 frm.getElementById('email').focus();
			 return false;
		  }
			if(frm.getElementById('service').value=='') {
				alert('Please select a service that you want.');
				frm.getElementById('service').focus();
				return false;
			}
			 return true;
		}
		
		function CheckLength(Obj)
		{
			if (Obj.value.length <= 5)
			{
				display_data(Obj.value);
			}
		}
function keypressFun(evt)
{
	evt = (evt) ? evt : ((window.event) ? event : null);
	if (evt) 
	{
		var elem = (evt.target) ? evt.target : evt.srcElement;
		if (elem) 
		{
			var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
			if (charCode == 13)
				return false;
			else
				return true;
		}
	}
}
function display_data(str1) { 
$.ajax({
       type: "GET",
       url: "picturecodeverify.php",
       data: "pcode="+ str1,
       success: function(msg)
       {
               document.getElementById('checker').innerHTML=msg;
       }
       });
}
function removeBlanks(s){
s = s.replace(/(^\s*)|(\s*$)/gi,"");
s = s.replace(/[ ]{2,}/gi," ");
s = s.replace(/\n /,"\n");
return s;
}	
					function Validate1(frm){
					   //alert('Valid');
					    //var errmsg='';
						if(frm.getElementById('txtName').value=='') 
					    {
					      alert('Please enter your First Name!');
						  frm.getElementById('txtName').value='';
						  frm.getElementById('txtName').focus();
						  return false;
					}
						if(frm.getElementById('txtCom').value=='')
						{
							alert('Please enter your valid Company name!');
							frm.getElementById('txtCom').value='';
							frm.getElementById('txtCom').focus();
							return false;
						}
											
                        if(frm.getElementById('txtPh2').value=='')
						{
							alert('Please enter appropriate Mobile/Telephone number!');
							frm.getElementById('txtPh2').value='';
							frm.getElementById('txtPh2').focus();
							return false;
						}
						else if(numcheck(frm.getElementById('txtPh2').value)==false)
						{
							alert('Only numeric characters allowed in Mobile/Telephone number!');
							frm.getElementById('txtPh2').value='';
							frm.getElementById('txtPh2').focus();
							return false;
						}
						if(frm.getElementById('txtEmail').value=='')
						{
							alert('Please enter Email-Id');
							frm.getElementById('txtEmail').value='';
							frm.getElementById('txtEmail').focus();
							return false;
						}
											
						else if(echeck(frm.getElementById('txtEmail').value)==false)
						{
							alert('Please enter a valid Email address!');
							frm.getElementById('txtEmail').value='';
							frm.getElementById('txtEmail').focus();
							return false;
						}
						
						if(frm.getElementById('txtSub').value=='0')
						{
							alert('Please select the subject!');
							frm.getElementById('txtSub').focus();
							return false;
						}
						
						if(removeBlanks(frm.getElementById('txtAr').value)=='')
						{
							alert('Please provide your Comments/Queries!');
							frm.getElementById('txtAr').focus();
							return false;
						}

						if(frm.getElementById('txtReq').value=="")
						{
							alert("Please enter the Captcha.");
							frm.getElementById('txtReq').focus();
							return false;
						
						}
						if((frm.getElementById('txtReq').value.length) <5)
						{
						  alert("Validation string/code must be 5 characters. ");
						  frm.getElementById('txtReq').value="";
						 frm.getElementById('txtReq').focus();
						  return false;
						}

						if(frm.getElementById('val_string').value!=1)
						{
							alert("Validation String/Code is incorrect.");
							frm.getElementById('txtReq').value="";
							frm.getElementById('txtReq').focus();
							return false;
						}	
			
						return true;
						
					}
					
function bookmark(title,url)
{
	if(window.sidebar)
		window.sidebar.addPanel(title,url,"");
	else if(window.opera && window.print)
	{
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
	else if(document.all)
		window.external.AddFavorite(url, title);
}


function article(programName,width,height)
{
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no,width="+width+",height="+height; displayWindow=window.open(programName,"displayWindow",temp) ;
}

		
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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.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];}
}
		
		
		
		function Validate2(frm){
					   //alert('Valid');
					    var errmsg='';
						//

						if(frm.getElementById('txtCompany').value=='') {
							alert('Please enter your valid Company name!');
							frm.getElementById('txtCompany').focus();
							return false;
						}
												
						if(frm.getElementById('txtContry').value=='0') {
							alert('Please Select the Country!');
							frm.getElementById('txtContry').focus();
							return false;
						}
						
						if(frm.getElementById('txtState').value==''){
							alert('Please enter your State name!');
							frm.getElementById('txtState').focus();
							return false;
						}
						
						if(frm.getElementById('txtCity').value=='') {
							alert('Please enter your City name!');
							frm.getElementById('txtCity').focus();
							return false;
						}
						
						if(frm.getElementById('txtName').value=='') {
							alert('Please enter your First Name!');
							frm.getElementById('txtName').focus();
							return false;
						}
						
						if(frm.getElementById('txtEmail').value=='') {
							alert('Please enter Email-Id');
							frm.getElementById('txtEmail').focus();
							return false;
						}
						
						else if(echeck(frm.getElementById('txtEmail').value)==false)
						{
							alert('Please enter a valid Email address!');
							frm.getElementById('txtEmail').value='';
							frm.getElementById('txtEmail').focus();
							return false;
						}
						
                        if(frm.getElementById('txtPh2').value=='') {
							alert('Please enter appropriate Mobile/Telephone number!');
							frm.getElementById('txtPh2').focus();
							return false;
						}
						else if(numcheck(frm.getElementById('txtPh2').value)==false)
						{
							alert('Only numeric characters allowed in Mobile/Telephone number!');
							frm.getElementById('txtPh2').value='';
							frm.getElementById('txtPh2').focus();
							return false;
						}	
						
						if ((!frm.getElementById('b1').checked) && (!frm.getElementById('b2').checked) && (!frm.getElementById('b3').checked) && (!frm.getElementById('b4').checked) && (!frm.getElementById('b5').checked)) {
						 alert('Please select atleast one Service');
						 frm.getElementById('b1').focus();
						 return false;
						}
						
						if(frm.getElementById('txtEng').value=='') {
							alert('Please enter in which Search Engine you found us!');
							frm.getElementById('txtEng').focus();
							return false;
						}
												
						if(frm.getElementById('txtSearch').value=='') {
							alert('Please enter the keyword you searched for!');
							frm.getElementById('txtSearch').focus();
							return false;
						}
						
					 if(frm.getElementById('txtReq').value=="")
						{
							alert("Please enter the Captcha.");
							frm.getElementById('txtReq').focus();
							return false;
						
						}
						if((frm.getElementById('txtReq').value.length) <5)
						{
						  alert("Validation string/code must be 5 characters. ");
						  frm.getElementById('txtReq').value="";
						 frm.getElementById('txtReq').focus();
						  return false;
						}

						if(frm.getElementById('val_string').value!=1)
						{
							alert("Validation String/Code is incorrect.");
							frm.getElementById('txtReq').value="";
							frm.getElementById('txtReq').focus();
							return false;
						}	
						 return true;
					}
