/*function imposeMaxLength(Object, MaxLen)
    {
      return (Object.value.length <= MaxLen);
    }
	
	
	
	// sliding js
	
	
   
		// Accordion
		jQuery().ready(function(){
			jQuery('#serviceContent').accordion({
			autoheight: false
			});
		});
			
		// Cycle
		$(function() {
			$('#fW_Content').cycle({ 
			fx:    'scrollLeft',
			pager: '#fW_Controls'
 			});
		});
		
		
	   // for magazine cycle	
		$(function() {
			$('#fW_Content1').cycle({ 
			fx:    'scrollLeft',
			pager: '#fW_Controls1'
 			});
		});
		
		
		
		
		// Open Blank Window
		$(function(){
			$('a.viewWebsite').click(function(){
				window.open(this.href);
				return false;
			});
		});
		
		// Smooth Scrolling
		$(document).ready(function(){
			$('a[href*=#]').click(function() {
				if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
				&& location.hostname == this.hostname) {
					var $target = $(this.hash);
					$target = $target.length && $target
					|| $('[name=' + this.hash.slice(1) +']');
					if ($target.length) {
						var targetOffset = $target.offset().top;
						$('html,body')
						.animate({scrollTop: targetOffset}, 200);
					return false;
					}
				}
			});
		});*/

 function Init_AJAX() 
{
   try
 {
     return new ActiveXObject("Msxml2.XMLHTTP");
 } 
 catch(e)
 {} //IE
   try 
   {
    return new ActiveXObject("Microsoft.XMLHTTP"); 
   }
   catch(e)
   {} //IE
   try
   {
   return new XMLHttpRequest();
   }
   catch(e)
   {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
}  
   

	
