/*-----------Home page flash functions---------------*/
/*function flashFuncFree(){
	//var NewWin3;
	//NewWin3=window.open("quote.htm",'NewWin1','height=335,width=420,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	//NewWin3.focus();/
	window.location='free_quote.htm';
}
*/
/*function flashFuncConnect(){
		window.location='contactus.htm';
}*/
/*-----------Home page flash functions---------------*/

/*--------------------------popup() ----------------------------*/
/*function guarantee()
{

	var NewWin3;
	NewWin3=window.open("satisfactionGuarantee.htm",'NewWin1','height=197,width=420,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin3.focus();
}*/


/*--------------------------popup() ----------------------------*/

/*--------------Holdlink()---------------*/
function holdlink(menuId, subMenuId){
	if(menuId=='home'){
		document.getElementById(menuId).style.display='none';			
	} else if(menuId=='personal' || menuId=='commercial'){
		document.getElementById(menuId).className='current';
		document.getElementById(subMenuId).className='currentfly';
	} else
		document.getElementById(menuId).className='current';
}
/*--------------Holdlink()---------------*/

/*------------include function---------------------*/
function include_file(id, url) {
	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } 
}

function check(frm)
{
	var a=frm['area_expertise[]'];
	//alert("Length:"+a.length);
	var p=0;
	for(i=0;i<a.length;i++){
		if(a[i].checked){
			//alert(a[i].value);
			p=1;
		}
	}
	if (p==0){
		alert('please select at least one Areas of Expertise');
		return false;
	}
	return true;
}
/*------------include function---------------------*/




function popup_desc() {
		var wid = 430;
		var height = 210;
		var  w = screen.width;
		var h = screen.height;
		var x= h/2-height/2;
		var y = w/2-wid/2; 
		view=window.open(SITE_URL+"html/show_description.html","","width="+wid+",height="+height+",top="+x+",left="+y+",scrollbars=1");
		return view;
}	
function show_desc(val) {
	view=popup_desc();
	//view.getElementById('desc_product').innerHTML=document.getElementById('div_desc_'+id).innerHTML;
	view.document.write('<html >');
	view.document.write('<head>');
	view.document.write('<title>RLS & Associates</title>');
	view.document.write('<style type="text/css">');
	view.document.write('body {');
	view.document.write('margin:0px;');
	view.document.write('}');
	view.document.write('</style>');
	view.document.write('<link href="'+SITE_URL+'css/style.css" rel="stylesheet" type="text/css" />');
	view.document.write('</head>');
	view.document.write('<body bgcolor="#FFFBEF">');
	view.document.write('<table width="100%" cellpadding="2" cellspacing="2" border="0">');
	view.document.write('<tr><td align="center"><img src="'+SITE_URL+'images/inner/popupHeader1.jpg"/></td></tr>');
	view.document.write('<tr>');
	view.document.write('<td class="text">');
	view.document.write(document.getElementById('divdesc_'+val).innerHTML);
	view.document.write('</td>');
	view.document.write('</tr>');
	view.document.write('</table>');
	view.document.write('</body>');
	view.document.write('</html>');
	//view.document.getElementById('desc_product').innerHTML=(document.getElementById('div_desc_'+id).innerHTML);
}
