if (parent.frames.length > 0) {
    parent.location.href = self.document.location
}

function preload()
{
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#976660176250');
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#976662155600');
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#926064233233');
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#926064219600');
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#926064207683');
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#926064193100');
	MM_preloadImages('/imgs/Pricing_Button_RO.gif','#926064171766');
	MM_preloadImages('/imgs/Big_Button_RO.gif','/imgs/Announce_Your_Web_RO.gif','/imgs/Pricing_RO.gif','/imgs/Search_Engines_RO.gif','/imgs/Small_Button_RO.gif','/imgs/Live_Help_RO.gif','/imgs/members_area_ro.gif');
}

if (document.images) {
}
function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

// function that displays status bar message

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features)
	{window.open(theURL,winName,features);}

function open_country_popup() {	window.open('/docs/indices_list.html','normal','scrollbars=yes,width=700,height=500,resizable=yes,titlebar=yes,left=340,top=280');
}

function open_sub_pol() { window.open('/docs/sub_pol.html','normal','scrollbars=yes,width=700,height=500,resizable=yes,titlebar=yes,left=340,top=280');
}

function open_privacy_pol() { window.open('/docs/privacy.html','normal','scrollbars=yes,width=700,height=500,resizable=yes,titlebar=yes,left=340,top=280');
}


function open_norm_popup() { window.open('/docs/normalization.html','normal','scrollbars=yes,width=500,height=320,resizable=yes,titlebar=yes,left=340,top=280');
}

function open_refill_popup() { window.open('/docs/refill.html','normal','scrollbars=yes,width=600,height=200,resizable=yes,titlebar=yes,left=340,top=280');
}

function open_tos_popup() {	window.open('/docs/tos.html','normal','scrollbars=yes,width=700,height=500,resizable=yes,titlebar=yes,left=340,top=280,statusbar=yes');
}

function open_renew_popup() {	window.open('/docs/renew.html','normal','scrollbars=yes,width=700,height=400,resizable=yes,titlebar=yes,left=340,top=280');
}

function ToggleAll(e, field) {
	if (e.checked) {
		CheckAll(field);
	} else {
		ClearAll(field);
	}
}

function CheckAll(field) {
	var inputs = document.forms[0].elements[field];
	for (i=0; i<inputs.length; i++) {
		inputs[i].checked = true
	}
}

function ClearAll(field) {
	var inputs = document.forms[0].elements[field];
	for (i=0; i<inputs.length; i++) {
		inputs[i].checked = false
	}
}

