

function AMAddressBlockNew()
{
document.write("<table ");
document.write("width=\"100%\" ");
document.write("border=\"5\" ");
document.write("bordercolor=\"#FFFFCC\" ");
document.write("bordercolorlight=\"#FFCCCC\" ");
document.write("bordercolordark=\"#FFCCCC\" ");
document.write("cellpadding=\"0\" ");
document.write("cellspacing=\"0\">");
document.write("<tr>");
document.write("<td ");
document.write("width=\"49%\" ");
document.write("valign=\"top\" ");
document.write("bgcolor=\"#FFCCCC\" ");
document.write("bordercolor=\"#FFFFCC\" ");
document.write("bordercolorlight=\"#FFFFCC\" ");
document.write("bordercolordark=\"#FFFFCC\">");
document.write("<p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\" ");
document.write("color=\"#800000\">");
document.write("<img ");
document.write("border=\"0\" ");
document.write("src=\"eng-uk-sm.gif\" ");
document.write("width=\"32\" ");
document.write("height=\"21\" ");
document.write("align=\"left\"> ");
document.write("UK Office: ");
document.write("</font>");
document.write("<br>");
document.write("<font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\">26 Canterbury Road, Wallasey, Merseyside, CH44 9BW UK</font><br>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("color=\"#800000\" ");
document.write("face=\"Arial ");
document.write("Narrow\">Phone/Fax ");
document.write("</font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial\"><b>");
document.write("+44-151-6390012</b></font><font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\"></font><font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">&nbsp; ");
document.write("|&nbsp;</font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">");
document.write("<a ");
document.write("href=\"mailto:uk@askmaxim.com\" ");
document.write("style=\"color: ");
document.write("#800000\">email</a>: ");
document.write("</font><font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\"><b>uk@askmaxim.com</b></font></td>");
document.write("<td ");
document.write("width=\"2%\" ");
document.write("valign=\"top\" ");
document.write("bgcolor=\"#FFCCCC\" ");
document.write("bordercolor=\"#FFCCCC\" ");
document.write("bordercolorlight=\"#FFCCCC\" ");
document.write("bordercolordark=\"#FFCCCC\">");
document.write("<p ");
document.write("align=\"right\" ");
document.write("style=\"margin-top: ");
document.write("8; ");
document.write("margin-bottom: ");
document.write("0\">&#12288;</td>");
document.write("<td ");
document.write("valign=\"top\" ");
document.write("bgcolor=\"#FFCCCC\" ");
document.write("bordercolor=\"#FFFFCC\" ");
document.write("bordercolorlight=\"#FFFFCC\" ");
document.write("bordercolordark=\"#FFFFCC\">");
document.write("<p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\" ");
document.write("color=\"#800000\"> ");
document.write("<img ");
document.write("border=\"0\" ");
document.write("src=\"russia-sm.gif\" ");
document.write("width=\"32\" ");
document.write("height=\"21\" ");
document.write("align=\"right\">Russia ");
document.write("Office: ");
document.write("</font><br>");
document.write("<font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\">1 ");
document.write("Tverskaya-Yamskaya ");
document.write("Street, ");
document.write("11, ");
document.write("Moscow ");
document.write("125047</font>");
document.write("<br>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("color=\"#800000\" ");
document.write("face=\"Arial ");
document.write("Narrow\">Phone");
document.write("</font><font ");
document.write("size=\"1\" ");
document.write("face=\"Arial\"><b>+7.<span ");
document.write("lang=\"en-us\">495</span>-<span ");
document.write("lang=\"en-us\">940</span>-<span ");
document.write("lang=\"en-us\">8816</span></b></font><font ");
document.write("face=\"Arial\"><font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">&nbsp; ");
document.write("|&nbsp;");
document.write("<a ");
document.write("title=\"Russian ");
document.write("English ");
document.write("Translation, ");
document.write("Russian ");
document.write("Translation, ");
document.write("Legal ");
document.write("Translation, ");
document.write("Technical ");
document.write("Translation, ");
document.write("Technical ");
document.write("Writing, ");
document.write("Voiceover: ");
document.write("Maxim ");
document.write("Global ");
document.write("Services\" ");
document.write("href=\"company.htm\" ");
document.write("style=\"color: ");
document.write("#800000\">Fax</a>&nbsp; ");
document.write("|&nbsp; ");
document.write("<a ");
document.write("href=\"mailto:ru@askmaxim.com\" ");
document.write("style=\"color: ");
document.write("#800000\">email</a>: ");
document.write("</font><font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\"><b>ru@askmaxim.com</b></font></font></td>");
document.write("</tr>");
document.write("</table>");
        return false;
}

function AMAddressBlockOld()
{
document.write("<table ");
document.write("width=\"100%\" ");
document.write("border=\"5\" ");
document.write("bordercolor=\"#FFFFCC\" ");
document.write("bordercolorlight=\"#FFCCCC\" ");
document.write("bordercolordark=\"#FFCCCC\" ");
document.write("cellpadding=\"0\" ");
document.write("cellspacing=\"0\">");
document.write("<tr>");
document.write("<td ");
document.write("width=\"49%\" ");
document.write("valign=\"top\" ");
document.write("bgcolor=\"#FFCCCC\" ");
document.write("bordercolor=\"#FFFFCC\" ");
document.write("bordercolorlight=\"#FFFFCC\" ");
document.write("bordercolordark=\"#FFFFCC\">");
document.write("<p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<a ");
document.write("href=\"http://www.kanjidic.com/askmaxim/company.htm#smolensky\">");
document.write("<img ");
document.write("alt=\"jishop\" ");
document.write("border=\"0\" ");
document.write("src=\"http://www.jishop-software.com/logo.gif\" ");
document.write("align=\"left\"></a><font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\" ");
document.write("color=\"#800000\"><img ");
document.write("border=\"0\" ");
document.write("src=\"eng-uk-sm.gif\" ");
document.write("width=\"32\" ");
document.write("height=\"21\" ");
document.write("align=\"right\"> ");
document.write("UK ");
document.write("Office: ");
document.write("</font>");
document.write("<p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\">26 Canterbury Road, Wallasey, Merseyside, CH44 9BW UK</font>");
document.write("<font size=\"1\"><br>");
document.write("</font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("color=\"#800000\" ");
document.write("face=\"Arial ");
document.write("Narrow\">Phone/Fax ");
document.write("</font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial\"><b>");
document.write("+44-151-6390012</b></font><font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">&nbsp;</font><p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">");
document.write("<a ");
document.write("href=\"mailto:uk@askmaxim.com\" ");
document.write("style=\"color: ");
document.write("#800000\">email</a>: ");
document.write("</font><font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\"><b>uk@askmaxim.com</b></font></td>");
document.write("<td ");
document.write("width=\"2%\" ");
document.write("valign=\"top\" ");
document.write("bgcolor=\"#FFCCCC\" ");
document.write("bordercolor=\"#FFCCCC\" ");
document.write("bordercolorlight=\"#FFCCCC\" ");
document.write("bordercolordark=\"#FFCCCC\">");
document.write("<p ");
document.write("align=\"right\" ");
document.write("style=\"margin-top: ");
document.write("8; ");
document.write("margin-bottom: ");
document.write("0\">&#12288;</td>");
document.write("<td ");
document.write("valign=\"top\" ");
document.write("bgcolor=\"#FFCCCC\" ");
document.write("bordercolor=\"#FFFFCC\" ");
document.write("bordercolorlight=\"#FFFFCC\" ");
document.write("bordercolordark=\"#FFFFCC\">");
document.write("<p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<a ");
document.write("href=\"http://www.askmaxim.com/\">");
document.write("<img ");
document.write("alt=\"maxim-globe\" ");
document.write("border=\"0\" ");
document.write("src=\"maxim-merid-sm.gif\" ");
document.write("width=\"162\" ");
document.write("height=\"66\" ");
document.write("align=\"right\"></a><font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\" ");
document.write("color=\"#800000\"><img ");
document.write("border=\"0\" ");
document.write("src=\"russia-sm.gif\" ");
document.write("width=\"32\" ");
document.write("height=\"21\" ");
document.write("align=\"left\">Russia ");
document.write("Office: ");
document.write("</font><br><p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\">1 ");
document.write("Tverskaya-Yamskaya ");
document.write("Street, ");
document.write("11, ");
document.write("Moscow ");
document.write("125047</font><font ");
document.write("size=\"1\"><br>");
document.write("</font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("color=\"#800000\" ");
document.write("face=\"Arial ");
document.write("Narrow\">Phone");
document.write("</font><font ");
document.write("face=\"Arial\"><font ");
document.write("size=\"1\"><b>+7.495-940-8816</b></font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">&nbsp; ");
document.write("|&nbsp; ");
document.write("Fax ");
document.write("</font>");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial\"><b>+7.499-138-4764</b></font><font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">&nbsp;</font></font><p ");
document.write("style=\"margin-left: ");
document.write("5; ");
document.write("margin-top: ");
document.write("0; ");
document.write("margin-bottom: ");
document.write("0\" ");
document.write("align=\"center\">");
document.write("<font ");
document.write("face=\"Arial\">");
document.write("<font ");
document.write("size=\"1\" ");
document.write("face=\"Arial ");
document.write("Narrow\" ");
document.write("color=\"#800000\">");
document.write("<a ");
document.write("href=\"mailto:ru@askmaxim.com\" ");
document.write("style=\"color: ");
document.write("#800000\">email</a>: ");
document.write("</font><font ");
document.write("face=\"Arial\" ");
document.write("size=\"1\"><b>ru@askmaxim.com</b></font></td>");
document.write("</tr>");
document.write("</table>");
        return false;
}


function AMGreet()
{
	var strFileName = "greet.htm";
	AMWindow(strFileName);
        return false;
}

function AMOrder()
{
	var strFileName = "order.htm";
	AMOrderWindow(strFileName);
        return false;
}

function AMOrderFree()
{
	var strFileName = "orderfree.htm";
	window.close();
	AMOrderWindow(strFileName);
        return false;
}

function AMOrderFreeNoclose ()
{
	var strFileName = "orderfree.htm";
	AMOrderWindow(strFileName);
        return false;
}

function AMOrderFreeRuNoclose ()
{
	var strFileName = "orderfree-ru.htm";
	AMOrderWindowRu(strFileName);
        return false;
}

function AMOrderWindowRu(strFileName)
{
	var wndJobs = window.open( strFileName, "order", "height=500,width=800,status=yes,toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes" );
}

function AMOrderWindow(strFileName)
{
	var wndJobs = window.open( strFileName, "order", "height=500,width=700,status=yes,toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes" );
}

function AMWindow(strFileName)
{
	var wndJobs = window.open( strFileName, null, "height=500,width=500,status=yes,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no" );
}

function AMtextCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) 
field.value = field.value.substring(0, maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}

function AMSendPageBtn()
{
var myMail = "mailto:?subject="+document.title+"&body=Thought%20you%20might%20be%20interested%20in%20this:%20"+document.title+" ("+window.location+").";

parent.location=myMail;
}

function linkHome(){	
document.write("<a href=\"http://www.englishdic.com/index.html\" target=\"_top\">Home</a>");
}

function linkTransServices(){	
document.write("<a href=\"services.html#price\" target=\"_top\">Translation</a>");
}

function linkServices(){	
document.write("<a href=\"services.html#all\" target=\"_top\">All services</a>");
}

function linkWhy(){	
document.write("<a href=\"lifeisgood.html\" target=\"_top\">Why us?</a>");
}

function linkEvents(){	
document.write("<a href=\"KD_Events/index.html\" target=\"_top\">Events</a>");
}

function linkClients(){	
document.write("<a href=\"clients.html\" target=\"_top\">Our clients</a>");
}

function linkPartners(){	
document.write("<a href=\"partners.html\" target=\"_top\">Our partners</a>");
}

function linkJobs(){	
document.write("<a href=\"jobs.html\" target=\"_top\">Jobs!</a>");
}

function linkMap(){	
document.write("<a href=\"map.html\" target=\"_top\">Site map</a>");
}

function linkContactsName(str)
{
document.write("<a href=\"contact.html\" target=\"_top\">"+str+"</a>");
}

function linkContacts()
{
var str="Contact us";
linkContactsName(str);
// document.write("<a href=\"mailto:webmaster@kanjidic.com\">Contacts</a>");
}

//-----------------------------------------

function EDmenuParaStyle()
{
document.write("<p style=\"margin-left: 5; margin-right: 0\"><font size=\"2\" face=\"Arial Narrow\" color=\"\#444757\">");
}

function EDlinkMenu()
{
var parFontColor="444757";
document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");

document.write("<tr>");
document.write("<td align=\"center\">");
EDmenuParaStyle();
linkHome();
document.write(" | </font></p>");
document.write("</td>");

document.write("<td align=\"center\">");
EDmenuParaStyle();
linkContacts();
document.write(" | </font></p>");
document.write("</td>");

document.write("<td align=\"center\">");
EDmenuParaStyle();
linkTransServices();
document.write(" | </font></p>");
document.write("</td>");

document.write("<td align=\"center\">");
EDmenuParaStyle();
linkServices();
document.write(" | </font></p>");
document.write("</td>");

document.write("<td align=\"center\">");
EDmenuParaStyle();
linkWhy();
document.write(" | </font></p>");
document.write("</td>");

document.write("<td align=\"center\">");
EDmenuParaStyle();
linkClients();
document.write(" | </font></p>");
document.write("</td>");

document.write("<td align=\"center\">");
EDmenuParaStyle();
linkPartners();
document.write("</font></p>");
document.write("</td>");

document.write("</tr>");
document.write("</table>");
}

//-----------------------------------------

    var defaultExit=false;
    var exit=defaultExit;
    function EDsetExitFalse() {
      exit=false;
      event.returnValue=false;
    }
    function EDsetExitTrue() {
      exit=defaultExit;
      event.returnValue=false;
    }

    function EDhomepage() {
        if(!oHomePage.isHomePage("http://www.EnglishDic.com")) {
            if(exit){
                oHomePage.setHomePage("http://www.EnglishDic.com");
            }
        }
        event.returnValue=false;
    }

flag=0;
function EDdoclear(target) {
  if (target=='before') {
    if (flag==0) {
      flag=1;
      document.world.before.value = "";
    }
  }
  else {
    document.world.before.value = "";
  }
}

//-----------------------------------------
