function PopMe(URL,H,W,PageName,Scroll,left,top) {
	if (!W)	{	W=100 }
	if (!H)	{	H=100 }
	top = (screen.availHeight/2) - (H/2)
	left = (screen.availWidth/2) - (W/2)  
	day = new Date();
	if (!PageName) {id = "_blank"	}		//day.getTime();
	else id = PageName
	if (!Scroll) {Scroll = 0	}		//day.getTime();
	else Scroll = 1
	var page = eval("page" + id + " = window.open(URL,  '"+ id +"'   , 'toolbar=0,scrollbars="+ Scroll +",location=0,statusbar=0,menubar=0,resizable=1,width="+W+",height="+H+",left = "+left+",top = "+top+"');");
}
function areyousure(URL){question = confirm("ARE YOU SURE YOU WANT TO DELETE?");if (question !="0" && URL==true)return true; if (question !="0"){top.location = URL;} return false;}
function areyousureBool(){question = confirm("ARE YOU SURE YOU WANT TO DELETE?");if (question !="0"){return true;} return false;}

function jqCheckAll( flag ){
	if (!flag){
		$(".checkAll").attr('checked', false);
	}else{
		$(".checkAll").attr('checked', true);
	}
}
function PopNew(URL) {
	day = new Date();
	var id = "_blank"

	var page = eval("page" + id + " = window.open(URL,  '"+ id +"'   , 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1');");
}
function ajaxJS(URL){
	$.ajax({
   type: "GET",
   url: URL,
   dataType: "script"
 });
}
function ajaxCSS(URL){
	$.ajax({
   type: "GET",
   url: URL,
  // dataType: "script"
  success:function(data){
			 $("<style></style>").appendTo("head").html(data);
		}
 });
}
function isNumber(n) {
  return !isNaN(parseFloat(n)) && isFinite(n);
}

