function validateadd(x)
{
if(x.fname.value=="")
	{
	alert("Please Enter First Name.");
	x.fname.focus();
	return false;
	}		
if(x.lname.value=="")
	{
	alert("Please Enter Last Name.");
	x.lname.focus();
	return false;
	}		
if(x.comp_name.value=="")
	{
	alert("Please Enter Company Name.");
	x.comp_name.focus();
	return false;
	}	
if(x.comp_url.value =="http://")
	{
	alert("Please Enter Company URL.");
	x.comp_url.focus();
	return false;
	}

if(x.phone_no.value=="")
	{

	alert("Please Enter Phone Number.");

	x.phone_no.focus();

	return false;

	}	

if(x.banner_size.value=="")

	{

	alert("Please Enter Banner Size.");

	x.banner_size.focus();

	return false;

	}	

if(x.banner_image.value=="")

	{

	alert("Please Enter Upload Banner.");

	x.banner_image.focus();

	return false;

	}	

if(x.amount_pay.value=="")

	{

	alert("Please Enter the Amount You would Pay.");

	x.amount_pay.focus();

	return false;

	}

if(document.getElementById("email_address").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email_address").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("email_address").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("email_address").focus()

			return false;

	

	}

return true;

}

function form_save_menber_sear()

{

	if(document.form_s.old_password.value=="")

	{

		alert('Old Password can not be blank');

		document.form_s.old_password.focus();

		return;

	}



	if(document.form_s.pass_word.value=="")

	{

		alert('Password can not be blank');

		document.form_s.pass_word.focus();

		return;

	}





	if(document.form_s.con_pass_word.value=="")

	{

		alert('Confirm Password can not be blank');

		document.form_s.con_pass_word.focus();

		return;

	}



	if(document.form_s.pass_word.value!=document.form_s.con_pass_word.value)

	{

		alert('Check Password & Confirm Password');

		document.form_s.con_pass_word.focus();

		return;

	}

	

	document.form_s.h_action.value="save";

	document.form_s.action="changepassword.php";

	document.form_s.submit();

}


/*<!--DELEET ACCOUNT

				var countries=new ddtabcontent("countrytabs")

				countries.setpersist(true)

				countries.setselectedClassTarget("link") //"link" or "linkparent"

				countries.init()

	-->
*/

function showreg(){

document.getElementById('register').style.display = '';

document.getElementById("yjoin").style.display = 'none';



}

function validate_prof(x){

if(x.fname.value=="")

	{

	alert("Please Enter First Name.");

	x.fname.focus();

	return false;

	}

if(x.lname.value=="")

	{

	alert("Please Enter Last Name.");

	x.lname.focus();

	return false;

	}	

if(x.city.value=="")

	{

	alert("Please Enter City.");

	x.city.focus();

	return false;

	}

if(x.state.value=="")

	{

	alert("Please Enter State.");

	x.state.focus();

	return false;

	}	
	
	for (var i=0; i < x.band_affiliated.length; i++)
	{
		if (x.band_affiliated[i].checked)
		{
			var rad_val = x.band_affiliated[i].value;
		}
	}
	if ( rad_val == "1" && x.band_name.value == "" ){
		alert("Please Enter Band Name");
		x.band_name.focus();
		return false;
	}
	if ( rad_val == "1" && x.band_genre.value == "" && x.other_genre.value == "" ){
		alert("Please Enter Band Genre");
		x.band_genre.focus();
		return false;
	}

}	

function validate(x)

{

if(document.getElementById("i_agree").checked == false){

alert("You must agree to our terms & conditions before registering yourself!");

		return false;

}

if(document.getElementById("email").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("email").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("email").focus()

			return false;

	

	}	

if(x.fathname.value=="")

	{

	alert("Please Enter First Name.");

	x.fathname.focus();

	return false;

	}

if(x.lastname.value=="")

	{

	alert("Please Enter Last Name.");

	x.lastname.focus();

	return false;

	}	

if(x.pass__word.value=="")

	{

	alert("Please Enter Password.");

	x.pass__word.focus();

	return false;

	}

if(x.con_pass__word.value == ""){

alert("Confirm password is wrong.");

x.con_pass__word.focus();

return false;

}	

if(x.password.value!=x.con_pass__word.value)

	{

	alert("Confirm password is wrong.");

	x.c_password.focus();

	return false;

	}

if(!x.i_agree.checked)

	{

		alert("You must agree to our terms & conditions before registering yourself!");

		return;

	}

return true;

}



function validatelogin(x)

{

if(document.getElementById("login_email").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("login_email").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("login_email").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("login_email").focus()

			return false;

	

	}

if(x.login_pass__word.value=="")

	{

	alert("Please Enter Password.");

	x.login_pass__word.focus();

	return false;

	}		

return true;

}

function revealModal(divID)
{
	document.form1.msgid.value="";
    document.getElementById(divID).style.display = "inline";
}

function hideModal(divID)
{
    document.getElementById(divID).style.display = "none";
}
function form_post_wall()
{
	if ( getEditorValue("comment") == "" )
	{
	   alert("Please enter Comment");
	   theForm.____BIO.focus();
	   return (false);
	}
	document.form1.do.value="save_wall";
	document.form1.submit();
}

function form_imagefren_menber()

{



	document.frendimage.h_action.value="save";

	document.frendimage.submit();

}

function form_invite(e)

{

	document.frendimage.action="invitefriend.php?id=" + e;

	document.frendimage.submit();



}

function fri_details(e)

{

	var d;

	//d="friendimage.php?id="+e;
	d="my_space.php?user_id="+e;

	//window.open(d,"Window1","menubar=no,width=600,height=500,toolbar=no,scrollbars=yes");	

	//window.open(d,"_self");

	window.location=d;

}

				/*var countries=new ddtabcontent("countrytabs")

				countries.setpersist(true)

				countries.setselectedClassTarget("link") //"link" or "linkparent"

				countries.init()
*/

/********************************************Fev VIDOE*******************************/

function form_rating(e)

{

	var r=document.getElementById("rating" + e);

	//alert(r.value);

	if(r.value=="")

	{

		alert('Select Rating Value');

		return;

	}



	document.form1.video_id.value=e;

	document.form1.do.value = "rate_video";

	document.form1.submit();

}



function form_big_delete(pid)

{

	var answer = confirm("Do You want to Delete?")

	if (answer)

	{



		document.form1.h_id.value=pid;

		document.form1.h_action.value="img_delete";

		document.form1.submit();

	}

}
function delete_video(pid)

{

	var answer = confirm("Do You want to Delete?")

	if (answer)

	{

		document.form1.video_id.value = pid;

		document.form1.do.value="delete_video";

		document.form1.submit();

	}

}

function form_big(pid)

{

	var d;

	d="photobig.php?pid=" + pid;

	window.open(d,"Window1","menubar=no,width=700,height=700,toolbar=no,scrollbars=yes");	



}

/******************************************************************************/

function wall_delete(e)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.wall_id.value = e;
		document.form1.do.value="wall_delete";
		document.form1.submit();
	}
}


function form_news_delete(e)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.h_id.value=e;
		document.form1.h_action.value="wall_delete news";
		document.form1.submit();
	}
}
/*
function form_post_wall()
{
	document.form1.h_action.value="save_wall";
	document.form1.submit();
}*/

function wall_video(e)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.h_id.value=e;
		document.form1.h_action.value="delete video";
		document.form1.submit();
	}
}

function showme(){
document.getElementById('commentpan').style.display = "";
document.getElementById('hidecom').style.display="";
document.getElementById('showcom').style.display="none";
}
function hidecomm(){
document.getElementById('commentpan').style.display="none";
document.getElementById('hidecom').style.display="none";
document.getElementById('showcom').style.display="";
}

/*****************************************************************/

/***********************************INITE FREN*/////////////////////////


function form_invite_menber()

{

	document.form_invite.h_action.value="onsave";

	document.form_invite.action="invitefriend.php";

	document.form_invite.submit();

}

/***************************************************************************/

function validateadd(x)

{

if(x.comp_url.value =="http://")

	{

	alert("Please Enter Company URL.");

	x.comp_url.focus();

	return false;

	}			

if(x.cell_number.value=="")

	{

	alert("Please Enter Cell Number.");

	x.cell_number.focus();

	return false;

	}	

if(x.telephone_number.value=="")

	{

	alert("Please Enter Banner Size.");

	x.telephone_number.focus();

	return false;

	}	

if(document.getElementById("email_address").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email_address").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("email_address").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("email_address").focus()

			return false;

	

	}

return true;

}

/************************************************************************/

function submitme(id){

window.location='my_bid.php?sl_id='+id;

}

function validate(x)

{

if(x.video.value=="")

	{

	alert("Please Select the Video Name.");

	x.video.focus();

	return false;

	}

return true;

}

/*******************************************************************************************/

/*function wall_delete(e)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.h_id.value=e;
		document.form1.h_action.value="wall_delete";
		document.form1.submit();
	}
}*/


function form_news_delete(e)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.h_id.value=e;
		document.form1.h_action.value="wall_delete news";
		document.form1.submit();
	}
}

/*function form_post_wall()
{
	document.form1.h_action.value="save_wall";
	document.form1.submit();
}*/

function wall_video(e)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.h_id.value=e;
		document.form1.h_action.value="delete video";
		document.form1.submit();
	}
}

function showme(){
document.getElementById('commentpan').style.display = "";
document.getElementById('hidecom').style.display="";
document.getElementById('showcom').style.display="none";
}
function hidecomm(){
document.getElementById('commentpan').style.display="none";
document.getElementById('hidecom').style.display="none";
document.getElementById('showcom').style.display="";
}

/********************************************************************************************/
function form_delete_menber()

{

	var answer = confirm("Do You want to Delete?")

	if (answer)

	{

		document.delacc.h_action.value="save";

		document.delacc.action="deleteaccount.php";

		document.delacc.submit();

	}

}


/********************************MY FRENS**************************************/

function form_send_message(e)
{
	document.form1.action="sendmessage.php?id=" + e + "&hi=";
	document.form1.submit();

}
function form_accept_invite(e)
{
	document.form1.h_action.value="savecaaept";
	document.form1.h_id.value=e;
	document.form1.submit();
}
function form_dny_invite(e)
{
	document.form1.h_action.value="savedeny";
	document.form1.h_id.value=e;
	document.form1.submit();

}
function fri_details_my(e)
{
	//window.location="friendimage.php?id=" + e;
	window.location="my_space.php?user_id="+e;
	//window.open(d,"Window1","menubar=no,width=600,height=500,toolbar=no,scrollbars=yes");	
	//window.open(d,"_self");	

}
function showinfo(id){
	document.getElementById('info'+id).style.display = '' ;
	document.getElementById('detailme'+id).style.display = 'none' ;
	}
function detail(id){
	document.getElementById('info'+id).style.display = 'none' ;
	document.getElementById('detailme'+id).style.display = '' ;
	}	

/****************************************************************************************/

function form_send_message_msg(e,f)

{

	document.form1.action="sendmessage.php?id=" + e + "&hi=" + f;

	document.form1.submit();



}

function showmessage(e,f)

{

	document.form1.action="showmessage.php?id=" + e + "&sr=" + f;

	document.form1.submit();

}

function form_send_delete()

{

	document.form1.h_action.value="delete";

	document.form1.submit();

}

/*******************************************************************/

function form_big_delete_mypic(pid)

{

	var answer = confirm("Do You want to Delete?")

	if (answer)

	{



		document.form1.h_id.value=pid;

		document.form1.h_action.value="img_delete";

		document.form1.submit();

	}

}
function delete_pic(pid)
{
	var answer = confirm("Do You want to Delete?")
	if (answer)
	{
		document.form1.photo_id.value=pid;
		document.form1.do.value="delete_photo";
		document.form1.submit();
	}
}

function form_big(pid)

{

	var d;

	d="photobig.php?pid=" + pid;

	window.open(d,"Window1","menubar=no,width=700,height=700,toolbar=no,scrollbars=yes");



}


/*****************************************************************/

function form_big_delete_video(pid)

{

	var answer = confirm("Do You want to Delete?")

	if (answer)

	{



		document.form1.h_id.value=pid;

		document.form1.h_action.value="img_delete";

		document.form1.submit();

	}

}

function form_big_vid(pid)

{

	var d;

	d="photobig.php?pid=" + pid;

	window.open(d,"Window1","menubar=no,width=700,height=700,toolbar=no,scrollbars=yes");	



}

/**********************************//*********************///////////////

function form_post_wall_photo()

{

	document.form1.h_action.value="save_comments";

	document.form1.submit();

}

/**********************************//*********************///////////////

function form_post_wall_photo_load()

{

	if(document.form1.title.value=="")

	{

		alert('Enter Title');

		document.form1.title.focus();

		return;

	}

	if(document.form1.photo_1.value=="")

	{

		alert('Select Photo');

		return;

	}



	var answer = confirm("Are you sure you want to upload this photo ?")

	if (answer)

	{



	document.form1.h_action.value="save_wall";

	document.form1.submit();

	}

}


/********************************************************************/

function validate_send_msg(x){
if(x.id.value=="")
	{
	alert("Please Select the Friend.");
	x.id.focus();
	return false;
	}
if(x.subject.value=="")
	{
	alert("Please Enter Subject.");
	x.subject.focus();
	return false;
	}
if(x.message.value=="")
	{
	alert("Please Enter Message.");
	x.message.focus();
	return false;
	}
return true;
}
function revealModal(divID)
{
	document.form1.msgid.value="";
    document.getElementById(divID).style.display = "inline";
}

function hideModal(divID)
{
    document.getElementById(divID).style.display = "none";
}
/*function form_post_wall()
{
	document.form1.h_action.value="save_wall";
	document.form1.submit();
}*/

function form_save_menber()
{
	document.form1.h_action.value="onsave";
	document.form1.action="sendmessage.php";
	document.form1.submit();
}
function friendid(id){
window.location='sendmessage.php?id='+id;
}

/*************************************************************************/

function form_send_message(e)

{

	document.form1.action="sendmessage.php?id=" + e;

	document.form1.submit();



}

/*****************************************************************************/

function form_save_menber_showmsg(e)

{

	document.form1.h_action.value="onsave";

	document.form1.h_id.value=e;

	document.form1.submit();

}


/***********************************************************************/

function form_send_message_2(e,f)

{

	document.form1.action="sendmessage.php?id=" + e + "&hi=" + f;

	document.form1.submit();



}


function form_send_delete_2()

{

	document.form1.h_action.value="delete";

	document.form1.submit();

}

/************************************************************************/

function validate_sighin(x)

{

if(document.getElementById("i_agree").checked == false){

alert("You must agree to our terms & conditions before registering yourself!");

		return false;

}



if(x.fname.value=="")

	{

	alert("Please Enter First Name.");

	x.fname.focus();

	return false;

	}

if(x.lname.value=="")

	{

	alert("Please Enter Last Name.");

	x.lname.focus();

	return false;

	}

if(x.country.value=="")

	{

	alert("Please Enter Country Name.");

	x.country.focus();

	return false;

	}

if(x.city.value=="")

	{

	alert("Please Enter City Name.");

	x.city.focus();

	return false;

	}

if(x.state.value=="")

	{

	alert("Please Enter State Name.");

	x.state.focus();

	return false;

	}	

if(document.getElementById("email").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("email").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("email").focus()

			return false;

	

}		

if(x.pass_word.value=="")

	{

	alert("Please Enter Password.");

	x.pass_word.focus();

	return false;

	}

if(x.con_pass_word.value == ""){

alert("Confirm password is wrong.");

x.con_pass_word.focus();

return false;

}	

if(x.password.value!=x.con_pass_word.value)

	{

	alert("Confirm password is wrong.");

	x.c_password.focus();

	return false;

	}

return true;

}

function validatelogin(x)

{

if(document.getElementById("login_email").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("login_email").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("login_email").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("login_email").focus()

			return false;

	

	}

if(x.login_pass_word.value=="")

	{

	alert("Please Enter Password.");

	x.login_pass_word.focus();

	return false;

	}		

return true;

}

/****************************************************************************************/

function validate_signup(x)

{

	
	
	
if(document.getElementById("i_agree").checked == false){

alert("You must agree to our terms & conditions before registering yourself!");

		return false;

}



if(x.fname.value=="")

	{

	alert("Please Enter First Name.");

	x.fname.focus();

	return false;

	}

if(x.lname.value=="")

	{

	alert("Please Enter Last Name.");

	x.lname.focus();

	return false;

	}

if(x.country.value=="")

	{

	alert("Please Enter Country Name.");

	x.country.focus();

	return false;

	}

if(x.city.value=="")

	{

	alert("Please Enter City Name.");

	x.city.focus();

	return false;

	}

if(x.state.value=="")

	{

	alert("Please Enter State Name.");

	x.state.focus();

	return false;

	}	

if(document.getElementById("email").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("email").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("email").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("email").focus()

			return false;

	

}		

if(x.pass_word.value=="")

	{

	alert("Please Enter Password.");

	x.pass_word.focus();

	return false;

	}

if(x.con_pass_word.value == ""){

alert("Confirm password is wrong.");

x.con_pass_word.focus();

return false;

}	

if(x.pass_word.value!=x.con_pass_word.value)

	{

	alert("Confirm password is wrong.");

	x.c_password.focus();

	return false;

	}

for (var i=0; i < x.band_affiliated.length; i++)
	{
		if (x.band_affiliated[i].checked)
		{
			var rad_val = x.band_affiliated[i].value;
		}
	}
	if ( rad_val == "1" && x.band_name.value == "" ){
		alert("Please Enter Band Name");
		x.band_name.focus();
		return false;
	}
	if ( rad_val == "1" && x.band_genre.value == "" && x.other_genre.value == "" ){
		alert("Please Enter Band Genre");
		x.band_genre.focus();
		return false;
	}
return true;

}



function validate_signuplogin(x)

{
	
	

if(document.getElementById("login_email").value.length > 0){

		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("login_email").value)){

		

			alert("Invalid E-mail Address! Please re-enter.")

			document.getElementById("login_email").focus()

			return false;

		}

	}else{

			alert("Email address is empty.")

			document.getElementById("login_email").focus()

			return false;

	

	}

if(x.login_pass_word.value=="")

	{

	alert("Please Enter Password.");

	x.login_pass_word.focus();

	return false;

	}	

	

return true;

}

/*************************************************************************/

function validate_edit(x){

if(x.fname.value=="")

	{

	alert("Please Enter First Name.");

	x.fname.focus();

	return false;

	}

if(x.lname.value=="")

	{

	alert("Please Enter Last Name.");

	x.lname.focus();

	return false;

	}	

if(x.city.value=="")

	{

	alert("Please Enter City.");

	x.city.focus();

	return false;

	}

if(x.state.value=="")

	{

	alert("Please Enter State.");

	x.state.focus();

	return false;

	}		

}	


/***********************************************************************/

function form_post_wall_1()



{

	if ( getEditorValue("walls") == "" )
	{
	   alert("Please enter Comment");
	   theForm.____BIO.focus();
	   return (false);
	}

	document.form1.h_action.value="save_comments";



	document.form1.submit();



}



function showme(){



document.getElementById('commentpan').style.display = "";



document.getElementById('hidecom').style.display="";



document.getElementById('showcom').style.display="none";



}



function hidecomm(){



document.getElementById('commentpan').style.display="none";



document.getElementById('hidecom').style.display="none";



document.getElementById('showcom').style.display="";



}



function fri_details(e)



{



	window.location="my_space.php?user_id="+e;



	//window.open(d,"Window1","menubar=no,width=600,height=500,toolbar=no,scrollbars=yes");	



	//window.open(d,"_self");	







}



/*************************************************************************************/

function form_submit()

{

	if(document.form1.txtname.value=="")

	{

		window.alert('Enter Video Name!!');

		document.form1.txtname.focus();

		return;

	}

	if(document.form1.txtdesc.value=="")

	{

		window.alert('Enter Video Short Description!!');

		document.form1.txtdesc.focus();

		return;

	}

	if(document.form1.file1.value=="")

	{

		window.alert('Upload the Video!!');

		document.form1.file1.focus();

		return;

	}



	document.form1.h_action.value="save";


	document.form1.submit();

}

/**************************************************************/

function searchvideo(keyword){

window.location='videos.php?keyword='+keyword ;

}

/**********************************************************************/


function form_save_menber_search()

{



	document.form1.h_action.value="save";

	document.form1.submit();

}

function form_invite(e)

{

	document.form1.action="invitefriend.php?id=" + e;

	document.form1.submit();



}

function fri_details(e)

{

	var d;

	//d="friendimage.php?id="+e;
	d="my_space.php?user_id="+e;

	//window.open(d,"Window1","menubar=no,width=600,height=500,toolbar=no,scrollbars=yes");	

	//window.open(d,"_self");

	window.location=d;

}
function searchvideo_cat(video, cat_id){
	window.location='videos.php?videoname='+video+'&cat_id='+cat_id ;
}



function getEditorValue( instanceName )
{ 
   // Get the editor instance that we want to interact with.
   var oEditor = FCKeditorAPI.GetInstance( instanceName ) ;
   // Get the editor contents as XHTML.
   return oEditor.GetXHTML( true ) ;  // "true" means you want it formatted.
} 
function GetXmlHttpObject()
{
	  var xmlHttp=null;
	  try
		{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		}
	  catch (e)
		{
		// Internet Explorer
		try
		  {
		  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		catch (e)
		  {
		  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		}
	  return xmlHttp;
}
function addAddictScore(video_id,user_id) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		  alert ("Your browser does not support AJAX!");
		  return;
	}
	if ( user_id == "" ) {
		alert("Please log in to activate this control");	
		return false;
	}
	var url = "ajax.php?show=AddAddictScore&video_id="+video_id;
	xmlHttp.onreadystatechange=function(){
		if (xmlHttp.readyState == 4 && xmlHttp.status >= 400)
		{ 
			document.getElementById("addict_score_id").innerHTML=xmlHttp.responseText;
		}	
	};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}