function wygEdit(docid,catid) {
	wygwindow = window.open ("/members/docedit.php?docid="+docid+"&catid="+catid,  "wygwindow","location=0, status=0, scrollbars=1, width=800, height=900, top=6, left=6");
}
function setCookie(c_name,value,expiredays) {
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString()) + "; domain=ecomdelta.com" ;
}

var scrnW = screen.availWidth ;
setCookie("scrnW",scrnW,365);

var scrnH = screen.availHeight ; 
setCookie("scrnH",scrnH,365);

var bdyW ;
var bdyH ; 

  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    bdyW = window.innerWidth;
    bdyH = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    bdyW = document.documentElement.clientWidth;
    bdyH = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    bdyW = document.body.clientWidth;
    bdyH = document.body.clientHeight;
  }
setCookie("bdyW",bdyW,365);
setCookie("bdyH",bdyH,365);

function doIt() {
	alert('doIt fired')
}

