function openPopUp (strFile,intWidth,intHeight) {
	var strOptions = 'width=' + intWidth + ',height=' + intHeight + ',location=0,scrollbars=yes,left=100,top=100';
	objWin = window.open(strFile,'child',strOptions);
	if (objWin.opener == null) objWin.opener = self;
}

function submitForm(strFormID, strProcess) {
//	alert(document.forms[strFormID].PROCESS.value);
	if (document.forms[strFormID].PROCESS) {
		document.forms[strFormID].PROCESS.value = strProcess;
	}
	document.forms[strFormID].submit();
}

function submitDelete(strFormID, strProcess, strDeleteMessage) {
	if (confirm(strDeleteMessage)) {
		submitForm(strFormID, strProcess);
	}
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

function getWindowSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  
  var objWindow = new Object();
  objWindow["width"] = myWidth;
  objWindow["height"] = myHeight;
  return objWindow
}