function appearc(where,what){
	jQuery("#"+where).load(what);
}
//function apppsear(where,what)
//{
//	var ajaxRequest;  // The variable that makes Ajax possible!
//	
//	try{
//		// Opera 8.0+, Firefox, Safari
//		ajaxRequest = new XMLHttpRequest();
//	} catch (e){
//		// Internet Explorer Browsers
//		try{
//			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
//		} catch (e) {
//			try{
//				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
//			} catch (e){
//				// Something went wrong
//				alert("Your browser broke!");
//				return false;
//			}
//		}
//	}
//	// Create a function that will receive data sent from the server
//	ajaxRequest.onreadystatechange = function(){
//		if(ajaxRequest.readyState == 4){
//			var ajaxDisplay = document.getElementById(where);
//			ajaxDisplay.innerHTML = ajaxRequest.responseText;
//			return true;
//		} 
//	}
////	var reg_tel =  eval('document.reg_toSite.reg_tel' + '.value'); 
//		var queryString = what;
//		ajaxRequest.open("GET", queryString, true);
//		ajaxRequest.send(null); 	
//}

function apppsear(where,what){
	if(jQuery("#"+where)==null){
		setTimeout('apppsear("'+where+'","'+what+'")',1000);
	} else {		
		jQuery("#"+where).load(what);
	}
}

function appearp(where){
	if(where=='haf'){
		document.getElementById('gre').src = '/images/gc_nesel.png';
		document.getElementById('cin').src = '/images/cine_nesel.png';
		document.getElementById('haf').src = '/images/hf_sel.png';
	}
	
	if(where=='gre'){
		document.getElementById('gre').src = '/images/gc_sel.png';
		document.getElementById('cin').src = '/images/cine_nesel.png';
		document.getElementById('haf').src = '/images/hf_nesel.png';
	}
	
	if(where=='cin'){
		document.getElementById('gre').src = '/images/gc_nesel.png';
		document.getElementById('cin').src = '/images/cine_sel.png';
		document.getElementById('haf').src = '/images/hf_nesel.png';
	}
}