function pop_renew(status,id) {
 	if (status == "hide") {
	   document.getElementById("trans_renew"+id).style.display = "none";
	   document.getElementById("msg_renew"+id).style.display = "none";
	   }
	else {
	   document.getElementById("trans_renew"+id).style.display = "block";
	   document.getElementById("msg_renew"+id).style.display = "block";

	}
}


function pop_flex(status,id,id2) {
 	if (status == "hide") {
	   document.getElementById("trans_flex"+id).style.display = "none";
	   document.getElementById("msg_flex"+id).style.display = "none";
	   }
	else {
	   document.getElementById("trans_flex"+id).style.display = "block";
	   document.getElementById("msg_flex"+id).style.display = "block";
	   
	   if (id2 == 1) {
		   
		   document.getElementById("f_hosting"+id).style.display = "block";
		   document.getElementById("btn_next"+id).style.display = "block";
		   document.getElementById("f_hosting_pay"+id).style.display = "none";
		   document.getElementById("f_hosting_flex"+id).style.display = "none";
		   document.getElementById("btn_confirm"+id).style.display = "none";
		   
	   }

	}
}

function pop_sentry(status,id) {
 	if (status == "hide") {
	   document.getElementById("trans_sentry"+id).style.display = "none";
	   document.getElementById("msg_sentry"+id).style.display = "none";
	   }
	else {
	   document.getElementById("trans_sentry"+id).style.display = "block";
	   document.getElementById("msg_sentry"+id).style.display = "block";
	}
}

function pop_symbiosis(status,id) {
 	if (status == "hide") {
	   document.getElementById("trans_symbiosis"+id).style.display = "none";
	   document.getElementById("msg_symbiosis"+id).style.display = "none";
	   }
	else {
	   document.getElementById("trans_symbiosis"+id).style.display = "block";
	   document.getElementById("msg_symbiosis"+id).style.display = "block";
	}
}

function nextFlex(id) {
		 
		   document.getElementById("f_hosting"+id).style.display = "none";
		   document.getElementById("btn_next"+id).style.display = "none";
		   document.getElementById("f_hosting_pay"+id).style.display = "block";
		   document.getElementById("f_hosting_flex"+id).style.display = "block";
		   document.getElementById("btn_confirm"+id).style.display = "block";
}

function pop_host(status,id) {
 	if (status == "hide") {
	   document.getElementById("trans_host"+id).style.display = "none";
	   document.getElementById("msg_host"+id).style.display = "none";
	   }
	else {
	   document.getElementById("trans_host"+id).style.display = "block";
	   document.getElementById("msg_host"+id).style.display = "block";

	}
}


function pop_auto(status,id) {
 	if (status == "hide") {
	   document.getElementById("trans_auto"+id).style.display = "none";
	   document.getElementById("msg_auto"+id).style.display = "none";
	   }
	else {
	   document.getElementById("trans_auto"+id).style.display = "block";
	   document.getElementById("msg_auto"+id).style.display = "block";

	}
}

function Popup(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,width=700,height=700');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}


function PopupDNS(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,width=700,height=250');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}


function PopupSentry(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=1200,height=620');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}




function PopupBill(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,width=590,height=745');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}



function PopupRequest(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=0,resizable=0,width=590,height=500');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}





function PopupPlan(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,width=700,height=390');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}


function PopupExport(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,width=300,height=230');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}



function PopupRenew(userID) 
{
  var popupURL = userID;
  var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,width=700,height=370');
  if( navigator.appName.substring(0,8) == "Netscape" )
  {
    popup.location = popupURL;
  }
}





function SwitchTab(id1,id2,id3,id4,id5,id6,id) {

if (id1 != 'domain') {
document.getElementById('side'+id).className='cp_tab_4_sel';
}

if (id1 == 'domain') {
document.getElementById('side'+id).className='cp_tab_4';
}

	if (document.getElementById('info_'+id1+id)){
		document.getElementById('info_'+id1+id).style.display = 'block';
	}
	
	if (document.getElementById('info_'+id2+id)){
		document.getElementById('info_'+id2+id).style.display = 'none';
	}
	
	if (document.getElementById('info_'+id3+id)){
		document.getElementById('info_'+id3+id).style.display = 'none';
	}
	
	if (document.getElementById('info_'+id4+id)){
		document.getElementById('info_'+id4+id).style.display = 'none';
	}
	
	if (document.getElementById('info_'+id5+id)){
		document.getElementById('info_'+id5+id).style.display = 'none';
	}
	
	if (document.getElementById('info_'+id6+id)){
		document.getElementById('info_'+id6+id).style.display = 'none';
	}
	
	
	
	


	if (document.getElementById('tab_'+id1+'_1'+id)){
		
		document.getElementById('tab_'+id1+'_1'+id).className='cp_tab_1_sel';
		document.getElementById('tab_'+id1+'_2'+id).className='cp_tab_2_sel';
		document.getElementById('tab_'+id1+'_3'+id).className='cp_tab_3_sel';
	
	}

	if (document.getElementById('tab_'+id2+'_1'+id)){
		
		document.getElementById('tab_'+id2+'_1'+id).className='cp_tab_1';
		document.getElementById('tab_'+id2+'_2'+id).className='cp_tab_2';
		document.getElementById('tab_'+id2+'_3'+id).className='cp_tab_3';
	
	}
	
	if (document.getElementById('tab_'+id3+'_1'+id)){
	
		document.getElementById('tab_'+id3+'_1'+id).className='cp_tab_1';
		document.getElementById('tab_'+id3+'_2'+id).className='cp_tab_2';
		document.getElementById('tab_'+id3+'_3'+id).className='cp_tab_3';
		
	}
	
	if (document.getElementById('tab_'+id4+'_1'+id)){
		
		document.getElementById('tab_'+id4+'_1'+id).className='cp_tab_1';
		document.getElementById('tab_'+id4+'_2'+id).className='cp_tab_2';
		document.getElementById('tab_'+id4+'_3'+id).className='cp_tab_3';
	
	}
	
	if (document.getElementById('tab_'+id5+'_1'+id)){
		
		document.getElementById('tab_'+id5+'_1'+id).className='cp_tab_1';
		document.getElementById('tab_'+id5+'_2'+id).className='cp_tab_2';
		document.getElementById('tab_'+id5+'_3'+id).className='cp_tab_3';
	
	}
	
	if (document.getElementById('tab_'+id6+'_1'+id)){
		
		document.getElementById('tab_'+id6+'_1'+id).className='cp_tab_1';
		document.getElementById('tab_'+id6+'_2'+id).className='cp_tab_2';
		document.getElementById('tab_'+id6+'_3'+id).className='cp_tab_3';
	
	}

}




//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
