
function TruDatMenu(selObj,restore){ //v1.7 by Project Seven
	var theFullString = selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;
	var theLength = theFullString.length;
	var endPos = theFullString.lastIndexOf("~");
	var theUrl, theTarget, theParent;
	if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
	else {theUrl = theFullString;}
	endPos++
	if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
	else {theTarget = "window:Main";}
/*
var tmp='';
var f=parent.parent.frames;
for (var i=0; i<f.length; i++) {
  tmp += '' + i + ": " + f[i].name + ": " + f[i].location + "\n";
}
alert(tmp);
alert(top.frames['StorePage']);
*/
	if (theTarget == "window:New") {window.open(theUrl);}
	else {eval("parent.location='"+theUrl+"'");}
//	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
//	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
//	else {eval("top.frames[\'StorePage\'].location='"+theUrl+"'");}
}

