function Reload(id,action)
{
    var loc = window.location.toString();
    
    //alert(loc)
	if (loc.indexOf('id=') == -1)
	{
		var ind = loc.indexOf("?");
		if (ind != -1) 
		{    
		    //loc = loc.substring(0,ind)
		    var re = /&?(?:DelId=|AddId=)\d+/;
		    var re1 = /\#photo/;
		    re.global = true;
		    re1.global = true;		    
		    window.location = loc.replace(re,"").replace(re1,"") + '&' + action + 'Id=' + id;
		}    
		else
		{
		    window.location = loc + '?' + action + 'Id=' + id;
		}   
	}	
		//window.location = loc + '?' + action + 'Id=' + id
		//alert(loc + '?' + action + 'Id=' + id)
		//eval(id + "." + src="")
	//alert(window.location)
}

