function goSecure()
{
    if(location.protocol.toLowerCase().substring('.dev')!=-1  ) 
    { 
		//dev don't do anything
    }
	else
	{
		//go to secure site
        location.href = location.href.replace('http:','http:'); 
	}

}
function apply(path)
{
	var ver="";
	var site ="";
	
	if(location.toString().indexOf('tx')!=-1)
	{ ver = 'Texas'; }
	else
	{ ver = 'National'; }	

	if(location.toString().indexOf('dev')!=-1)
	{ site = 'https://dev.vwluke.com/'; }	
	else	
	{ site = 'http://www.lukelawfirm.com/'; }
		
//alert( "location.toString().indexOf('dev'):"+location.toString().indexOf('dev'));	
	var loc = site+path+'?site='+ver;

	// ex. path 'apply_bankruptcy.asp'
	var x=window.open(loc,'mywindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes, resizable=yes,height=1000,width=1200');
	x.focus();	
	
	//if Texas, append ?site=Texas
	//alert( location );
	return "?site=Texas";
}

function showWindow(path)
{
	var loc = path;

	// ex. path 'apply_bankruptcy.asp'
	var x=window.open(loc,'mywindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes, resizable=yes,height=800,width=1500');
	x.focus();		
}

function goHome()
{
	if(location.toString().indexOf('dev')!=-1)
	{ location.href= 'http://dev.vwluke.com/'; }	
	else	
	{ location.href= 'http://www.lukelawfirm.com/'; }	
}

function goTX()
{
	if(location.toString().indexOf('dev')!=-1)
	{ location.href= 'http://dev.tx.vwluke.com/'; }	
	else	
	{ location.href= 'http://www.tx.vwluke.com/'; }	
}

function goFL()
{
	if(location.toString().indexOf('dev')!=-1)
	{ location.href= 'http://dev.fl.vwluke.com/'; }	
	else
	{ location.href= 'http://www.fl.vwluke.com/'; }		
}

function goNY()
{
	if(location.toString().indexOf('dev')!=-1)
	{ location.href= 'http://dev.ny.vwluke.com/'; }
	else		
	{ location.href= 'http://www.ny.vwluke.com/'; }	
}
