function portcheck(ip,port,div,naam){

offline = "-<font color='ff2000'>Offline...</font>";
online = "-<font color='0be000'>Online!</font>";

$.ajax(
		{
			type: "GET",
			url: "/js/portcheck.php",
			data: {ip: ip, port: port},
			cache: false,
			success: function (msg)
			{
			
			
				$('#'+div).html("<strong>" + naam + "<br />" + msg + "</strong>");
				
								if(msg == online){
								$('#'+div).append("<a href='steam://connect/" + ip + ":" + port + "' class='button1'>Join now!</a>");
								}else{
								$('#'+div).append("<a href='http://www.the-gcp.com/index.php?p=servers' class='button1'>View Status</a>");
								}
								
								
			}
		});

		}
