function writemain(){
	var str='';
	str+='<iframe src="main.html" frameborder="0" scrolling="no" class="frame"></iframe>';
	document.write(str);
}

function writestaff(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/StaffReview.aspx?Did=611&Sid=1122&Pid=10" frameborder="0" scrolling="yes" class="frame"></iframe>';
	document.write(str);
}


function corvettdigi(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/digitalbrochures/Digi.aspx?year=2009&make=Chevrolet&model=Corvette&bodystyle=CO&sstyle=all&identifier=1&smode=1&sid=1122&pid=26&did=611" frameborder="0" scrolling="yes" class="frame"></iframe>';
	document.write(str);
}

function corvettdb(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/buildacar/bac.aspx?pid=24&sid=1122&did=611&syear=2009&smake=Chevrolet&model=Corvette&bstyle=CO&model1=Corvette Coupe" frameborder="0" scrolling="yes" class="frame"></iframe>';
	document.write(str);
}




function writeprivacy(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/PrivacyPolicy.aspx?Did=611&Sid=1122&Pid=11" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writecontact(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayCU.aspx?Did=611&Sid=1122&Pid=1" frameborder="0" scrolling="no" width="100%" height="440"></iframe>';
	document.write(str);
}

function writehours(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/dkhoursPreview.aspx?Did=611&Sid=1122&Pid=28" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writeserapp(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displaySA.aspx?Did=611&Sid=1122&Pid=6" frameborder="0" scrolling="no" width="100%" height="900"></iframe>';
	document.write(str);
}

function writetradein(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayTIV.aspx?Did=611&Sid=1122&Pid=7" frameborder="0" scrolling="no" width="100%" height="1460"></iframe>';
	document.write(str);
}

function writewarranty(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayWI.aspx?Did=611&Sid=1122&Pid=8" frameborder="0" scrolling="auto" width="100%" height="465"></iframe>';
	document.write(str);
}

function writeempapp(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayEA.aspx?Did=611&Sid=1122&Pid=2" frameborder="0" scrolling="no" width="100%" height="915"></iframe>';
	document.write(str);
}

function writenewspls(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=18" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writeprespls(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=20" frameborder="0" scrolling="yes" class="frame"></iframe>';
	document.write(str);
}

function writeincentive(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=16" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writepartspls(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=19" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writeserspls(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=21" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writeaccesspl(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=12" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writefinaspls(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/special.aspx?Did=611&Sid=1122&Pid=14" frameborder="0" scrolling="yes" width="100%" class="frame"></iframe>';
	document.write(str);
}

function writeasktech(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayAT.aspx?Did=611&Sid=1122&Pid=9" frameborder="0" scrolling="no" width="100%" height="478"></iframe>';
	document.write(str);
}

function writedigital(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/digitalbrochures/DigitalBrochure.aspx?Did=611&Sid=1122&Pid=26" frameborder="0" scrolling="no" width="760" height="450"></iframe>';
	document.write(str);
}
function writeJSdigi(obj){
     var str='';
     str+='<iframe src='+obj+' frameborder="0" scrolling="no" width="760" height="450"></iframe>';
     document.write(str);
}

function writeorderparts(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayOP.aspx?Did=611&Sid=1122&Pid=3" frameborder="0" scrolling="no" width="100%" height="930"></iframe>';
	document.write(str);
}

function writequote(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayQQ.aspx?Did=611&Sid=1122&Pid=4" frameborder="0" scrolling="no" width="100%" height="400"></iframe>';
	document.write(str);
}

function writerecall(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayRR.aspx?Did=611&Sid=1122&Pid=5" frameborder="0" scrolling="no" width="100%" height="520"></iframe>';
	document.write(str);
}


function writerepreowned(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=used" frameborder="0" scrolling="yes" width="100%" height="580"></iframe>';
	document.write(str);
}
function writerecertified(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_certified=true" frameborder="0" scrolling="yes" width="100%" height="580"></iframe>';
	document.write(str);
}
function writeresearchinv(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=used" frameborder="0" scrolling="yes" width="100%" height="580"></iframe>';
	document.write(str);
}
function writeresearchnewinv(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=new" frameborder="0" scrolling="yes" width="100%" height="580"></iframe>';
	document.write(str);
}
function writerepreownedcorvert(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=used&param_Model=Corvette" frameborder="0" scrolling="yes" width="100%" height="580"></iframe>';
	document.write(str);
}
function writerenewcorgette(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=new&param_Model=Corvette" frameborder="0" scrolling="yes" width="100%" height="580"></iframe>';
	document.write(str);
}

function writeusedcar(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/cp/displayUC.aspx?Did=611&Sid=1122&Pid=29" frameborder="0" scrolling="no" width="100%" height="500"></iframe>';
	document.write(str);
}

function writebuild(){
	var str='';
	str+='<iframe src="http://cpanel.tkcarsites.com/BuildACar/bac.aspx?Did=611&Sid=1122&Pid=24" frameborder="0" scrolling="no" width="760" height="450"></iframe>';
	document.write(str);
}
function writenewinv(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=new" frameborder="0" scrolling="yes" class="frameinv"></iframe>';
	document.write(str);
}
function writenewinvused(){
	var str='';
	str+='<iframe src="http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=used" frameborder="0" scrolling="yes" class="frameinv"></iframe>';
	document.write(str);
}
function PageOnLoad()
{
	var sQry="";
	var args = new Object();
	var query = location.search.substring(1);
	var pairs = query.split("&");                 // Split at ampersand
	search_array = query.split("&");     

	for (var i=0; i < pairs.length; i++)
	{
		var pos = pairs[i].indexOf('=');          
		if (pos == -1) continue;                  
		var argname = pairs[i].substring(0,pos);  
		var value = pairs[i].substring(pos+1);    
		args[argname] = unescape(value);
	}
	
	if((args["Model"] != null) && (args["Model"] != "undefined"))
	{
		sQry = "http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?&param_new-used=new&param_make=Chevrolet&param_model=";
		sQry = sQry + args["Model"];
		//alert(sQry);
		document.getElementById("link1").src = sQry;
	}
}

function PageOnLoadPre()
{
	var sQry="";
	var args = new Object();
	var query = location.search.substring(1);
	var pairs = query.split("&");                 // Split at ampersand
	search_array = query.split("&");     

	for (var i=0; i < pairs.length; i++)
	{
		var pos = pairs[i].indexOf('=');          
		if (pos == -1) continue;                  
		var argname = pairs[i].substring(0,pos);  
		var value = pairs[i].substring(pos+1);    
		args[argname] = unescape(value);
	}
	
	if((args["Body"] != null) && (args["Body"] != "undefined"))
	{
		sQry = "http://tkcarsites.homenetinc.com/DonMealeyChevrolet/browse2.asp?param_new-used=used&param_model=&param_trim=&param_standardbody=";
		sQry = sQry + args["Body"];
		//alert(sQry);
		document.getElementById("link2").src = sQry;
	}
}