function remove_photo()
{
	document.getElementById("photodiv").style.display='none';
	document.getElementById("chk_photo_exist").value="no_display";
}
function showtips(){
	
	document.getElementById("MsgDiv").style.display='';
	document.getElementById("Msg").innerHTML='MyTalentPlace requires this information as both a safety precaution and as a means of preserving the integrity of the site. Your privacy settings will enable you to choose who can and cannot see this information.';
}
function closetips(){
	
	document.getElementById("MsgDiv").style.display='none';
}
function closediv(){

	document.getElementById("errDiv").style.display='none';
}
function closedivTagCloud(){

	document.getElementById("errorMsgDivTagCloud").style.display='none';
}
function closemsgdiv(){

	document.getElementById("msgDiv").style.display='none';
}
function showdegree(){
	
	//this condition block is to check image existence
	if(document.getElementById("chk_photo_exist").value=='no_display')
		{
			document.getElementById("photodiv").style.display='none';
		}
	//this condition block is to check image existence
	
	var val=document.getElementById("school_college_uni").value;
	if(val=='University' || val=='College')	{
		document.getElementById("tr_degree").style.display='';
	} else {
		document.getElementById("tr_degree").style.display='none';
	}
	changeInstitutiontext();
}
function changeInstitutiontext(){
	
	val=document.getElementById("school_college_uni").value;
	if(val=='University')	{
		document.getElementById("Institution").innerHTML='Your uni name';
		document.getElementById("course_studying").innerHTML='What degree are you studying';
	} 
	else if ( val=='College')
	{
		document.getElementById("Institution").innerHTML='Your college name';
		document.getElementById("course_studying").innerHTML='What are you studying';
	}
	else if ( val=='School')
	{
		document.getElementById("Institution").innerHTML='Your school name';
	}
	
	
}
function showresult(val)
{
	document.submitProfile.submit();
}
function search_user()
{
	var search_text = document.getElementById("search_keyword").value;
	window.location.href='search_result.php?search_text=' + search_text;	
}