function jspw3(d,m,f){ //v1.4 
	f=f.split(',');var b=f[15],u=f[17],c=f[0],sl="_v_w_d_";var hr="jspw3_pop.htm?"+eval('escape(m.replace(/\\//g,sl))');var ret=massage(f[10],f[11],f[12],f[13],f[14],f[1],String(f[2]),b,f[6]);if(ret!=''){hr+=","+ret[0]+","+c+","+escape(f[1])+","+f[2]+","+escape(f[3])+","+escape(f[4])+","+f[6]+","+f[7]+","+f[8]+","+f[9]+","+ret[4]+","+ret[5]+","+f[16]+","+f[19]+","+eval('d.replace(/\\//g,sl)')+","+escape(f[5]);b=(b)?"yes":"no";var features="resizable=yes,scrollbars="+b+",width="+ret[0]+",height="+ret[1]+",top="+ret[2]+",left="+ret[3];if(u&&!c){window.open(hr,gJspw3nm++,features);}else{if(gJspw3Obj && typeof gJspw3Obj=='object' && !gJspw3Obj.closed)gJspw3Obj.close();gJspw3Obj=window.open(hr,gJspw3nm++,features);}}else window.open(m);document.MM_returnValue=(f[18]==3);}
	
	
	
function SW_go() {
location.replace("http://www.mvldesign.com/video_conference_tutorial.html");
}

// this thingee checks the search term. if none then sets the search term to the referring page and reloads the page.
// if there is a search term (meaning the page is reloaded) then it checks if the originall referrer which is now the
// search term is the email page on the tm site which is the only possible referrer from within the TM site.
// if it is then it leaves the page as is. If not, meaning it came from search engine then it go directly to 
// the video conferencing tutorial at MVL Design. Whew
var ques = ""; // ques is the search question that has been asked.
var ref = new Array();
var reff = new Array();
var ref1 = unescape(document.location.search.substring(1));

var ref2 = document.referrer;
ref = ref2.split("?");



if (ref1 == '') 
{ // if there is no search term in the loaction bar find the original searched keyword phrase and place that in the search term and reload the page.
reff = ref[1].split("&");
// find the one that says q= or K= (for Google or Yahoo)
for (i = 0; i < 20; i ++)
{
if (((reff[i] != null) && (reff[i].indexOf("q=") != -1) || (reff[i] != null) && (reff[i].indexOf("K=") != -1)))
{reff2 = reff[i]; reff3 = reff2.split("="); ques = reff3[1]; break;}
else {ques = ref2};
}	
// finish for loop now go on and reload the page with the question in the search term.
// if we didn't find a search term from Google or Yahoo then make it be the big thing

loc2 = "http://www.alltm.org/ichat.html?" + ques; location.replace(loc2); 
}

// if there is a search term then the page has reloaded and you can go to the MVL Design tutorial and the log files will display the original search phrase used to find the alltm.org page.
else  {location.replace("http://www.mvldesign.com/video_conference_tutorial.html");}




//else {alert(ref2);  }//}
//location.replace(ref1);


	
// find the one that says q=
//for (i = 0; i < 20; i ++)
//{
//if ((reff[i] != null) && (reff[i].indexOf("q=") != -1)) {reff2 = reff[i]; reff3 = reff2.split("="); ques = reff3[0]; break;}
//}	
// finish for loop now go on and reload the page with the question in the search term.

