function callme(id)
                {   
                    //----
					//alert(id.name);
					if(id.name == 'search_storespecific')
					{
					//alert(id.name+"   "+document.getElementById("search_storespecific").value);
						document.getElementById("search_storespecific").value="" ;
					}
					if(id.name == 'search_storesnearyou')
					{

						document.getElementById("search_storesnearyou").value="" ;
					}
					//----
					if(id.name=="search_store")
                    id.value='';
                    if(id.value=="Email")
                    id.value='';
                    var pass=(id.name);
                    if(pass=="password1")
                    {                        
                        var type=document.loginform.password1.type;                        
                        if(id.value=="Password")                        
                        if(type=="text")
                        {   
                            document.getElementById("password1").style.display="none" ;
                           document.getElementById("password").style.display="block" ;  
                           document.getElementById("password").focus();                                     
                        }                       
                    }
                }
			function checkspecificstoreblanktext()
				{
					if((document.search_storespecific.search_storespecific.value == '' && document.search_storespecific.search_storesnearyou.value == '') || (document.search_storespecific.search_storespecific.value == 'What are you looking for?' && document.search_storespecific.search_storesnearyou.value == 'What city are you in?'))
					{
						//alert("Please enter the value");
						document.getElementById('displayerrormessage_nearyou').innerHTML="Please Enter Store Name and City.";				
						$('#displayerrormessage_nearyou').css('float','left');	
						return false;
					}
					if(document.search_storespecific.search_storespecific.value == '')
					{
						document.getElementById('displayerrormessage_nearyou').innerHTML="Please Enter Store Name or Category.";
						$('#displayerrormessage_nearyou').css('float','left');
						return false;
					}
					if(document.search_storespecific.search_storesnearyou.value == '')
					{
						document.getElementById('displayerrormessage_nearyou').innerHTML="Please Enter City.";
						$('#displayerrormessage_nearyou').css('float','right');
						return false;
					}
				}
                    
function changeStoreTab(id){
if(id == 'phototab')
	$("#photo_div").css('display','block');
if(id == 'store-infotab')
{
	$("#messages_div").css('display','block');
	$("#photo_div").css('display','none');
}
}
			function showLightBox(value)
			{
				/*x = self.innerWidth;
				y = self.innerHeight;
				var content_ht=document.getElementById("shopdetails").offsetWidth;
				totalheight=y+content_ht;
				document.getElementById("black_div").style.height=totalheight;
				//alert(document.getElementById("black_div").style.height);*/
				//document.getElementById("emailsignin").focus();
				if(value=="")
				{
					if($("#black_div").css('display') == 'none')
					{
						$("#black_div").show();
						$("#signinBox").show();
						document.getElementById("emailsignin").focus();
					}
					else
					{
						$("#black_div").hide();
						$("#signinBox").hide();
					}
				}
				else
				{
					$("#black_div").show();
					$("#signinBox").show();
					document.getElementById("emailsignin").focus();
				}
			}
				
				function submit_signin()
				{
					var basepath=document.getElementById('base_path').value;
					var my_url=basepath+"homepage/check_popup";
					var option1={
							//beforeSubmit:check_pricelevel,
							type:'POST',
							url:my_url,
							success:singin_response };
							//alert('option1');
					$("#loginform").ajaxSubmit(option1);
				}
				function singin_response(text,test)
				{
					var basepath=document.getElementById('base_path').value;
					var storeid=document.getElementById('storeid_listing').value;
					if(text=='wrong')
					{
						$("#errormsgg").html("Login didn't work - try again!");
						$("#errormsgg").show();
					}
					else
					{
						document.loginform.action=basepath+'homepage/clickOnStore/'+storeid;
						document.loginform.submit();
					}
						
				}
