function get_cookie(cookie_name) { 
	var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' ); 
	if ( results )
		 return ( unescape ( results[2] ) );
	else 	
		return null; 
} 

function check_cookie(){
	if(!get_cookie('first_page')){
		document.cookie = "first_page=no";
		//alert("first page");
		return true; 
	}else{
		//alert("false");
		return false;
	}
}

//window.onload = check_cookie;