function showPopup(){
	$('#adiqPopups').css('display', 'block');
		
	jQuery.each(jQuery.browser, function(i) {
		//if browser is Firfox or Safari apply these styles to the pages
		if(i == 'mozilla' || i == 'safari'){
			jQuery.each($('#adiqPopups'), function(j){
				$(this).css('width', '405px');
				$(this).css('height', '210px');
			});
		}
	});
}

function hidePopup(){
	
	$('#adiqPopups').css('display', 'none');
}

function formatFormPanel(formType){
	
	//if the consumer is submitting an sms apply these changes
	if(formType == 'sms'){
		jQuery.each(jQuery.browser, function(i) {
		
			jQuery.each($('#adiqFormPanel'), function(j){
	
				//if browser is Firfox apply these styles to the pages
				if(i == 'mozilla'){
					$(this).css('top', '120px');
					$(this).css('left', '80px');
	
				//else if browser is Safari apply these styles to the pages
				}else if(i == 'safari'){
					$(this).css('left', '35px');
				
				//else apply these styles for IE support
				}else{
					$(this).css('left', '35px');
				}
			});
		});
	}
	
	//if the consumer is submitting a nearest apply these changes
	if(formType == 'nearest'){
		jQuery.each(jQuery.browser, function(i) {
		
			jQuery.each($('#adiqFormPanel'), function(j){
	
				//if browser is Firfox apply these styles to the pages
				if(i == 'mozilla'){
					$(this).css('top', '110px');
					$(this).css('left', '35px');
	
				//else if browser is Safari apply these styles to the pages
				}else if(i == 'safari'){
					$(this).css('top', '100px');
					$(this).css('left', '35px');
				
				//else apply these styles for IE support
				}else{
					$(this).css('top', '95px');
					$(this).css('left', '35px');
				}
			});
		});
	}
	
	//if the consumer is submitting a postal apply these changes
	if(formType == 'address'){
		jQuery.each(jQuery.browser, function(i) {
		
			jQuery.each($('#adiqFormPanel'), function(j){
	
				//if browser is Firfox apply these styles to the pages
				if(i == 'mozilla'){
					$(this).css('top', '94px');
					$(this).css('left', '35px');
	
				//else if browser is Safari apply these styles to the pages
				}else if(i == 'safari'){
					$(this).css('top', '90px');
					$(this).css('left', '35px');
				
				//else apply these styles for IE support
				}else{
					$(this).css('top', '82px');
					$(this).css('left', '35px');
				}
			});
		});
		
	}
}
