function deleteSettings(e){
  
	  var url;
		if(confirm("Are you sure you want to delete this settings.")){
			url = location.href='createSettings.php?act=del&id='+e;
		}
}

function changeSetting(id,val){
	location.href='emailPage.php?act=change&id='+id+'&val='+val;
}

function displayNotes(showId){
	
	document.getElementById('getNote'+showId).style.display='none';
	document.getElementById('editNote'+showId).style.display='block';
}

function cancelNotes(hideId){
	document.getElementById('getNote'+hideId).style.display='block';
	document.getElementById('editNote'+hideId).style.display='none';
	return false ;
}
function openPopupAlert(count){	
  if(count>=20)
  {
  	 window.open('create-max-alert.php','alert','width=400,height=160,scrollbars=yes,screenX=150');
  }
  else
  {
	 
	 // alert(document.getElementById('indexAlert').value) ;	  
	 if(document.getElementById('indexAlert') && document.getElementById('indexAlert').value=="yes")
	 {
		 //alert(SITE_PATH_SSL) ;
		 window.open(SITE_PATH_SSL+'create-email-alert.php?indexAlert=yes','alert','width=596,height=720,scrollbars=yes,screenX=150');
     }
	 else
	 {
		 window.open('create-email-alert.php','alert','width=596,height=720,scrollbars=yes,screenX=150');
     }
	 
  }
      
}

function openAlertPopup(filepath,auctionType){

  	// window.open('create-max-alert.php','alert','width=400,height=160,scrollbars=yes,screenX=150'); 
     window.open(filepath+'create-email-alert.php?auctionType='+auctionType,'alert','width=596,height=720,scrollbars=yes,screenX=150'); 
}


function editPopup(id)
{
url = 'create-email-alert.php?setting_id='+id;
window.open(url,'alert','width=596,height=720,scrollbars=yes,screenX=150');
}


