function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString()
				 +";path=/";
}

function goSetHeight(ifrmURL, menuImgURL, titleImgURL, menuIfrmURL) {
  if (parent == window) {
  	if(	typeof ( titleImgURL ) == "undefined" || titleImgURL == "" || 
	   	typeof ( menuImgURL ) == "undefined" || menuImgURL == "" ||
    	typeof ( ifrmURL ) == "undefined" || ifrmURL == "" || 
		typeof ( menuIfrmURL ) == "undefined" || menuIfrmURL == "" ) {
      return false;
  	}

    SetCookie('titleImgURL', titleImgURL); 
    SetCookie('menuImgURL', menuImgURL); 
    SetCookie('ifrmURL', ifrmURL);
    SetCookie('menuIfrmURL', menuIfrmURL);
    document.location = '/index.htm';
  }
  // no way to obtain id of iframe object doc loaded into? no parentNode or parentElement or ...
  else {
	parent.setIframeHeight('ifrm');
  }
}