function styleGet (doc) {

var o = doc.styleSheets[0].rules;

if (o == null) {
   o = doc.styleSheets[0].cssRules;     	
}

return (o);

}

