

// MM Window open code
function MM_openBrWindow(theURL,winName,features) { //v2.0
  thisWin = window.open(theURL,winName,features);
  thisWin.focus();
}




// -------------------------------------------------------------- //
// DIV placement function
//
// -------------------------------------------------------------- //

// Set a path to DIVS for 
var elem = (document.getElementById) ? 'getElementById' : ((document.layers) ? 'layers' : 'all' );


var getAtt = function(whichElem, whichAtt){
return parseInt(document[elem](whichElem).style[whichAtt]); 
}

var setAtt = function(whichElem, whichAtt, whichValue){
document[elem](whichElem).style[whichAtt] = whichValue; 
}

var placeThis = function(toPlace, x, y){

if(x != ''){ document[elem](toPlace).style.left = x+"px"; }
if(y != ''){ document[elem](toPlace).style.top = y+"px";}

}


var sizeThis = function(toPlace, x, y){

if(x != ''){ document[elem](toPlace).style.width = x+"px"; }
if(y != ''){ document[elem](toPlace).style.height = y+"px";}

}


var setClass = function(toSet, newClass){
toSet.className = newClass; 

}




// local pop RELAY function
pop_local = function(){
MM_openBrWindow('touchscreen_update_local_pop.php','popUp','width=450,height=354, , status=yes, scrollbars=no'); 
}

pop_remote = function(){
MM_openBrWindow('touchscreen_update_remote_pop.php','popUp','width=615,height=484, , status=yes, scrollbars=no')
}