function get_cookie ( cookie_name ) {
  var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );
  if ( results )
    return ( unescape ( results[1] ) );
  else
    return null;
}

function set_cookie (name, value, exp_y, exp_m, exp_d) {
	var cookie_string = name + "=" + escape ( value );
  	if ( exp_y ) {
    	var expires = new Date ( exp_y, exp_m, exp_d );
    	cookie_string += "; expires=" + expires.toGMTString();
  	}
	document.cookie = cookie_string;
}

function traffic () {
	var URL = 'http://www.gorillatrades.com/popup.html'; // URL of popup window
	var now = new Date(); 								 // time/date right now
	var IGDcookie_year  = now.getFullYear ( ) + 1; 		 // cookie expire year
    var IGDcookie_month = now.getMonth ( );				 // cookie expire month	
    var IGDcookie_day   = now.getDate ( );				 // cookie expire day
	if (! get_cookie("IGDcookie")) {
		set_cookie("IGDcookie","yesexists",IGDcookie_year, IGDcookie_month, IGDcookie_day);
		win = window.open(URL,'_blank','toolbar=no,location=no,resizable=yes,status=no,menubar=no,directories=no,width=550,height=530,x=100,y=100');
	}
}
function openwindow(address) {
	window.open(address, "testimonials", "toolbar=no,location=no,scrollbars=yes,resizable=yes,status=no,menubar=no,directories=no,width=550,height=530,left=350,top=100")
}
