<!--
var gKeyWordLimit = 250;
var gDescriptionLimit = 250;

function maxlength(pObj, pLimit){
   if (pObj.value.length > pLimit-1) {
      pObj.value = pObj.value.substring(0,pLimit-1); 
   }
}
function keywordevent(){
   maxlength(event.srcElement, gKeyWordLimit);
}
function descriptionevent(){
   maxlength(event.srcElement, gDescriptionLimit);
}

function initMGWebFwdEdit(){
   document.thisForm.txtKeywords.onkeypress = keywordevent;
   document.thisForm.txtKeywords.onblur = keywordevent;
   document.thisForm.txtDescription.onkeypress = descriptionevent;
   document.thisForm.txtDescription.onblur = descriptionevent;
}
function initDomainRegister3(){
   if (document.thisForm.txtKeywords != null){
   document.thisForm.txtKeywords.onkeypress = keywordevent;
   document.thisForm.txtKeywords.onblur = keywordevent;
   }
   if (document.thisForm.txtDescription != null){
   document.thisForm.txtDescription.onkeypress = descriptionevent;
   document.thisForm.txtDescription.onblur = descriptionevent;
   }
}

function SaveMailFwd(){
	var vValue="";
	var vChkBoxes = document.thisForm.chkboxes;
	var i;
	
	vValue = "";
	if (vChkBoxes != null) {
      if (vChkBoxes.length!=null) {
	      for (i=0; i<vChkBoxes.length; i++){
	      	if (vChkBoxes[i].checked){
	      		if (vValue.length==0){
	      			vValue = vChkBoxes[i].value;
	      		}
	      		else{
	      			vValue = vValue + "|" + vChkBoxes[i].value;
	      		}
	      	}
	      }
	   }
	   else
	   {
	      if (vChkBoxes.checked){
	      	vValue =  vChkBoxes.value;
	      }
	   } 
   }
	document.cookie = "Cookies:MailFwdList=" + vValue;
}

function OpenWhoIs(pDomain){
    var w = window.open("WhoIs.asp?Domain=" + pDomain,null,"height=320,width=320,resizable=no,scrollbars=no,top=100,left=200");
    return false;
}
function CloseWhoIs(){
	window.close();
}
//-->
