var availableID = false; 

function addtoCart(id,type,d_id,upc,count,dig_id,artistname)
{	
	document.jForm.target = "ifrm";
	name_id="pname_"+id;
	//alert(name_id);
	product_name=document.getElementById(name_id).innerHTML;
	product_name=escape(product_name);
	d_id=escape(d_id);
	
 	url="../shoppingCart/operateItems.php?opr=1&itemid="+d_id+"&type="+type+"&name="+product_name+"&aname="+artistname+"&upc="+upc+"&count="+count+"&dig_id="+dig_id;

 	document.jForm.action = url;
	document.jForm.submit();
}
function addtoCartinPromo(id,type,d_id,upc,count,dig_id,artistname)
{	
	document.jForm.target = "ifrm";
	name_id="pname_"+id;
//	alert(name_id);
	product_name=document.getElementById(name_id).innerHTML;
	product_name=escape(product_name);
	d_id=escape(d_id);
	
 	url="../shoppingCart/operateItems.php?opr=23&itemid="+d_id+"&type="+type+"&name="+product_name+"&aname="+artistname+"&upc="+upc+"&count="+count+"&dig_id="+dig_id;
 //alert(url);
 	document.jForm.action = url;
	document.jForm.submit();
}
function addPromitonProductToCart(type,dig_id,product_name,artistname)
{
	document.jForm.target = "ifrm";
	product_name=escape(product_name);
	artistname=escape(artistname);
	d_id=escape(dig_id);	
 	url="../shoppingCart/operateItems.php?opr=11&itemid="+d_id+"&type="+type+"&name="+product_name+"&aname="+artistname+"&upc=&count=1&dig_id="+d_id;
 	//alert(url);
 	document.jForm.action = url;
	document.jForm.submit();
}
function show_cart_info()
{
	if(document.getElementById("s_sc")!="")
	{
		s_r=Math.round(Math.random()*10000);
		url='../shoppingCart/ShowShoppingCartinfo.php?tmp='+s_r;
		//alert(url);
		$('#s_sc').load(url);
	}
}
function show_cart_info_al(auto,id,name,aname)
{
	
	if(document.getElementById("s_sc")!="")
	{
		s_r=Math.round(Math.random()*10000);
		url='../shoppingCart/ShowItemsForPromo.php?tmp='+s_r+"&auto="+auto+"&id="+id+"&name="+name+"&aname="+aname;
		//alert(url);
		$('#s_sc').load(url);
	}
}
function checkPromotion(p_check)
{
	if(p_check=="2"||p_check=="3"||p_check=="4"||p_check=="5")
	{
		form=document.jForm;
		form.target = "ifrm";
	}
	else
	{
		form=document.shoppingForm;
		form.target = "upcart";
	}	
	//alert("../shoppingCart/OperationPromotion.php?opr=1&p_check="+p_check);
	var url = "../shoppingCart/OperationPromotion.php?opr=1&p_check="+p_check;
    if(document.getElementById('albumID')!=null && document.getElementById('albumID').value!="")
    {
    	url+="&albumID="+document.getElementById('albumID').value;
    }	
    form.action = url;
	form.submit();
	
}
function updatePromotion(type)
{
	document.shoppingForm.target = "upcart";
	document.shoppingForm.action = "../shoppingCart/OperationPromotion.php?opr=2&type="+type;
	document.shoppingForm.submit();	
}
function cancelPromotion(p_check)
{ 
	if(p_check=="2"||p_check=="3"||p_check=="4"||p_check=="5")
	{
		form=document.jForm;
		form.target = "ifrm";
	}
	else
	{
		form=document.shoppingForm;
		form.target = "upcart";
	}
	url = "../shoppingCart/OperationPromotion.php?opr=2&p_check="+p_check;
    if(document.getElementById('albumID')!=null && document.getElementById('albumID').value!="")
    {
    	url+="&albumID="+document.getElementById('albumID').value;
    }	
    aHeight=$(document).height();
	$("#TB_ajaxContent").css("height",oheight);
    form.action = url;
	form.submit();	
	//show_cart_info();
}
function showPromotionProduct(type,proproductid)
{
	if(type=="buycd") //for buy cd get free download
	{
		pid=escape(proproductid);
		url="../shoppingCart/ShowPromitonProduct.php?protype=1&pid="+pid;
		//alert(url);
    	$.get(url, function(data){
    		//alert("Data Loaded: " + data);
    		  if(data!="")
    		  {					

    			 //$("#TB_ajaxContent").css("height",aHeight);
    			  $("#showPromotionProduct",window.parent.document).html(data);
    		  }    		  
    		}); 
	}
}
function getCheckedValue(radioObj) {

	//alert(radioObj);
	var radioLength = radioObj.length;
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

function checkPromotionBeforeDelete(number)
{
	// default setup for jQuery Confirmation Box
	$.alerts.dialogClass = "style_1";
	$.alerts.okButton = "Ok";
	$.alerts.cancelButton = "Cancel"; 	
	
	//check to see if there is promotion applied, if there is, we need to remove it
	//before being able to delete an item off the shopping cart
	//alert(document.getElementById('promocode').value);
	if(document.getElementById('promocode')!=null && document.getElementById('promocode').value!="")
	{

		var confirm = "To remove an item from the shopping cart, you must first remove the '"+document.getElementById('promocode').value+"' promotion.\n\n" +
						 "'"+document.getElementById('promocode').value+"' promotion details: \n"+document.getElementById('promodetails').value+".\n\n" +
						 "Click OK to remove the '"+document.getElementById('promocode').value+"' promotion along with the item you wish to remove, \nor Click Cancel to abort operation.";

		jConfirm(confirm,"My Shopping Cart - Promotion and Item Removal", function(cf){
			if(cf)
			{
				//cancelPromotion('14');
				url = "../shoppingCart/OperationPromotion.php?opr=2&p_check=14";
				$.get(url, function(data){
		    		//alert("Data Loaded: " + data);
		    		if(data.indexOf("Promotion Removed")>0)
		    		{
		    			jAlert("'"+parent.document.getElementById('promocode').value+"' promotion has been removed.\n");
		    			deleteItemSmallShoppingCart(number);
		    		}
		    		else
		    		{
		    			jAlert("Error: Failed to remove promotion.");
		    		}
		    	});
			}
		
		});
	}
	//if no promotion is applied, prompt user to delete item
	else
	{
		jConfirm("Do you want to delete this item from your cart?\n\n","My Shopping Cart - Item Removal", function(cf){
		     if (cf == true)
		     {
		    	 deleteItemSmallShoppingCart(number);
		     } 			
		});
	}
}

function deleteItemSmallShoppingCart(number)
{
	// default setup for jQuery Confirmation Box
	$.alerts.dialogClass = "style_1";
	
	form=document.jForm;
	form.target = "ifrm";
	
    var url="../shoppingCart/operateItems.php?opr=2&number="+number+"&p_check=14";
    if(document.getElementById('albumID')!=null && document.getElementById('albumID').value!="")
    {
    	url+="&albumID="+document.getElementById('albumID').value;
    }    
	
	var item="item_"+number;
	if(document.getElementById(item)!=null)
	{
		//alert("item exists");
		parent.document.getElementById(item).style.color="#aeacac";
	}
	var icon="icon_"+number;
	if(document.getElementById(icon)!=null)
	{
		//alert("number exists");
		parent.document.getElementById(icon).style.visibility="hidden";
	}

	form.action = url;
	form.submit();	 	
	/*
	$.get(url, function(data){
		//alert("Data Loaded: " + data);
		if(data.indexOf("Shopping Cart Item Removed")>0)
		{	
			var s_r=Math.round(Math.random()*10000);
			var url="../shoppingCart/showQuickShoppingInfo.php?tmp="+s_r;
			$("#quickShoppingCart").load(url);
			//alert("shoppin refreshed?");
		}
		else
		{
			jAlert("Error: Failed to remove item from shopping cart.");
		}		
	});	
	*/
}

function deleteItem(number)
{
	// default setup for jQuery Confirmation Box
	$.alerts.dialogClass = "style_1";
	$.alerts.okButton = "Ok";
	$.alerts.cancelButton = "Cancel"; 	
	var url = "";
	jConfirm("Do you want to delete this item from your cart?\n\n","My Shopping Cart - Item Removal", function(cf){
	     if(cf)
	     {
	    	 // check if the shopping form exists, this applies to both the mini shopping cart
	    	 // as well as the normal shopping cart
		    if(document.shoppingForm==null)
		    {
		    	form=document.jForm;
		   	 	form.target = "ifrm";
		   	 	url ="../shoppingCart/operateItems.php?opr=2&number="+number+"&p_check=4";
		    }
		    else if(document.shoppingForm!=null)
		    {
		    	form=document.shoppingForm;
		 	    url="../shoppingCart/operateItems.php?opr=2&number="+number;
		 	    if(document.getElementById('albumID')!=null && document.getElementById('albumID').value!="")
		 	    {
		 	    	url+="&albumID="+document.getElementById('albumID').value;
		 	    }
		 		 form.target = "upcart";
		    }
		    else
		    {
		    	alert("Error: No form has been detected. Please contact the administrator for assistance.");
		    }
	    	
	    	var item="item_"+number;
	    	if(document.getElementById(item)!=null)
	    	{
	    		document.getElementById(item).style.color="#aeacac";
	    	}
	    	var icon="icon_"+number;
	    	if(document.getElementById(icon)!=null)
	    	{
	    		document.getElementById(icon).style.visibility="hidden";
	    	}
	    	var num="num_"+number;
	    	if(document.getElementById(num)!=null)
	    	{
	    		document.getElementById(num).style.visibility="hidden";
	    	}
	    	form.action = url;
	    	form.submit();	 
	     }		
	});
}
function changeItem(number)
{
	 
	field_name="num_"+number;
	field_b_name="numb_"+number;
	field_obj=document.getElementById(field_name);
	if (!fieldNumCheck(field_obj))
	{
		field_obj.value=document.getElementById(field_b_name).value;
		field_obj.focus();
		return false;
	}
	if(field_obj.value>9)
	{
		alert("Quantity of one product should be less than 10.");
		field_obj.value=document.getElementById(field_b_name).value;
		field_obj.focus();
		return false;
	}
	document.getElementById(field_b_name).value=document.getElementById(field_name).value;
	url="../shoppingCart/operateItems.php?opr=3&number="+number;
	if(original_link.indexOf("albumID=")>0)
	{
		url+="&"+original_link.substring(original_link.indexOf("albumID="));
	}
	 	//alert(url);
	 document.shoppingForm.target = "upcart";
	 document.shoppingForm.action = url;
	 document.shoppingForm.submit();	
}

function CheckOut(link)
{
	tb_show("Your Order Information",link);
}
function CheckOutType()
{
	//if (formInfoValidate())
	//{
	//	tb_show("Your Order Information",link);
	//}
	var s_member=document.jForm.showuserinfo.value;
	if(s_member=="0") //new user
	{	
		if (formInfoValidate())
		{
			url="../shoppingCart/CheckOutSaveUserinfo.php";
			document.jForm.target = "ifrm";
			document.jForm.action = url;
			document.jForm.submit();
			
			
		}
	}
	else if(s_member=="1") //register user
	{
		alert("ttt");
		if(document.jForm.email_re!=null)
		{
			if(document.jForm.email_re.value.length < 1) {
				alert("Please input User Email!!!")
				document.jForm.email_re.focus();
				return false;
			} else if(document.jForm.userPass_re.value.length < 1) {
				alert("Please input Password!!!")
				document.jForm.userPass_re.focus();
				return false;
			}
		}
		url="../shoppingCart/CheckOutforRegister.php";
		document.jForm.target = "ifrm";
		document.jForm.action = url;
		document.jForm.submit();
		
	}	
}
function fieldNumCheck(fieldObject)
{
	if (isNaN(fieldObject.value)||fieldObject.value=="")
	{
		alert("Please enter only numerical values.");
		fieldObject.focus();
		fieldObject.value="";
		return false;
	}
	return true;
}
function researchJukeBox(page)
{
	url='../jukebox/showSongList.php?view_page=0&p='+page+'&artist=&year=&album=&song=&genra=';
	//alert(url);
	$('#showList').load(url);
	
}
function searchJukeBox(view_page,page,type)
{
	if(document.getElementById("search_center")!=null)
	document.getElementById("search_center").style.display="none";
	if(document.getElementById("search_process")!=null)
	document.getElementById("search_process").style.display="";	

	
	artist=document.getElementById("artist").value;
	album=document.getElementById("album").value;

	song=document.getElementById("song").value;
	if(document.getElementById("artist_quote").value=="1" && artist!="")
	{
		artist=addExactSearch(artist);
		document.getElementById("artist").value=artist;
	}
	if(document.getElementById("album_quote").value=="1" && album!="")
	{
		album=addExactSearch(album);
		document.getElementById("album").value=album;
	}	
	if(document.getElementById("song_quote").value=="1" && song!="")
	{
		song=addExactSearch(song);
		document.getElementById("song").value=song;
	}	
	artist=escape(artist);
	year=document.getElementById("year").value;
	
	album=escape(album);
	song=escape(song);
	var genra=document.getElementsByName("genra");
	//var elements = document.getElementsByName('id');
	var allid="";
	for(var i=0;i<genra.length;i++)
	{
		if(genra[i].checked)
	    {
			allid+=genra[i].value+",";			
	    }
	}

	allid=allid.substring(0,allid.lastIndexOf(','));
	document.jForm.target = "center_bottom";
	from="";
	if(page=="")
	{
		from="welcome";
	}
	if(type=="4")
	{
		url='../jukebox/showRingTone.php?view_page=0&artist='+artist+'&year='+year+'&album='+album+'&song='+song+'&genra='+allid;
	}	
	else
	{	
		url='../?p=listsong&view_page=0&artist='+artist+'&year='+year+'&album='+album+'&song='+song+'&genra='+allid+'&from='+from+'&search=1';
	}
	$('#showList').load(url);
	

}
function redballClick(value)
{
	var genra=document.getElementsByName("genra");
	i=value-1;
	if(genra[i].checked)
	{
		genra[i].checked = false;
	}
	else
	{
		genra[i].checked = true;
	}
}


function showMyCart()
{
	
	$('#center_bottom').load('../jukebox/jukebox.php');
	
}
function playSongPreview(id)
{
	
}
//======================================
function showArtistMusic(name,page)
{
	document.getElementById('artist').value=name;
	name=escape(name);
	url='../jukebox/showSongList.php?view_page=0&artist='+name;
	//alert(url);
	$('#showList').load(url);
}
//========================================
function showAlbumMusic(name,artist,page)
{
	//document.getElementById('album').value=name;
	document.getElementById('artist').value='"'+artist+'"';
	name=escape('"'+name+'"');
	artist=escape('"'+artist+'"');
	
	url='../jukebox/showSongList.php?view_page=0&p='+page+'&artist='+artist+'&album='+name;
	//alert(url);
	document.getElementById("search_process").style.display="";	
	document.getElementById("search_center").style.display="none";
	$('#showList').load(url);
}
//=====================================
function buttonClick(letter)
{
	//document.getElementById(letter).style.background="url('http://localhost/iOldies/images/main/letter_button_click.gif')";
	//document.getElementById(letter).style.backgroundPositionY="-40px";
	//alert(letter);
	//alert(checkname);
	
	if(checkname=="")
		obj=document.getElementById('album');
	else
		obj=document.getElementById(checkname);
	if(letter=='ENTER')
		obj.value+='';
	else if (letter=='SPACE')
		obj.value+=' ';
	else if (letter=='-')
		obj.value=obj.value.substring(0,(obj.value.length)-1);
	else
		obj.value+=letter;

	
}
function closeAlbum()
{
	document.getElementById("center_top").style.display="";
	document.getElementById("show_photos").style.display="none";
	//$('#show_photos').load('jukebox/loadfile.php');	
	var browser;

}

//==============================================
function closeJukebox(geId)
{
	//alert(bcImage);	
	document.getElementById("center_top").style.display="";
	$('#usesignin').load('userInfo/UserSignIn.php')
	document.getElementById("center_bottom").style.display="none";
	document.getElementById("center_bottom_tv").style.display="none";
	//$('#center_bottom').load('jukebox/loadfile.php');	
	 $('#showList').load('jukebox/loadfile.php');
	getYear=document.getElementById("year").value;
    
	startyear=getYear.substr(0,4); 
	if(startyear >= 1980 && startyear <= 1989)
	{
		//document.getElementById("bbc").style.backgroundImage="url(images/main/80s.jpg)";
		location.href = "/?bgselect=80";
		bcImage='80';
	}
	else if(startyear >= 1970 && startyear <= 1979)
	{
		//document.getElementById("bbc").style.backgroundImage="url(images/main/70s.jpg)";
		location.href = "/?bgselect=70";
		bcImage='70';
	}
	else if(startyear >= 1960 && startyear <= 1969)
	{
	
		//document.getElementById("bbc").style.backgroundImage="url(images/main/60s.jpg)";
		location.href = "/?bgselect=60";
		bcImage='60';
	}
	else if(startyear >= 1950 && startyear <= 1959)
	{
		//document.getElementById("bbc").style.backgroundImage="url(images/main/50s.jpg)";
		location.href = "/?bgselect=50";
		bcImage='50';
	}
	else
	{
		//document.getElementById("bbc").style.backgroundImage="url(images/main/landing_default.jpg)";
		//bcImage='';
	}
	var browser;
	browser=window.navigator.userAgent;
	if (browser.indexOf("MSIE")>=1 && browser.indexOf("America Online")==-1 )
	{
		$f("player").play();
	}
	  cache: false;
	//if($f("player")!=null)
	//{
	//	$f("player").play();
	//}
	//if($f("playerMusic")!=null)
	//{
		//$f("playerMusic").play();
	//}
		
	
}
function closeAllJukebox()
{

	var getYear=document.getElementById("year").value;   
	startyear=getYear.substr(0,4); 
	if(startyear >= 1980 && startyear <= 1989)
	{
		location.href = "/?bgselect=80";
	}
	else if(startyear >= 1970 && startyear <= 1979)
	{
		location.href = "/?bgselect=70";
	}
	else if(startyear >= 1960 && startyear <= 1969)
	{
		location.href = "/?bgselect=60";
	}
	else if(startyear >= 1950 && startyear <= 1959)
	{
		location.href = "/?bgselect=50";
	}
	else
	{
		location.href="/";
	}
	
}

function addQuote(image,filed,search)
{

	if(document.getElementById(filed).value=="1")
	{
		document.getElementById(filed).value="0";
		document.getElementById(search).value=deleteExactSearch(document.getElementById(search).value);
	}
	else
	{
		document.getElementById(filed).value="1";
		document.getElementById(search).value= addExactSearch(document.getElementById(search).value);
	}

	imagelink=document.getElementById(image).src;
	if(imagelink.indexOf("artistQuotesOn.gif")>0)
	{
		document.getElementById(image).src="images/main/artistQuotesOff.gif";
	}
	else
	{
		document.getElementById(image).src="images/main/artistQuotesOn.gif";
	}
}

function addExactSearch(value)
{

	value=value.replace(/"/g,"");	
	value='"'+value+'"';
	return value;
}
function deleteExactSearch(value)
{
	value=value.replace(/"/g,"");	
	return value;
}

function becomeMem()
{
	
}
//already a member
function alreadyMember()
{
	tb_show("Log in Page","userInfo/UserSignInForAjax.php?height=200&width=430");
}
function showNoDownloadInfo(position)
{
	$.alerts.dialogClass = "style_1";
	if(position=="1")
	{
		$.alerts.verticalOffset=-200;
	}	
	else
	{
		$.alerts.verticalOffset=-75;
	}	
	jAlert("Downloads are not available at this time in your country .<br>Check out the jukebox that's filled with up to 15 million CD's.<br>We will be delighted to ship one to you",
			"Download Information", function(r) {});
}
function showMaintenance(position,type)
{
	$.alerts.dialogClass = "style_1";
	if(position=="1")
	{
		$.alerts.verticalOffset=-200;
	}	
	else
	{
		$.alerts.verticalOffset=-75;
	}	
	if(type==0)
	{
		jAlert("Service is under maintenance.<br>Please try again later.",
				"Maintenance Information", function(r) {});
	}
}
function previewMusic(id,type)
{
	link="../jukebox/playMusic.php?id="+id+"&type="+type;

	$('#previewMusicOnPage').load(link);	
	
}
function formInfoValidate()
{
	
	
	if(document.jForm.email.value.length < 1) {
		alert("Please insert email for becoming a member!!!")
		document.jForm.email.focus();
		return false;
	} else if(document.jForm.userPass.value.length < 1) {
		alert("Please insert Your Password!!!")
		document.jForm.userPass.focus();
		return false;
	} else if(document.jForm.reUserPass.value.length < 1) {
		alert("Please insert Your Password twice!!!")
		document.jForm.reUserPass.focus();
		return false;
	} else if(!(document.jForm.userPass.value == document.jForm.reUserPass.value)) {
		alert('Please confirm your password if both passwords are the same!!!!');
		document.jForm.userPass.value = "";
		document.jForm.reUserPass.value = "";
		document.jForm.userPass.focus();
		return false;	
	}else if(!availableID){		
		alert('Please verify that email is available.\nPlease click the "check availability" button below.');
		return false;
	}
	if(!isEmail(document.getElementById("email").value))
	{
		alert("Please enter a valid e-mail address.");
		document.jForm.email_address.focus();
		return false;
	}
	if (trim(document.getElementById("fname").value) == '')
	{
		alert("Please write your first name.");
		document.jForm.fname.focus();
		return false;
	}
	if (trim(document.getElementById("lname").value) == '')
	{
		alert("Please write your last name.");
		document.jForm.lname.focus();
		return false;
	}	


	if (trim(document.getElementById("stnum").value) == '')
	{
		alert("Please write your address.");
		document.chekoutForm.stnum.focus();
		return false;
	}
	if (trim(document.getElementById("city").value) == '')
	{
		alert("Please write your city .");
		document.jForm.city.focus();
		return false;
	}
	if (document.getElementById("country_code").value=="US"&&trim(document.getElementById("state").value) == '')
	{
		alert("Please write your state");
		document.jForm.state.focus();
		return false;
	}
	if (trim(document.getElementById("postcode").value) == '')
	{
		alert("Please write your zip code.");
		document.jForm.postcode.focus();
		return false;
	}	
	if (document.getElementById("country_code").value == '00')
	{
		alert("Please select your country.");
		document.jForm.country_code.focus();
		return false;
	}
	/*
	if (document.getElementById("number").value == '')
	{
		alert("Please write the code.");
		document.jForm.number.focus();
		return false;
	}*/

	return true;	
}
function isEmail(str)
{
   // var reg = /^(\.[a-zA-Z0-9_\-\.])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
	var   reg=/^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT)/;
    return reg.test(str);
}
function setjFormCountryName(obj)
{	
	country=obj.options[obj.selectedIndex].text;

	document.jForm.country.value=country;

}
function loadMemberInfo()
{
	document.getElementById('showuserinfo').value="1";
	document.getElementById('sub_form').style.display = 'none';
	document.getElementById('loadMemberInfo').style.display = 'block';
	$('#loadMemberInfo').load('../p/ShowLoginForm.php');
	
}
function hideMemberInfo()
{

	document.getElementById('showuserinfo').value="0";
	document.getElementById('loadMemberInfo').style.display = 'none';
	document.getElementById('sub_form').style.display = 'block';
	$('#loadMemberInfo').load('../blank.php');
	
	document.getElementById('uncheckmember').checked = false;
	
}
function show4AlbumUserInfo()
{
	parent.document.getElementById('showuserinfo').value="1";
	parent.document.getElementById('sub_form').style.display = 'none';
	parent.document.getElementById('loadMemberInfo').style.display = 'block';
	//$('#loadMemberInfo').load('../p/ShowLoginForm.php?submit=1');
	parent.$('#loadMemberInfo').load('../p/ShowLoginForm.php?submit=1', function() {
		address=parent.document.jForm.stnum.value+", ";
		address=address+parent.document.jForm.city.value+", ";
		address=address+parent.document.jForm.state.value+", ";
		address=address+parent.document.jForm.country.value+", ";
		address=address+parent.document.jForm.postcode.value;
		parent.document.getElementById('email_re').value=parent.document.jForm.email.value;
		parent.document.getElementById('fa_name').innerHTML=parent.document.jForm.fname.value+" "+parent.document.jForm.lname.value;
		parent.document.getElementById('fa_address').innerHTML=address;
		parent.document.getElementById('fa_phone').innerHTML=parent.document.jForm.phonenumber.value;
		
		
		});
	
}

function openDvdonJukebox()
{

	document.getElementById("center_top").style.display="none";	
	document.getElementById("center_bottom_tv").style.display ="";	
	document.getElementById("center_bottom").style.display="none";
	document.getElementById("bbc").style.backgroundImage="url(../images/dvd/allbg.jpg)";
	s_r=Math.round(Math.random()*10000);
	$('#movieshowList').load('../video/?p=index&from=welcome&tmp='+s_r);
	
	
}

function updateQuickShoppingCart()
{
	alert("hi");
	s_r=Math.round(Math.random()*10000);
	url="../shoppingCart/showQuickShoppingInfo.php?tmp="+s_r;
	
	parent.$("#quickShoppingCart").load(url);	
}
