

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("&"+name, str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf("&"+name)+name.length+1, str.indexOf("&"+name))
   	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
      if (res.indexOf("&")!=-1)
        res = res.substring(0,res.indexOf("&"));
   	}
  }
  return res;
}


function fCompare() 
{
  	var wCMP = window.open("get-listed_compare.htm","_blank","width=700,height=450,left=17,top=17,status=1,scrollbars=1");
  	wCMP.focus();
}


function fSample() 
{
  	var wSMP = window.open("get-listed_sample.htm","_blank","width=700,height=450,left=17,top=17,status=1,scrollbars=1");
  	wSMP.focus();
}


function fWebsiteImg(img)
{
  	var wCWI = window.open("custom-websites-img.htm?img=" + img,"_blank","width=545,height=428,left=17,top=17,status=1,scrollbars=1,toolbar=1");
  	wCWI.focus();	
}


function fWebdesignSample()
{
  	var wWDS = window.open("custom-websites-popup.htm","_blank","width=587,height=450,left=17,top=17,status=1,scrollbars=1");
  	wWDS.focus();
}



function fTerms()
{
  wTRM = window.open("service-terms-pp.htm", "wTRM", "width=500,height=450,statusbar=1,toolbar=1,scrollbars=1");
  wTRM.focus();	
}

