function MM_preloadImages()
{
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function changeScrollbarColor(C)
{
  if (document.all)
  {
    document.body.style.scrollbarBaseColor = C
  }   
}
function ValidatorTrim(s)
{
	var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
	return (m == null) ? "" : m[1];
}
function MM_openBrWindow(theURL,winName,features)
{
  window.open(theURL,winName,features);
  return false;
}
function doAdmADReset()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.hmeFrm.admin_username.value = ""
	document.hmeFrm.admin_password.value = ""
}

function checkAdmVal()
{
	if(ValidatorTrim(document.hmeFrm.admin_username.value)=='')
	{
		alert('Please enter Admin Username');
		document.getElementById('admin_username').focus();
		return false;		
	} 
	var newUsnm=document.hmeFrm.admin_password.value;
	if(ValidatorTrim(document.hmeFrm.admin_password.value)=='')
	{
		alert('Please enter Admin Password');
		document.getElementById('admin_password').focus();
		return false;		
	}
	if(newUsnm!="")
	{
		if(newUsnm.indexOf(" ")!=-1)
		{
	    	alert("Please dont use space for Admin Password.");
		 	document.hmeFrm.admin_password.value="";
		 	document.hmeFrm.admin_password.focus();
		 	return false;
		}
		if(newUsnm.length<5||newUsnm.length>8)
		{
		   alert("Admin Password length must lie between 5 - 8 Characters Only");
		   document.hmeFrm.admin_password.value="";
		   document.hmeFrm.admin_password.focus();
		   return false;
		}
	}
}
function checkAdmPwdVal()
{
	if(document.fmrChgeAdmPwd.cpassword.value=="")
	{
		alert("Please provide your old Password");
		document.fmrChgeAdmPwd.cpassword.focus();
		return false;
	}
	if(document.fmrChgeAdmPwd.cpassword.value!="")
	{
		if(document.fmrChgeAdmPwd.pwd.value!=document.fmrChgeAdmPwd.cpassword.value)
		{
			alert("Please provide your valid old password");
			document.fmrChgeAdmPwd.cpassword.focus();
			return false;
		}
	}
	var newpass=document.fmrChgeAdmPwd.password.value;
	if(document.fmrChgeAdmPwd.password.value=="")
	{
		alert("Please enter new password");
		document.fmrChgeAdmPwd.password.focus();
		return false;
	}
	if(newpass!="")
	{
		if(newpass.indexOf(" ")!=-1)
		{
			alert("Please dont use space for password");
			document.fmrChgeAdmPwd.password.value="";
			document.fmrChgeAdmPwd.password.focus();
			return false;
		}
		if(newpass.length<1||newpass.length>16)
		{
			alert("Password length must lie between 1 - 16 Characters");
			document.fmrChgeAdmPwd.password.value="";
			document.fmrChgeAdmPwd.password.focus();
			return false;
		}
	}
	if(document.fmrChgeAdmPwd.password.value!=document.fmrChgeAdmPwd.password_confirm.value)
	{
			alert("Both New and Confirm Password must be same");
			document.fmrChgeAdmPwd.password_confirm.focus();
			return false;
	}
	return true;
}
function ValidatorTrim(s)
{
	var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
	return (m == null) ? "" : m[1];
}
function checkRegVal()
{
	if(ValidatorTrim(document.reg.username.value)=='')
	{
		alert('Please enter User name.');
		document.getElementById('username').focus();
		return false;		
	} 
	var newUsnm=document.reg.password.value;
	if(ValidatorTrim(document.reg.password.value)=='')
	{
		alert('Please enter Password.');
		document.getElementById('password').focus();
		return false;		
	}
    
	if(newUsnm!="")
	{
		if(newUsnm.indexOf(" ")!=-1)
		{
	    	alert("Please dont use space for Password.");
		 	document.reg.password.value="";
		 	document.reg.password.focus();
		 	return false;
		}
		if(newUsnm.length<8||newUsnm.length>16)
		{
		   alert("User Password length must lie between 8 - 16 Characters Only.");
		   document.reg.password.value="";
		   document.reg.password.focus();
		   return false;
		}
	}
	var newPass=document.reg.confirm_password.value;
	if(ValidatorTrim(document.reg.confirm_password.value)=='')
	 {
		alert('Please enter Confirm Password.');
		document.getElementById('confirm_password').focus();
		return false;		
	}
	 if(newPass!="")
	 {
		if(newPass.indexOf(" ")!=-1)
		{
	    	alert("Please dont use space for Password.");
		 	document.reg.confirm_password.value="";
		 	document.reg.confirm_password.focus();
		 	return false;
		}
		if(newUsnm.length<8||newUsnm.length>16)
		{
		   alert("User Password length must lie between 8 - 16 Characters Only.s");
		   document.reg.confirm_password.value="";
		   document.reg.confirm_password.focus();
		   return false;
		}
	}
	
	if(document.reg.password.value!=document.reg.confirm_password.value)
	{
			alert("Both Password and Confirm Password must be same");
			document.reg.confirm_password.focus();
			return false;
	}
	return true;
}
function checkRadio (reg, rbGroupName) 
  {
     var radios = document[reg].elements[rbGroupName];
     for (var i=0; i <radios.length; i++) 
     {
        if (radios[i].checked) 
	   {
         return true;
       }
     }
 }
function chkReg2()
{
	if (!checkRadio("reg","membership_type"))
	{
  		 alert("Please select a Type of Membership.");
		 return false;
	}
	if(document.reg.email_id.value=='')
	{
		alert('Please enter Email-Id.');
		document.getElementById('email_id').focus();
		return false;		
	}
	if(document.reg.email_id.value.indexOf('@')==-1){
		
		alert("Please enter your correct email id");
		document.getElementById('email_id').focus();
		return false;
	}
	if(document.reg.email_id.value.indexOf('.')==-1){
		
		alert("Please enter your correct email id");
		document.getElementById('email_id').focus();
		return false;
	}
	if(document.reg.email_id.value.indexOf('@.')!=-1 || document.reg.email_id.value.indexOf('.@')!=-1){
		
		alert("Please enter your correct email id");
		document.getElementById('email_id').focus();
		return false;
	}
	
	if(document.reg.confirm_emailid.value=='')
	{
		alert('Please enter Confirm Email-Id.');
		document.getElementById('confirm_emailid').focus();
		return false;		
	} 
	if(document.reg.confirm_emailid.value.indexOf('@')==-1){
		
		alert("Please enter your correct email id");
		document.getElementById('confirm_emailid').focus();
		return false;
	}
	if(document.reg.confirm_emailid.value.indexOf('.')==-1){
		
		alert("Please enter your correct email id");
		document.getElementById('confirm_emailid').focus();
		return false;
	}
	if(document.reg.confirm_emailid.value.indexOf('@.')!=-1 || document.reg.confirm_emailid.value.indexOf('.@')!=-1){
		
		alert("Please enter your correct email id");
		document.getElementById('confirm_emailid').focus();
		return false;
	}
	if(document.reg.email_id.value!=document.reg.confirm_emailid.value)
	{
			alert("Both Email ID and Confirm Email ID must be same.");
			document.reg.confirm_emailid.focus();
			return false;
	}
	if (!checkRadio("reg","gender"))
	{
  		 alert("Please select a Gender.");
		 return false;
	}
	if(document.getElementById("dateField").value=="seldate")
	{
		alert("Please select date.");
		return false;
	}
	if(document.getElementById("monthField").value=="selmonth")
	{
		alert("Please select month.");
		return false;
	}
	
	if(document.getElementById("yearField").value=="selyear")
	{
		alert("Please select year.");
		return false;
	}
    
	if(document.getElementById("stateField").value=="selstate")
	{
		alert("Please select state.");
		return false;
	}
	if(document.getElementById("countryField").value=="selcountry")
	{
		alert("Please select country.");
		return false;
	}
	return true;
}
function userLogin()
{
	if(ValidatorTrim(document.loginForm.username.value)=='')
	{
		alert('Please enter User name.');
		document.getElementById('username').focus();
		return false;		
	} 
	var newLog=document.loginForm.password.value;
	if(ValidatorTrim(document.loginForm.password.value)=='')
	{
		alert('Please enter Password.');
		document.getElementById('password').focus();
		return false;		
	}
    
	if(newLog!="")
	{
		if(newLog.indexOf(" ")!=-1)
		{
	    	alert("Please dont use space for Password.");
		 	document.loginForm.password.value="";
		 	document.loginForm.password.focus();
		 	return false;
		}
		if(newLog.length<8||newLog.length>16)
		{
		   alert("Password length must lie between 8 - 16 Characters Only.");
		   document.loginForm.password.value="";
		   document.loginForm.password.focus();
		   return false;
		}
	}
	return true;
 }
function forgotpass()
{
	if(document.forg_pwd.username.value=='')
	{
		alert('Please enter User name.');
		document.getElementById('username').focus();
		return false;		
	}
	return true;
}
function resetAddBlogs()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_blogs.title.value = ""
	document.add_blogs.descr.value = ""
}
function alertAddBlogs()
{
	if(ValidatorTrim(document.add_blogs.title.value)=='')
	{
		alert('Please enter blog title');
		document.getElementById('title').focus();
		return false;		
	}
	if(ValidatorTrim(document.add_blogs.descr.value)=='')
	{
		alert('Please enter blog description');
		document.getElementById('descr').focus();
		return false;		
	}
	return true;
}
function checkSrcVal()
{
	if(document.getElementById("order_by").value=="select")
	{
		alert("Please select category");
		document.blgFrm.order_by.focus();
		return false
	}
	return true;
}
function resetVideoAddFrm()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_videos.fullname.value = "title"
	document.add_videos.email.value = "description"
}
function video_validation()
  {
	if(document.add_videos.video_title.value=="")
	{
	  alert("Please Enter Video Title !");
	  document.getElementById('video_title').focus();
	  return false;	
	}
	
	if(document.add_videos.description.value=="")
	{
	  alert("Please Enter Video description !");
	  document.getElementById('description').focus();
	  return false;	
	}
    if(document.add_videos.video_thum_file.value=="")
	{
	  alert("Please browse Video Thumbnail !");
	  document.getElementById('video_thum_file').focus();
	  return false;	
	}
	   if(document.add_videos.video_file.value=="")
	{
	  alert("Please browse Video File !");
	  document.getElementById('video_file').focus();
	  return false;	
	}
	return true;
}
function editvideo_validation()
  {
	if(document.edit_videode.video_title.value=="")
	{
	  alert("Please Enter Video Title !");
	  document.getElementById('video_title').focus();
	  return false;	
	}
	
	if(document.edit_videode.description.value=="")
	{
	  alert("Please Enter Video description !");
	  document.getElementById('description').focus();
	  return false;	
	}
	return true;
}
function reset_PhoGal()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_photo.cat_id.value = "sel_cat"
	document.add_photo.photo_name.value = ""
}
function alert_add_photo()
{
	if(ValidatorTrim(document.add_photo.photo_name.value)=='')
	{
			alert('Please enter photo name');
			document.getElementById('photo_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.add_photo.photo_name.value!="")
	{
		for (var i = 0; i < document.add_photo.photo_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.add_photo.photo_name.value.charAt(i)) != -1) 
			{				
				alert('photo name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper photo name.');
				document.add_photo.photo_name.value="";
				document.add_photo.photo_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.add_photo.photo_name.value.charAt(i)) != -1) 
				{				
					alert('photo name contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.add_photo.photo_name.value="";
					document.add_photo.photo_name.focus();
					return false;
				}
			}
	}
	if(ValidatorTrim(document.add_photo.userfile.value)=='')
	{
		alert('Please upload Photo');
		document.getElementById('userfile').focus();
		return false;		
	}	
	return true;
}
function alert_edit_photo()
{
	if(ValidatorTrim(document.edit_photo.photo_name.value)=='')
	{
			alert('Please enter photo name');
			document.getElementById('photo_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.edit_photo.photo_name.value!="")
	{
		for (var i = 0; i < document.edit_photo.photo_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.edit_photo.photo_name.value.charAt(i)) != -1) 
			{				
				alert('photo name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper photo name.');
				document.edit_photo.photo_name.value="";
				document.edit_photo.photo_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.edit_photo.photo_name.value.charAt(i)) != -1) 
				{				
					alert('photo name contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.edit_photo.photo_name.value="";
					document.edit_photo.photo_name.focus();
					return false;
				}
			}
	}
	return true;
}
function resetAddForum()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_forum.title.value = ""
	document.add_forum.descr.value = ""
}

function alertAddForum()
{
	if(ValidatorTrim(document.add_forum.title.value)=='')
	{
		alert('Please enter forum title');
		document.getElementById('title').focus();
		return false;		
	}
	if(ValidatorTrim(document.add_forum.descr.value)=='')
	{
		alert('Please enter forum description');
		document.getElementById('descr').focus();
		return false;		
	}
	return true;
}
function resetAddForumTopic()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_forum_topic.title.value = ""
	document.add_forum_topic.descr.value = ""
}
function alertAddForumTopic()
{
	if(ValidatorTrim(document.add_forum_topic.title.value)=='')
	{
		alert('Please enter forum topic title');
		document.getElementById('title').focus();
		return false;		
	}
	if(ValidatorTrim(document.add_forum_topic.descr.value)=='')
	{
		alert('Please enter forum topic description');
		document.getElementById('descr').focus();
		return false;		
	}
	return true;
}
function resetAddForumTopicPost()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_forum_topic_post.descr.value = ""
}
function alertAddForumTopicPost()
{
	if(ValidatorTrim(document.add_forum_topic_post.descr.value)=='')
	{
		alert('Please enter forum topic post ');
		document.getElementById('descr').focus();
		return false;		
	}
	return true;
}
function checkSrchFrmTit()
{
	if(document.getElementById("forum_title").value=="Select_forum_title")
	{
		alert("Please select category");
		document.srchForTti.forum_title.focus();
		return false
	}
}
function alertPhotoVal()
{
	if(ValidatorTrim(document.change_photo.userfile.value)=='')
	{
		alert('Please upload Photo');
		document.getElementById('userfile').focus();
		return false;		
	}
	return true;
}
function alertAddGame()
{
	if(ValidatorTrim(document.add_games.name.value)=='')
	{
		alert('Please enter game name');
		document.getElementById('name').focus();
		return false;		
	}
	if(ValidatorTrim(document.add_games.champion.value)=='')
	{
		alert('Please enter champion');
		document.getElementById('champion').focus();
		return false;		
	}
	if(ValidatorTrim(document.add_games.option.value)=='')
	{
		alert('Please enter option');
		document.getElementById('option').focus();
		return false;		
	}
	if(ValidatorTrim(document.add_games.descr.value)=='')
	{
		alert('Please enter game description');
		document.getElementById('descr').focus();
		return false;		
	}
	
	if(ValidatorTrim(document.add_games.userfile.value)=='')
	{
		alert('Please upload image');
		document.getElementById('userfile').focus();
		return false;		
	}
	return true;
}
function resetAddGame()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_games.title.value = "";
	document.add_games.champion.value = "";
	document.add_games.option.value = "";
	document.add_games.descr.value = "";
}
function alertAddArcadeNews()
{
	if(ValidatorTrim(document.add_arcade_news.title.value)=='')
	{
		alert('Please enter arcade news title');
		document.getElementById('title').focus();
		return false;		
	}
	
	if(ValidatorTrim(document.add_arcade_news.descr.value)=='')
	{
		alert('Please enter arcade news  description');
		document.getElementById('descr').focus();
		return false;		
	}
	return true;
}

function resetAddArcadeNews()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_arcade_news.title.value = "";
	document.add_arcade_news.descr.value = "";
}
function alertSendMessage()
{
	if(ValidatorTrim(document.send_msg.from.value)=='')
	{
		alert('Please enter your name');
		document.getElementById('from').focus();
		return false;		
	}
	if(document.send_msg.email.value == "")
	{
			alert("Please provide Email-Id");
			document.send_msg.email.focus();
			return false;
	}
	if(document.send_msg.email.value!="")
	{			
		for(i=0;i<=document.send_msg.email.value.length;i++)
		{			
			if(document.send_msg.email.value.charAt(i)==" ")
			{
				alert("Please provide proper format for Email-Id\ne.g. xyz@xyz.com");
				document.send_msg.email.focus();
				return false;
			}
		}
		var flag;
		flag=0;
		var temp;
		var valid = "0123456789"
		temp = "" + document.send_msg.email.value.charAt(0);
		if (valid.indexOf(temp)!= "-1")
		{
			alert("Please provide proper format for Email-Id\ne.g. xyz@xyz.com");
			document.send_msg.email.select();
			return false;
		}
		for(i=0;i<=document.send_msg.email.value.length;i++)
		{			
			if(document.send_msg.email.value.charAt(i)=="@")
			{
				flag=flag+1;
			}
		}
		if( flag >1)
		{
			alert("Please provide proper format for Email-Id\ne.g. xyz@xyz.com");
			document.send_msg.email.select();
			return false;
		}
		for(i=0;i<=document.send_msg.email.value.length;i++)
		{	
			if(document.send_msg.email.value.charAt(i)==".")
			{
				flag=flag+1;
					break;
			}
		}
		if(flag<2)
		{
			alert("Please provide proper format for Email-Id\ne.g. xyz@xyz.com");
			document.send_msg.email.select();
			return false;
		}
	}
	if(ValidatorTrim(document.send_msg.message.value)=='')
	{
		alert('Please enter message');
		document.getElementById('message').focus();
		return false;		
	}
	return true;
}
function resetAddEvent()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_event.name.value = "";
	document.add_event.category.value = "select";
	document.add_event.place.value = "";
	document.add_event.location.value = "";
	document.add_event.date11.value = "";
	document.add_event.time1.value = "";
	document.add_event.time2.value = "";
	document.add_event.descr.value = "";
	document.add_event.location.value = "select1";
	document.add_event.state.value = "select";
	document.add_event.city.value = "select";
	document.add_event.postal_code.value = "";
}
function viewUserProfile($user_id)
{	
	var JB = $user_id;
	document.userPro.method="post";
	document.userPro.action="profile.php?JB="+JB;
	document.userPro.submit();
}
function viewUserProfile1($user_id)
{	
	var JB = $user_id;
	document.blgFrm.method="post";
	document.blgFrm.action="profile.php?JB="+JB;
	document.blgFrm.submit();
}
function reset_create_groups()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.create_groupsFrm.group_name.value = "";
	document.create_groupsFrm.group_descr.value = "";
}
function validateCreateGroups()
{
	if(ValidatorTrim(document.create_groupsFrm.group_name.value)=='')
	{
		alert('Please enter group name');
		document.getElementById('group_name').focus();
		return false;		
	}
	if(ValidatorTrim(document.create_groupsFrm.group_descr.value)=='')
	{
		alert('Please enter group description');
		document.getElementById('group_descr').focus();
		return false;		
	}
	return true;
}
function grpShowDet($gp_id)
{	
	var VS= $gp_id;
	document.frmGropsShow.method="post";
	var VS = document.frmGropsShow.action="groups_details.php?VS="+VS;
	document.frmGropsShow.submit();
}
function reset_create_classified()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.create_classified.classified_name.value = "";
}
function Validatecreate_classified()
{
	if(ValidatorTrim(document.create_classified.classified_name.value)=='')
	{
			alert('Please enter classified name');
			document.getElementById('classified_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.create_classified.classified_name.value!="")
	{
		for (var i = 0; i < document.create_classified.classified_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.create_classified.classified_name.value.charAt(i)) != -1) 
			{				
				alert('classified name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper classified name.');
				document.create_classified.classified_name.value="";
				document.create_classified.classified_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.create_classified.classified_name.value.charAt(i)) != -1) 
				{				
					alert('classified name contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.create_classified.classified_name.value="";
					document.create_classified.classified_name.focus();
					return false;
				}
			}
	}
	return true;
}
function reset_create_listings()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.create_listings.classified_name.value = "sel_grp";
	document.create_listings.listing_title.value = "";
	document.create_listings.listing_descr.value = "";
}
function Validatecreate_listings()
{
	if(document.getElementById("classified_name").value=="sel_grp")
	{
		alert("Please Select Classifieds Name");
		document.create_listings.classified_name.focus();
		return false
	}	
	if(ValidatorTrim(document.create_listings.listing_title.value)=='')
	{
			alert('Please enter Listing Title');
			document.getElementById('listing_title').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.create_listings.listing_title.value!="")
	{
		for (var i = 0; i < document.create_listings.listing_title.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.create_listings.listing_title.value.charAt(i)) != -1) 
			{				
				alert('Listing Title contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper Listing Title.');
				document.create_listings.listing_title.value="";
				document.create_listings.listing_title.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.create_listings.listing_title.value.charAt(i)) != -1) 
				{				
					alert('Listing Title contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.create_listings.listing_title.value="";
					document.create_listings.listing_title.focus();
					return false;
				}
			}
	}
	if(ValidatorTrim(document.create_listings.listing_descr.value)=='')
	{
		alert('Please enter Listing Description');
		document.getElementById('listing_descr').focus();
		return false;		
	}
	if(ValidatorTrim(document.create_listings.userfile.value)=='')
	{
		alert('Please upload Listing Photo');
		document.getElementById('userfile').focus();
		return false;		
	}
	return true;
}
function viewClasDets($clas_id)
{	
	var VS= $clas_id;
	document.clasDets.method="post";
	var VS = document.clasDets.action="listings_details.php?VS="+VS;
	document.clasDets.submit();
}
function viewListDets($list_id,$clas_id)
{	
	var DTS= $list_id;
	var VS= $clas_id;
	document.listings_details.method="post";
	var DTS = document.listings_details.action="listings_details.php?DTS="+DTS+"&VS="+VS;
	document.listings_details.submit();
}
function viewClasDets11($clas_id)
{	
	var VS= $clas_id;
	document.lstDetAGan.method="post";
	var VS = document.lstDetAGan.action="listings_details.php?VS="+VS;
	document.lstDetAGan.submit();
}
function ValidateEDIT_classified()
{
	if(ValidatorTrim(document.edit_classified.classified_name.value)=='')
	{
			alert('Please enter classified name');
			document.getElementById('classified_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.edit_classified.classified_name.value!="")
	{
		for (var i = 0; i < document.edit_classified.classified_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.edit_classified.classified_name.value.charAt(i)) != -1) 
			{				
				alert('classified name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper classified name.');
				document.edit_classified.classified_name.value="";
				document.edit_classified.classified_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.edit_classified.classified_name.value.charAt(i)) != -1) 
				{				
					alert('classified name contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.edit_classified.classified_name.value="";
					document.edit_classified.classified_name.focus();
					return false;
				}
			}
	}
	return true;
}
function Validateedit_listingsFrm()
{
	if(document.getElementById("classified_name").value=="sel_grp")
	{
		alert("Please Select Classifieds Name");
		document.edit_listingsFrm.classified_name.focus();
		return false
	}	
	if(ValidatorTrim(document.edit_listingsFrm.listing_title.value)=='')
	{
			alert('Please enter Listing Title');
			document.getElementById('listing_title').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.edit_listingsFrm.listing_title.value!="")
	{
		for (var i = 0; i < document.edit_listingsFrm.listing_title.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.edit_listingsFrm.listing_title.value.charAt(i)) != -1) 
			{				
				alert('Listing Title contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper Listing Title.');
				document.edit_listingsFrm.listing_title.value="";
				document.edit_listingsFrm.listing_title.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.edit_listingsFrm.listing_title.value.charAt(i)) != -1) 
				{				
					alert('Listing Title contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.edit_listingsFrm.listing_title.value="";
					document.edit_listingsFrm.listing_title.focus();
					return false;
				}
			}
	}
	if(ValidatorTrim(document.edit_listingsFrm.listing_descr.value)=='')
	{
		alert('Please enter Listing Description');
		document.getElementById('listing_descr').focus();
		return false;		
	}
	return true;
}
function searchListingsVal()
{
	if(document.getElementById("classified_name").value=="sel_grp")
	{
		alert("Please Select Classifieds Name");
		document.findListings.classified_name.focus();
		return false
	}
	if(document.getElementById("city").value=="select")
	{
		alert("Please Select City Name");
		document.findListings.city.focus();
		return false
	}
	return true;
}
function viewPhotosDetails($photo_id)
{	
	var VS= $photo_id;
	document.photos_details.method="post";
	var VS = document.photos_details.action="photos_details.php?VS="+VS;
	document.photos_details.submit();
}
function vewsPosDetals($photo_id,$user_id)
{
	var PID= $photo_id;
	var VS= $user_id;
	document.frmPhotosDetails.method="post";
	var VS = document.frmPhotosDetails.action="view_all_photos.php?PID="+PID+"&VS="+VS;
	document.frmPhotosDetails.submit();
}
function reset_dirAddCat()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_dirCatFrm.dir_category_name.value = "";
}
function validateDirAddCat()
{
	if(ValidatorTrim(document.add_dirCatFrm.dir_category_name.value)=='')
	{
			alert('Please enter directory category name');
			document.getElementById('dir_category_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.add_dirCatFrm.dir_category_name.value!="")
	{
		for (var i = 0; i < document.add_dirCatFrm.dir_category_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.add_dirCatFrm.dir_category_name.value.charAt(i)) != -1) 
			{				
				alert('directory category name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper directory category name.');
				document.add_dirCatFrm.dir_category_name.value="";
				document.add_dirCatFrm.dir_category_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.add_dirCatFrm.dir_category_name.value.charAt(i)) != -1) 
				{				
					alert('directory category name contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.add_dirCatFrm.dir_category_name.value="";
					document.add_dirCatFrm.dir_category_name.focus();
					return false;
				}
			}
	}
	return true;
}
function validateEdit_direCate()
{
	if(ValidatorTrim(document.edit_direCate.dir_category_name.value)=='')
	{
			alert('Please enter directory category name');
			document.getElementById('dir_category_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.edit_direCate.dir_category_name.value!="")
	{
		for (var i = 0; i < document.edit_direCate.dir_category_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.edit_direCate.dir_category_name.value.charAt(i)) != -1) 
			{				
				alert('directory category name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper directory category name.');
				document.edit_direCate.dir_category_name.value="";
				document.edit_direCate.dir_category_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.edit_direCate.dir_category_name.value.charAt(i)) != -1) 
				{				
					alert('directory category name contains  numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.edit_direCate.dir_category_name.value="";
					document.edit_direCate.dir_category_name.focus();
					return false;
				}
			}
	}
	return true;
}
function reset_SubdirAddCat()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.add_dirSubCatFrm.dir_category_name.value = "sel_grp";
	document.add_dirSubCatFrm.dir_sub_category_name.value = "";
}
function validateDirSubAddCat()
{
	if(document.getElementById("dir_category_name").value=="sel_grp")
	{
		alert("Please select directory category name");
		document.add_dirSubCatFrm.dir_category_name.focus();
		return false
	}
	if(ValidatorTrim(document.add_dirSubCatFrm.dir_sub_category_name.value)=='')
	{
			alert('Please enter directory sub-category name');
			document.getElementById('dir_sub_category_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.add_dirSubCatFrm.dir_sub_category_name.value!="")
	{
		for (var i = 0; i < document.add_dirSubCatFrm.dir_sub_category_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.add_dirSubCatFrm.dir_sub_category_name.value.charAt(i)) != -1) 
			{				
				alert('directory sub-category name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper directory sub-category name.');
				document.add_dirSubCatFrm.dir_sub_category_name.value="";
				document.add_dirSubCatFrm.dir_sub_category_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.add_dirSubCatFrm.dir_sub_category_name.value.charAt(i)) != -1) 
				{				
					alert('directory sub-category name contains numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.add_dirSubCatFrm.dir_sub_category_name.value="";
					document.add_dirSubCatFrm.dir_sub_category_name.focus();
					return false;
				}
			}
	}
	return true;
}
function validateEdit_diresSubCate()
{
	if(document.getElementById("dir_category_name").value=="sel_grp")
	{
		alert("Please select directory category name");
		document.edit_direSUBCate.dir_category_name.focus();
		return false
	}
	if(ValidatorTrim(document.edit_direSUBCate.dir_sub_category_name.value)=='')
	{
			alert('Please enter directory sub-category name');
			document.getElementById('dir_sub_category_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.edit_direSUBCate.dir_sub_category_name.value!="")
	{
		for (var i = 0; i < document.edit_direSUBCate.dir_sub_category_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.edit_direSUBCate.dir_sub_category_name.value.charAt(i)) != -1) 
			{				
				alert('directory sub-category name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper directory sub-category name.');
				document.edit_direSUBCate.dir_sub_category_name.value="";
				document.edit_direSUBCate.dir_sub_category_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.edit_direSUBCate.dir_sub_category_name.value.charAt(i)) != -1) 
				{				
					alert('directory sub-category name contains numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.edit_direSUBCate.dir_sub_category_name.value="";
					document.edit_direSUBCate.dir_sub_category_name.focus();
					return false;
				}
			}
	}
	return true;
}
function reset_create_dir_listings()
{
	var R = "Are you sure you want to clear the Form?"    
	self.focus();
	document.create_dire_listings.dir_category_name.value = "dir_category_name";
	document.create_dire_listings.dir_sub_category_name.value = "dir_sub_category_name";
	document.create_dire_listings.listing_name.value = "";
	document.create_dire_listings.listing_small_descr.value = "";
	document.create_dire_listings.listing_descr.value = "";
	document.create_dire_listings.listing_url.value = "";
}
function validateDirListUser()
{
	if(document.getElementById("dir_category_name").value=="dir_category_name")
	{
		alert("Please select directory category name");
		document.create_dire_listings.dir_category_name.focus();
		return false;
	}
	if(ValidatorTrim(document.create_dire_listings.listing_name.value)=='')
	{
			alert('Please enter directory listing name');
			document.getElementById('listing_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.create_dire_listings.listing_name.value!="")
	{
		for (var i = 0; i < document.create_dire_listings.listing_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.create_dire_listings.listing_name.value.charAt(i)) != -1) 
			{				
				alert('directory sub-category name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper directory listing name.');
				document.create_dire_listings.listing_name.value="";
				document.create_dire_listings.listing_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.create_dire_listings.listing_name.value.charAt(i)) != -1) 
				{				
					alert('directory listing name contains numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.create_dire_listings.listing_name.value="";
					document.create_dire_listings.listing_name.focus();
					return false;
				}
			}
	}
	if(ValidatorTrim(document.create_dire_listings.listing_small_descr.value)=='')
	{
			alert('Please enter directory listing short description');
			document.getElementById('listing_small_descr').focus();
			return false;		
	}
	if(ValidatorTrim(document.create_dire_listings.listing_descr.value)=='')
	{
			alert('Please enter directory listing long description');
			document.getElementById('listing_descr').focus();
			return false;		
	}
	if(ValidatorTrim(document.create_dire_listings.listing_url.value)=='')
	{
			var invalid = " ";
			var length = 3;
			var minLength = 6;
			var iChars = "!@#$%^&*()+=-[]\';,./{}|\":<>?";
			if(ValidatorTrim(document.create_dire_listings.listing_url.value)=='')
			{
				alert("Please enter url address.\n e.g. google.com, xyz.com, xyz.net, xyz.info. etc...");
				document.create_dire_listings.listing_url.focus();
				return false;
			}
			
			tname = create_dire_listings.listing_url.value;				 
			
			if(tname.indexOf('.') == -1)
			{
				alert("Enter url address with extension.\n e.g. xyz.com, xyz.net, xyz.info. etc...");
				create_dire_listings.listing_url.focus();
				return false;
			}
			if (document.create_dire_listings.listing_url.value.indexOf(invalid) > -1)
			{
				alert("Sorry, spaces are not allowed in url address.\n Please enter url address along with extension.\n e.g. xyz.com, xyz.net, xyz.info. etc...");
				document.create_dire_listings.listing_url.focus();
				return false;
			}
			if (document.create_dire_listings.listing_url.value.length < length)
			{
				alert('Your url address must be ' + length + ' characters long.\n Enter url address in proper format with extension.\n e.g. xyz.com, xyz.net, xyz.info. etc...');
				document.create_dire_listings.listing_url.focus();
				return false;
			}
			if (empty(stripSpaces(document.create_dire_listings.listing_url.value)))
			{ 
				alert('url address cant be empty'); 
				document.create_dire_listings.listing_url.value=''; 
				document.create_dire_listings.listing_url.focus();
				return false;
			}
	}
	return true;
}
function validatEddeDirList()
{
	if(ValidatorTrim(document.edit_dirListingsFrm.listing_name.value)=='')
	{
			alert('Please enter directory listing name');
			document.getElementById('listing_name').focus();
			return false;		
	}
	var ifnameChars = "!@#$%^*+=\;{}\":<>?";
	var digfnamedesit = "0123456789"
	if(document.edit_dirListingsFrm.listing_name.value!="")
	{
		for (var i = 0; i < document.edit_dirListingsFrm.listing_name.value.length; i++)
		{ 
			if(ifnameChars.indexOf(document.edit_dirListingsFrm.listing_name.value.charAt(i)) != -1) 
			{				
				alert('directory sub-category name contains special characters like @,$,*,^,& etc.\nThese are not allowed.\nPlease remove them and enter proper directory listing name.');
				document.edit_dirListingsFrm.listing_name.value="";
				document.edit_dirListingsFrm.listing_name.focus();
				return false;
				}
				if(digfnamedesit.indexOf(document.edit_dirListingsFrm.listing_name.value.charAt(i)) != -1) 
				{				
					alert('directory listing name contains numbers etc.\n These are not allowed.\nPlease remove them and try again and enter only alphabates..');
					document.edit_dirListingsFrm.listing_name.value="";
					document.edit_dirListingsFrm.listing_name.focus();
					return false;
				}
			}
	}
	if(ValidatorTrim(document.edit_dirListingsFrm.listing_small_descr.value)=='')
	{
			alert('Please enter directory listing short description');
			document.getElementById('listing_small_descr').focus();
			return false;		
	}
	if(ValidatorTrim(document.edit_dirListingsFrm.listing_descr.value)=='')
	{
			alert('Please enter directory listing long description');
			document.getElementById('listing_descr').focus();
			return false;		
	}
	if(ValidatorTrim(document.edit_dirListingsFrm.listing_url.value)=='')
	{
			var invalid = " ";
			var length = 3;
			var minLength = 6;
			var iChars = "!@#$%^&*()+=-[]\';,./{}|\":<>?";
			if(ValidatorTrim(document.edit_dirListingsFrm.listing_url.value)=='')
			{
				alert("Please enter url address.\n e.g. google.com, xyz.com, xyz.net, xyz.info. etc...");
				document.edit_dirListingsFrm.listing_url.focus();
				return false;
			}
			
			tname = edit_dirListingsFrm.listing_url.value;				 
			
			if(tname.indexOf('.') == -1)
			{
				alert("Enter url address with extension.\n e.g. xyz.com, xyz.net, xyz.info. etc...");
				edit_dirListingsFrm.listing_url.focus();
				return false;
			}
			if (document.edit_dirListingsFrm.listing_url.value.indexOf(invalid) > -1)
			{
				alert("Sorry, spaces are not allowed in url address.\n Please enter url address along with extension.\n e.g. xyz.com, xyz.net, xyz.info. etc...");
				document.edit_dirListingsFrm.listing_url.focus();
				return false;
			}
			if (document.edit_dirListingsFrm.listing_url.value.length < length)
			{
				alert('Your url address must be ' + length + ' characters long.\n Enter url address in proper format with extension.\n e.g. xyz.com, xyz.net, xyz.info. etc...');
				document.edit_dirListingsFrm.listing_url.focus();
				return false;
			}
			if (empty(stripSpaces(document.edit_dirListingsFrm.listing_url.value)))
			{ 
				alert('url address cant be empty'); 
				document.edit_dirListingsFrm.listing_url.value=''; 
				document.edit_dirListingsFrm.listing_url.focus();
				return false;
			}
	}
	return true;
}
function viewCatListDetails($dir_list_id)
{
	var DLID= $dir_list_id;
	var getHere ="#getHere";
	document.frmListingsDetails.method="post";
	var DLID = document.frmListingsDetails.action="view_dir_listings_details.php?DLID="+DLID+"&getHere="+getHere;
	document.frmListingsDetails.submit();
}
function viewPopCatListDetails($dir_list_id)
{
	var DLID= $dir_list_id;
	var getHere ="#getHere";
	document.frmPopListings.method="post";
	var DLID = document.frmPopListings.action="view_dir_listings_details.php?DLID="+DLID+"&getHere="+getHere;
	document.frmPopListings.submit();
}
function viewRNDCatListDetails($dir_list_id)
{
	var DLID= $dir_list_id;
	var getHere ="#getHere";
	document.frmRndListings.method="post";
	var DLID = document.frmRndListings.action="view_dir_listings_details.php?DLID="+DLID+"&getHere="+getHere;
	document.frmRndListings.submit();
}
function viewRNDCatListDetails11($dir_sub_cat_id,$dir_cat_id)
{
	var DSLID= $dir_sub_cat_id;
	var DLID= $dir_cat_id;
	var getHere ="#getHere";
	document.allCatsLeft.method="post";
	var DSLID = document.allCatsLeft.action="view_all_subcategories.php?DSLID="+DSLID+"&DLID="+DLID+"&getHere="+getHere;
	document.allCatsLeft.submit();
}
function onClickFullDetails($dir_list_id,$dir_cat_id,$dir_sub_cat_id,$user_id)
{
	var DLSTID= $dir_list_id;
	var DCATID= $dir_cat_id;
	var DSUBCATID= $dir_sub_cat_id;
	var UID= $user_id;
	var getHere ="#getHere";
	document.viewAllListings.method="post";
	var DSLID = document.viewAllListings.action="view_dir_listings_details.php?DLSTID="+DLSTID+"&DCATID="+DCATID+"&DSUBCATID="+DSUBCATID+"&UID="+UID+"&getHere="+getHere;
	document.viewAllListings.submit();
}
function validateSearchDirectory()
{
	if(document.getElementById("dir_category_name").value=="dir_category_name")
	{
		alert("Please select directory category name");
		document.srchCateDirectory.dir_category_name.focus();
		return false
	}
	return true;
}
function viewSubCatsListins($dir_cat_id,$dir_sub_cat_id)
{
	var DCATID= $dir_cat_id;
	var DSUBCATID= $dir_sub_cat_id;
	var getHere ="#getHere";
	document.dir_listings_details.method="post";
	document.dir_listings_details.action="view_sub_cats_listings.php?DCATID="+DCATID+"&DSUBCATID="+DSUBCATID+"&getHere="+getHere;
	document.dir_listings_details.submit();
}
function viewListingsDetailsFm($dir_list_id,$dir_cat_id,$dir_sub_cat_id,$user_id)
{
	var DLSTID= $dir_list_id;
	var DCATID= $dir_cat_id;
	var DSUBCATID= $dir_sub_cat_id;
	var UID= $user_id;
	var getHere ="#getHere";
	document.dir_Sub_listings_details.method="post";
	var DSLID = document.dir_Sub_listings_details.action="view_dir_listings_details.php?DLSTID="+DLSTID+"&DCATID="+DCATID+"&DSUBCATID="+DSUBCATID+"&UID="+UID+"&getHere="+getHere;
	document.dir_Sub_listings_details.submit();
}
function onClickFullDetails11($dir_list_id,$dir_cat_id,$dir_sub_cat_id,$user_id)
{
	var DLSTID= $dir_list_id;
	var DCATID= $dir_cat_id;
	var DSUBCATID= $dir_sub_cat_id;
	var UID= $user_id;
	var getHere ="#getHere";
	document.frmListingsDetails.method="post";
	var DSLID = document.frmListingsDetails.action="view_dir_listings_details.php?DLSTID="+DLSTID+"&DCATID="+DCATID+"&DSUBCATID="+DSUBCATID+"&UID="+UID+"&getHere="+getHere;
	document.frmListingsDetails.submit();
}
function onClickFullDetails125($dir_list_id,$dir_cat_id,$dir_sub_cat_id,$user_id)
{
	var DLSTID= $dir_list_id;
	var DCATID= $dir_cat_id;
	var DSUBCATID= $dir_sub_cat_id;
	var UID= $user_id;
	var getHere ="#getHere";
	document.frmPopListings.method="post";
	var DSLID = document.frmPopListings.action="view_dir_listings_details.php?DLSTID="+DLSTID+"&DCATID="+DCATID+"&DSUBCATID="+DSUBCATID+"&UID="+UID+"&getHere="+getHere;
	document.frmPopListings.submit();
}
function onClickFullDetails124($dir_list_id,$dir_cat_id,$dir_sub_cat_id,$user_id)
{
	var DLSTID= $dir_list_id;
	var DCATID= $dir_cat_id;
	var DSUBCATID= $dir_sub_cat_id;
	var UID= $user_id;
	var getHere ="#getHere";
	document.frmRndListings.method="post";
	var DSLID = document.frmRndListings.action="view_dir_listings_details.php?DLSTID="+DLSTID+"&DCATID="+DCATID+"&DSUBCATID="+DSUBCATID+"&UID="+UID+"&getHere="+getHere;
	document.frmRndListings.submit();
}
function showSubs($dir_cat_id)
{
	var DIRCTID= $dir_cat_id;
	var getHere ="#getHere";
	document.allCatsLeft.method="post";
	var DIRCTID = document.allCatsLeft.action="view_dir_categories.php?DIRCTID="+DIRCTID+"&getHere="+getHere;
	document.allCatsLeft.submit();
}
function simpleFunction($dir_cat_id)
{
	var DIRCTID= $dir_cat_id;
	var getHere ="#getHere";
	document.simpleFrm.method="post";
	var DIRCTID = document.simpleFrm.action="view_dir_categories.php?DIRCTID="+DIRCTID+"&getHere="+getHere;
	document.simpleFrm.submit();
}
function viewDetails1()
{
	var goID1 = "1";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID = document.knowbse.action="knowledge_base.php?goID1="+goID1+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails2()
{
	var goID2 = "2";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID2 = document.knowbse.action="knowledge_base.php?goID2="+goID2+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails3()
{
	var goID3 = "3";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID3 = document.knowbse.action="knowledge_base.php?goID3="+goID3+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails4()
{
	var goID4 = "4";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID4 = document.knowbse.action="knowledge_base.php?goID4="+goID4+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails5()
{
	var goID5 = "5";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID5 = document.knowbse.action="knowledge_base.php?goID5="+goID5+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails6()
{
	var goID6 = "6";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID6 = document.knowbse.action="knowledge_base.php?goID6="+goID6+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails7()
{
	var goID7 = "7";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID7 = document.knowbse.action="knowledge_base.php?goID7="+goID7+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails8()
{
	var goID8 = "8";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID8 = document.knowbse.action="knowledge_base.php?goID8="+goID8+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails9()
{
	var goID9 = "9";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID9 = document.knowbse.action="knowledge_base.php?goID9="+goID9+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails10()
{
	var goID10 = "10";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID10 = document.knowbse.action="knowledge_base.php?goID10="+goID10+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails11()
{
	var goID11 = "11";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID11 = document.knowbse.action="knowledge_base.php?goID11="+goID11+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails12()
{
	var goID12 = "12";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID12 = document.knowbse.action="knowledge_base.php?goID12="+goID12+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails13()
{
	var goID13 = "13";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID13 = document.knowbse.action="knowledge_base.php?goID13="+goID13+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails14()
{
	var goID14 = "14";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID14 = document.knowbse.action="knowledge_base.php?goID14="+goID14+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails15()
{
	var goID15 = "15";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID15 = document.knowbse.action="knowledge_base.php?goID15="+goID15+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails16()
{
	var goID16 = "16";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID16 = document.knowbse.action="knowledge_base.php?goID16="+goID16+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails17()
{
	var goID17 = "17";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID17 = document.knowbse.action="knowledge_base.php?goID17="+goID17+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails18()
{
	var goID18 = "18";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID18 = document.knowbse.action="knowledge_base.php?goID18="+goID18+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails19()
{
	var goID19 = "19";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID19 = document.knowbse.action="knowledge_base.php?goID19="+goID19+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails20()
{
	var goID20 = "20";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID20 = document.knowbse.action="knowledge_base.php?goID20="+goID20+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails21()
{
	var goID21 = "21";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID21 = document.knowbse.action="knowledge_base.php?goID21="+goID21+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails22()
{
	var goID22 = "22";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID22 = document.knowbse.action="knowledge_base.php?goID22="+goID22+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails23()
{
	var goID23 = "23";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID23 = document.knowbse.action="knowledge_base.php?goID23="+goID23+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails24()
{
	var goID24 = "24";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID24 = document.knowbse.action="knowledge_base.php?goID24="+goID24+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewDetails25()
{
	var goID25 = "25";
	var getHere = "#getHere";
	document.knowbse.method="post";
	var goID25 = document.knowbse.action="knowledge_base.php?goID25="+goID25+"&getHere="+getHere;
	document.knowbse.submit();
}
function viewResumesDetails($resume_id,$user_id)
{
	var RID= $resume_id;
	var UID = $user_id
	var getHere ="#getHere";
	document.resumeFrmListing.method="post";
	var RID = document.resumeFrmListing.action="resume_details.php?RID="+RID+"&UID="+UID+"&getHere="+getHere;
	document.resumeFrmListing.submit();
}
function latestResumesDetails($resume_id,$user_id)
{
	var RID= $resume_id;
	var UID = $user_id
	var getHere ="#getHere";
	document.latestResumes.method="post";
	var RID = document.latestResumes.action="resume_details.php?RID="+RID+"&UID="+UID+"&getHere="+getHere;
	document.latestResumes.submit();
}
function viewAllResumesDetails($resume_id,$user_id)
{
	var RID= $resume_id;
	var UID = $user_id
	var getHere ="#getHere";
	document.viewallResumesFrm.method="post";
	var RID = document.viewallResumesFrm.action="resume_details.php?RID="+RID+"&UID="+UID+"&getHere="+getHere;
	document.viewallResumesFrm.submit();
}
