function OpenC(theURL,winName,features)
  {
     var Win=window.open(theURL,winName,features);
     Win.focus();
     return false;
  }

function isEmpty(str) {

   for (var i = 0; i < str.length; i++)

      if (" " != str.charAt(i))

          return false;

	return true;

}  

function selmark(curSel)
{
	markURL = "index.php?pageId=3&car_mark=";
	
	mark = curSel.options[curSel.selectedIndex].value;
	
	if(mark != "")
	{
		window.location = markURL+mark;	
	} else {
		window.locaton = "index.php?pageId=1";
	}
}

function selmod(curSel)
{
	modelURL = "index.php?pageId=3&model=";
	
	mod = curSel.options[curSel.selectedIndex].value;
	
	if(mod != "")
	{
		window.location = modelURL+mod;	
	} else {
		window.locaton = "index.php?pageId=1";
	}
}

function selmodif(curSel)
{
	modelURL = "index.php?pageId=3&modif=";
	
	modif = curSel.options[curSel.selectedIndex].value;	
	
	if(modif != "")
	{
		window.location = modelURL+modif;	
	} else {
		window.locaton = "index.php?pageId=1";
	}
}