	function _shp_feedback()
		{
			window.open('http://sharedbook.custhelp.com/cgi-bin/sharedbook.cfg/php/enduser/site_fdbck.php', 'suggestion',
						'resizable,width=640,height=360');
		}


 function continueButtonClicked()
      {
         location.href = "account_details.html";
      }
           function testButtonClicked()
      {
         var blogIdEle = document.getElementById("blogId");
         var blogId = blogIdEle.value;

         // clean white spaces around the blog name
         var regExp = /^\W*((http:\/\/)|\W*)([\w-\.]*)\W*$/i;
         var groups=blogId.match(regExp);
         if (! groups)
         {
            alert("'"+blogId+"' is not a valid URL or blog name")
            return false;
         }
         blogId = groups[3];

         if (blogId.length == 0) return false;

         if (blogId.search('\\.') < 0)
            blogId = blogId + ".blogspot.com"

         var url = "http://blogspot.sharedbook.com/serve/blog2go/bridge.html?blog_domain=" + escape(blogId) + '&source_referer=google_blogger';
         location.href = url;
      }
   function submitenter(myfield, e)
      {
         var keycode;
         if(window.event) keycode = window.event.keyCode;
         else if(e) keycode = e.which;
         else return true;

         if(keycode == 13)
         {
            testButtonClicked();
            return false;
         }
         else
            return true;
      }
     function submitenter2(myfield, e)
      {
         var keycode;
         if(window.event) keycode = window.event.keyCode;
         else if(e) keycode = e.which;
         else return true;

         if(keycode == 13)
         {
            submitClicked() //testButtonClicked();
            return false;
         }
         else
         {
            return true;
         }
      }
function submitenter3(myfield, e)
      {
         var keycode;
         if(window.event) keycode = window.event.keyCode;
         else if(e) keycode = e.which;
         else return true;

         if(keycode == 13)
         {
            submitClickedWP() //testButtonClicked();
            return false;
         }
         else
         {
            return true;
         }
      }
	 
      
	
function getPageHeightWithScroll(){
    if (window.innerHeight && window.scrollMaxY) {// Firefox
        return( window.innerHeight + window.scrollMaxY);
    } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
        return(document.body.scrollHeight);
    } else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
        return(document.body.offsetHeight+document.body.offsetTop);
      }
}
var vis=1;
function cover(obj) 
{
var cover=document.getElementById('cover');
var divPopup=document.getElementById(obj);
	if(vis)
	{
		vis=0;
             cover.style.height = getPageHeightWithScroll() + 'px';
			cover.style.display='block';   
		divPopup.style.display='block';        
	}
	else 
	{  
		vis=1;
		cover.style.display='none'; 
		divPopup.style.display='none'; 
                document.getElementById(obj).style.display='none';
	}
}

