
function comingSoon()
{
  win = window.open("comingsoon.htm","questionanswers","width=445,height=141,left=200,top=200,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function comingsoon_concrete()
{
  win = window.open("comingsoon_concrete.htm","comingsoon_cocrete","width=445,height=141,left=200,top=200,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function comingsoon_terra()
{
  win = window.open("comingsoon_terra.htm","comingsoon_cocrete","width=445,height=141,left=200,top=200,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function signup()
{
  win = window.open("signup2.htm","signup","width=462,height=438,left=100,top=100,statusbar=no,toolbar=no,navbar=no,scrollbars=yes");
  win.focus();
}

function signup_firm()
{
  win = window.open("signup3.htm","signup_firm","width=462,height=420,left=100,top=100,statusbar=no,toolbar=no,navbar=no,scrollbars=yes");
  win.focus();
}

function signup_concrete()
{
  win = window.open("concrete_signup2.htm","signup_concrete","width=462,height=438,left=100,top=100,statusbar=no,toolbar=no,navbar=no,scrollbars=yes");
  win.focus();
}

function signup_concrete_firm()
{
  win = window.open("concrete_signup3.htm","signup_concrete_firm","width=462,height=420,left=100,top=100,statusbar=no,toolbar=no,navbar=no,scrollbars=yes");
  win.focus();
}

function signup_terra()
{
  win = window.open("terra_signup2.htm","signup_terra","width=462,height=438,left=100,top=100,statusbar=no,toolbar=no,navbar=no,scrollbars=yes");
  win.focus();
}

function signup_terra_firm()
{
  win = window.open("terra_signup3.htm","signup_terra_firm","width=462,height=420,left=100,top=100,statusbar=no,toolbar=no,navbar=no,scrollbars=yes");
  win.focus();
}

function newsletter()
{
  win = window.open("mail.htm","mail","width=445,height=211,left=200,top=200,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
  win.focus();
}

function newsletter_concrete()
{
  win = window.open("concrete_mail.htm","mail_concrete","width=445,height=211,left=200,top=200,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
  win.focus();
}

function newsletter_terra()
{
  win = window.open("terra_mail.htm","mail_terra","width=445,height=211,left=200,top=200,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
  win.focus();
}

function contact()
{
  alert("!!!");
  win = window.open("contactform.htm","contactus","width=553,height=300,left=200,top=200,statusbar=no,toolbar=no,navbar=no");
  win.focus();
}

function getParameter(str, name)
{
  var res = "";
  if (str.indexOf("?")!=-1)
  {
    str = str.substring(str.indexOf("?")+1, str.length);
    if (str.indexOf(name)!=-1)
    {
      if (str.indexOf("&", str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf(name)+name.length+1, str.indexOf("&"))
	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
	}
  }
  return res;
}

function showBig(imageName, windowName, width, height)
{
  win = window.open("big.htm?path="+imageName,windowName,"width="+Number(width+30)+",height="+Number(height+60)+",left=100,top=100,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showBigConcrete(imageName, windowName, width, height)
{
  height = height + 90;
  if (height<415)
    height = 415;
  width = width + 400;
  win = window.open("big_concrete2.htm?path="+imageName,windowName,"width="+Number(width)+",height="+Number(height)+",left=100,top=100,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showBigterracotta(imageName, windowName, width, height)
{
  win = window.open("big_terracotta.htm?path="+imageName,windowName,"width="+Number(width+30)+",height="+Number(height+60)+",left=100,top=100,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function loadfocus()
{
  if ((navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 4)|| (navigator.appName.indexOf("Microsoft") != -1 && parseInt(navigator.appVersion) > 3))
    browserVer = '1';
  else
    browserVer = '2';
  if (browserVer == 1)
	window.focus();
  return true;
}
